PHP vs. Python isn’t even a debate

Craft, PHP

When it comes to Web development debates, many experienced developers say there’s no practical difference between PHP and Python (and Ruby, Perl, etc.). I used to hold the same opinion. Until I had to work on some projects to extract TLS information from a website’s SSL certificate. The PHP libraries sucked so hard and were […]

April 25, 2019

WTF is Late Static Binding in PHP?


One of the features in “advanced” PHP you come across is Late Static Binding. There are two things that make this feature very interesting: It is remarkably useful It is extremely poorly explained in the official docs So if you’ve heard of this term the first-time, or like me, have lost a few hair over what […]

June 28, 2018

How many Controllers should you have? [Laravel]

Frameworks, Laravel, PHP

Controllers are the life and blood of a Laravel application. It’s impossible to imagine a framework without them (well, it is, but technically something has to receive the route action, and whether it’s a class or function, it becomes a controller, so to speak). In the last 3-4 years of my development experience, I went […]

December 16, 2017

The curious relationship between Laravel and Node.js

Laravel, PHP

Even a cursory survey of skills (try LinkedIn) will tell you that a huge percentage of Laravel developers end up learning Node.js. The skills list goes something like this: “LAMP, Laravel, Ionic, Node, Full Stack Developer”. And it’s not just beginners bragging about their skill-set, mind you; I’ve met serious architects who passionately love Laravel and […]

December 14, 2017

When in India, avoid CodeIgniter

Career, PHP, Programming

There’s a curious aspect to being a PHP programmer in India – the ubiquity of CodeIgniter. The framework that first introduced the comfort of working with conventions to the PHP community, a framework that I believe has outlived itself, refuses to die. In fact, “refusing to die” is an understatement here. The framework is thriving, […]

November 9, 2017

PHP and Technical Debt

PHP, Programming

For many developers, PHP and Technical Debt are synonymous. After all, at some point in our career, we’ve suffered at the hands of some dimwit developer who left us possibly the worst code in the world to maintain. Code for which no documentation exists, or could exist. Code with loops within loops and functions calling […]

October 7, 2017