Jimmy Klein

Jimmy Klein @klnjmm

About: Hi, it's Jimmy 👋, PHP 🐘 developper, guitarist 🤘 and minimalist apprentice. I help developers progress in PHP.

Location:
Macon, France
Joined:
Jan 19, 2018

Jimmy Klein
articles - 15 total

Simplify your code

Over the years, I have become very interested in clean code, calisthenics objects, etc. And over...

Learn More 31 9Mar 8 '24

Never write another loop again

Always with the goal of improving my way of writing code, I discovered a few years ago Adam Wathan...

Learn More 1 3Mar 1 '24

9 rules for writing (better?) code

Like many developers, I like learning new things. And one thing that interests me a lot is code...

Learn More 19 5Feb 28 '24

Check the presence of a key in an array in PHP - The right way

I see this kind of code quite regularly: $items = [ 'one' => 'John', 'two' =>...

Learn More 1 0Feb 26 '24

Be careful about the switch statement in PHP

Could you find the difference in results between these two codes? function...

Learn More 4 5Feb 22 '24

Create date easily in PHP

The simplest way to create dates in PHP is to instantiate an object of the DateTime class. $date =...

Learn More 4 4Feb 20 '24

Never use `empty` function in PHP

There are several ways to test that an array is empty in PHP, and the one I see most often...

Learn More 33 26Feb 19 '24

⚠️ [PHP] N'écrivez pas ce type de code en production ⚠️

Vous connaissez surement le callback hell en JS ? Mais connaissez-vous le array_ hell en PHP ? Voici...

Learn More 0 0Dec 3 '21

Have you a hey.com account ? What do you think of it ?

Hey.com is a new email service created by Basecamp. It’s a redo, a rethink, a simplified, potent r...

Learn More 2 2Jul 10 '20

9 tips for git

If you use Git on a daily basis, you know that this tool is full of commands and different configurat...

Learn More 14 2Jun 22 '20

5 bad habits to lose in PHP

I do a lot of code review and I often see the same mistakes. Here's how to correct them. ...

Learn More 109 7Jun 13 '20

9 astuces pour git

Si vous utilisez Git au quotidien, vous savez que cet outil regorge de commandes et de différentes options de configuration. Je vous propose ici de lister quelques astuces que j'utilise.

Learn More 5 0May 10 '20

Less is Now

Notre écriture du code évolue au fil des années. Je partage avec vous ce qui a changé chez moi.

Learn More 7 0Nov 7 '19

Le comportement particulier des autoincrement dans les tables MySQL InnoDB

l'utilisation de l'autoincrement d'une entité peut-être problèmatique si on veut la référencer dans une autre base de données

Learn More 5 0Oct 12 '19

Never use array_merge in a loop in PHP

array_merge in loop is a performance killer.

Learn More 34 10Jul 8 '19