Manjushri

avoide empty()

Avoiding empty() in PHP

The language construct empty() appears rather versatile. It’s like a Swiss army knife with a thousand blades, ready to hurt you if you grab it by the wrong end. Or a jack of all trades, master of none. Most of all, empty() is a poor communicator. I spot empty() in poorly-aged closed-source projects. I discover empty() in brand-new empty() again in open-source …

Avoiding empty() in PHP Read More »

code refactoring

Refactoring PHP

I’ve been programming in PHP now for almost ten years, and if there is one thing I learned over this period, it’s that readability and simplicity are the keys for maintainable and sustainable code. Every first attempt to write code should be about making it work. Only after that, you should take some time to …

Refactoring PHP Read More »

Scroll to Top

Thank UU