Typing with PHP 7: what you shouldn't do

When PHP 7 came up with scalar and return typing, I saw the light. I had the hope not to see anymore bugs and inconsistencies due to the way PHP handles types. I remember reading some code and having no idea what could be the type of the variables I…

How did I replace PhpStorm by Vim in my heart: the true story

I wrote an article some time ago in order to give you the most useful tips and tricks for my favorite php IDE, PhpStorm. Well, sorry PhpStorm, you were my favorite IDE. Things changed. I love another one now. Its name is Vim. Are you confused? Are you yelling "why"…

Basic PHPStorm tricks and shortcuts

PHPStorm is my favorite IDE for coding in PHP: pretty stable, you can do a lot with it. A shed load of stuff in fact. Even coding! The guys from Jetbrains tried to integrate every useful tools for a web developer in one software and, I have to say, it…

Don't live in the past: use Datetime instead!

When I search and read code about time and date problems, I noticed that a lot of people still use the old PHP functions like date(), time() or strtotime(). What about using Datetime instead? It is time to introduce this powerful PHP object. Datetime can do all the usual date…

SOLID and STUPID principles reminder

Here you can download a reminder for the SOLID principles and their counterpart, the STUPID principles. The SOLID principles are considered has good practices to follow unlike the STUPID principles that you should avoid. Those principles are very important if you want to create scalable and efficient structures. You need…