Codebar - Jan 2016

On January 12th we hosted our second codebar event. For those that don't know... codebar is a non-profit initiative that facilitates the growth of a diverse tech community by running regular programming workshops. People can register as students or coaches and learn something new with the help of volunteer coaches.…

Read this article

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

Sharing controller logic with traits in PHP

There have been a few times I have come across a situation where I need to share some logic between controllers but it hasn't been as clear cut as abstracting that logic out into a library. I've been pondering the best way to tackle this problem and would like to…

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