Testing Symfony commands with Behat

on January 18, 2019. in Programming, Development. A 5 minute read.

The other day I was creating a Symfony command that will be periodically executed by a cronjob. I decided to write a Behat test for it, to see what a test like that would look like. Plus, just because it is executed by the system from a command line, doesn’t mean we can skimp on the business requirements.

A lookback on 2018

on January 01, 2019. in Blablabla. A 2 minute read.

2018 was a good year. A year of changes.

Continue reading A lookback on 2018...

Ignore Errors in Makefile

on December 24, 2018. in Development. A 2 minute read.

I’ve been using Make and Makefiles quite extensively over the past few months in my personal projects. One of the make targets I have is to run Behat tests:

Continue reading Ignore Errors in Makefile...

Legacy code is 3rd party code

on July 19, 2018. in Programming, Development, Blablabla. A 6 minute read.

Within the TDD community there’s an advice saying that we shouldn’t mock types we don’t own. I believe it is good advice and do my best to follow it. Of course, there are people who say that we shouldn’t mock in the first place. Whichever TDD camp you’re in I think this “don’t mock what you don’t own” advice has an even better advice hidden in it. An advice that people often overlook because they see the word “mock” in it and go full berserk.

Continue reading Legacy code is 3rd party code...

Easier Mocking With Mockery in php[architect]

on April 20, 2018. in Blablabla. A 1 minute read.

In early February I got an email from Oscar would I be willing to write an article for php[architect], based on my “Easier mocking with Mockery” talk. It took me maybe 2 seconds to think about it and say “Yes!”. The first part of the article was published in the April’s edition of the magazine. Lots of useful content in there, not just my article!

This past weekend I was playing around on some pet projects and wanted to get up and running quickly. My initial reaction was to reach for a Vagrant box provisioned with Ansible. After all, that’s what I’ve been using for a really long time now.

Connecting to MySQL 8

on March 24, 2018. in Software, Development. A 1 minute read.

I’ve used recently PHPDocker.io to generate a set of Docker files for a pet project and it had the option to use MySQL 8 and of course I went with that. The problem was when I wanted to connect to the database that was on this MySQL 8 server.

Continue reading Connecting to MySQL 8...

Bounded contexts and subdomains

on March 20, 2018. in Programming, Development, Blablabla. A 5 minute read.

Back in October last year I wrote that I thought I understood bounded contexts, what they are and why we need them. Ever since realizing that a bounded context is a boundary of how a business sees a specific subject within a section of that business, learning anything and everything DDD became a lot easier.

Continue reading Bounded contexts and subdomains...

A weekly to-do

on March 08, 2018. in Blablabla. A 4 minute read.

About a year ago I listened to a ThatPodcast episode where Dave and Beau talked about bullet journalling. I found the idea of it appealing, but over the next few months I just couldn’t find a bullet journal in any of the (book)stores I went to. As time passed so did my interest in this. After all, I was getting along without such a system just fine. My life isn’t that crazy busy, 7-8 hours of sleep, 7-10 hours of work work, and the rest is up for grabs — hanging out with my wife Senka (her name translates to Shadow, how cool is that?), reading, writing, cooking, open source, whatever.

Continue reading A weekly to-do...

My OBS setup for recording screencasts

on February 21, 2018. in Software, Blablabla. A 2 minute read.

Last year I started recording my contributions to open source. I wasn’t really regular, so today I published only the 9th episode: OSS Contribution 9.