Complex argument matching in Mockery

on May 08, 2017. in Programming, Software, Development. A 3 minute read.

This past weekend I did some issue maintenance and bug triage on Mockery. One thing I noticed going through all these issues, is that people were surprised when learning about the \Mockery::on() argument matcher. I know Mockery’s documentation isn’t the best documentation out there, but this still is a documented feature.

Contributing to open source projects has many benefits — you learn and you teach, you can make friends or find business partners, you might get a chance to travel. Even have a keynote at a conference, like Gary did.

Recording screencasts of OSS contributions

on April 19, 2017. in Blablabla, Programming. A 2 minute read.

I enjoy contributing to open source projects, and I learn a lot while doing it. When someone asks me for advice on how to improve as a programmer, I usually tell them to find an open source project that interests them, and start contributing.

Read-only Symfony form field

on April 10, 2017. in Programming, Development. A 1 minute read.

The future me will be grateful for this post. I always get it wrong the first time.

Continue reading Read-only Symfony form field...

Waste an hour on a stupid mistake

on April 07, 2017. in Programming, Development, Blablabla. A 2 minute read.

I made such a stupid mistake today and lost an hour of my time trying to figure out what the hell is wrong, that I just have to blog it.

Continue reading Waste an hour on a stupid mistake...

PHP traits to create test doubles

on April 04, 2017. in Programming, Development. A 3 minute read.

Keeping your application or library code well organized, easy to follow, and read is important. Your test code should not be exempt from those rules, you should follow good testing conventions.

Continue reading PHP traits to create test doubles...

Performing end to end testing of any application requires from us to have a set of reliable test data in the database.

Current Vim setup for PHP development

on February 10, 2017. in Development, Programming. A 4 minute read.

I made some changes to my Vim setup for PHP development recently, so it’s time to write it all down. I’m more than sure that I’ll break it soon and won’t be able to remember all the things I did to have the current setup.

PHP-FPM security limit extensions issue

on February 03, 2017. in Software, Development. A 2 minute read.

For the first time ever I saw this error:

Search and replace in visual selection in Vim

on January 23, 2017. in Software, Blablabla. A 1 minute read.

The search and replace feature is very powerful in Vim. Just do a :help :s to see all the things it can do.