Python as a PHP Developer

The majority of the code I’ve written in my 3 and a half years of professional software development has been PHP. Recently I built my first Python web application for a REST JSON API. I thought I’d share my first experience of Python from the perspective of someone…

Read this article

Unit testing static calls without refactoring the world in PHP

Imagine you have a situation like this in some legacy code: class Bar { public static function doSomethingElse() { return 'Bar Bar Black Sheep'; } } class Foo { public function doSomething() { return Bar::doSomethingElse(); } } Foo is calling the static function on Bar and that method is also used by 50 other classes in the…

Read this article