Reading List
The most recent articles from a list of feeds I subscribe to.
PHP Code Quality Tools to Check and Improve your Code
They were coded by Dave, your colleague developer.
The classes are full of formatting errors, poor indentation and weird one letter variables. There are so many dependencies you need to scroll down for minutes to escape the bloated constructor.
Shacking, you open the unit tests to understand how it should work… but they don’t exist. Horror and misfortune!
You could ask Dave to come to your desk, yelling at him that you never saw anywhere such a crappy code, cursing him and his family for generations to come.
The DRY Principle: Benefits and Costs with Examples
Once upon a time, a fearful young developer (me) wanted to write magnificent code. I was seeing generations of developers speaking about it, as we speak about pyramids two thousands years after their construction. I wanted to let my mark in the world!
Therefore, I did what I thought would be the best: avoiding every traps everybody felt into, by following the Holy Coding Principles, created by the Ones Who Have the Knowledge.
PHP 7.2: the Traps to Avoid for a Better and Cleaner Code
What are the pitfalls to avoid with this new version of PHP and its new functionalities?
As my previous article on PHP 7 scalar and return types pitfalls, instead of describing the new super cool features of this perfect PHP 7.2, I will describe what can be dangerous for the good health of your application.
As Ward Cunningham stated it: “You know you are working on clean code when each routine you read turns out to be pretty much what you expected.” As you will see, this new PHP version can make your code pretty confusing if you don’t know when to use those new functionalities.
Vim Search and Replace With Examples
Can developers survive without a good search in their editor? Who has never used the famous find and replace trick in one or multiple files?
Nobody indeed.
The good new is: Vim search features are pure awesomeness. With a minimum of configuration, you can search whatever you want, wherever you want, at light speed.
We’ll see in this article how to:
- Search in the current file.
- Search in multiple files.
- Find and replace everything you dream of.
- Use great plugins to transform Vim in a Search Monster™.
Without the search features I’ll present you in this article, Vim would maybe not be part of my Mouseless Development Environment.
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.
You are a web developer and you want to improve? Improvement is indeed something you should have in mind: it will make your work much more enjoyable and your boss happier. The quality you will deliver will improve.