10 tips to become a better web developer

I had a dream! This dream was to write an article with a title beginning by “10 tips to…”. I don’t normally like them so much (yes, they are often pure clickbait) but let’s face it, humans like lists. That’s why we have the ul tag in HTML. When I finished to write this article and I counted how many parts I had, I was so full of joy and love! »

13 min. read

Vim as a PHP IDE - the complete guide

Last update: 2018-06-09 Vim, an IDE? I can see you spitting your cereals in front of you computer. “What? A PHP IDE with Vim? Are you insane?” Am I? It’s definitely possible to make a very powerful IDE with Vim, thanks to my ex-colleague kushellig who initiated me to this dark knowledge. The list of plugins I propose here will cover most of your needs: project management, autocompletion, PHPDoc generation, powerful search and replace tools, debugger… all these features will be at your fingertips, for free! »

14 min. read

How did I replace PhpStorm by Vim in my heart

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”? What happened between PhpStorm and me? Why a PHP developer would use this… old smelly thing called Vim? I was happy with PhpStorm. »

13 min. read

PHP 7 type hinting: what you shouldn't do

When PHP 7 came up with strong types, I saw the light. I had the hope not to see anymore bugs and inconsistencies due to weak typing in PHP. I remember reading some code and having no idea what could be the type of the variables I had in front of me. Can I use the return of this method as an int? A boolean? Will it create silent bugs and unexpected behaviors? »

8 min. read

DateTime PHP: how to use it efficiently

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 and time operations you could ask for and even more. Using Datetime can save a lot of time when you have to do more complex operations on dates. »

4 min. read