#coding

A 3-post collection

My last PHP rant ever

Let's not go down the PHP is dead, long live PHP rabbit hole that seems permeates public perception of this language. We've all read a a fractal of bad design. We've all probably worked on Wordpress. Some of us might have dabbled in Hack. PHP 7 is everything apparently. So it goes... Brief history Things have definitely changed over the years. I remember my first days of writing code in PHP. Lots of globals, mixed view logic, spaghetti everywhere, un-sanitized inputs, etc... A lot of stuff that beginners have absolutely no concept of. PHP doesn't care though, it lets you use it as you see fit. It is so incredibly easy to get a page to print stuff with this...

Here comes Laravel 5!

I starting using Laravel around the time that version 4 was released, been on the sidelines waiting for the next version. Came across a cool article today that showcases the new features for Laravel 5 and its got me pumped! https://laravel-news.com/2015/01/laravel-5/ So many features! Here's what I'm most excited about.. 1. Commands / Eventing Commands If you've been keeping up with the Laravel community, the command bus pattern has been gaining some serious attention recently. Commands help organize domain logic by organizing actions into tasks that your application can perform. That way when something happens (an item purcahsed, user registered) you can send a command to the application for handling. The emittence of commands is imperative;...

How I'm Writing Unit / Functional Tests

So...testing. That thing that everyone says is so important but you don't really learn about it in school. I've had some trials and tribulations with testing so I'm going to just dump out some thoughts here. Background I first started testing in PHP, building a fairly large distributed platform. We had several API's talking to each other, backed by a MySQL database, running on the CodeIgniter framework. My job was all over the place. I was running the tech show, working with clients, building spec with shareholders, leading project management. A bit of a one man (college kid) juggling act. The worst was talking to customers. I have sympathy for 'em. I love delivering to them. Hate talking to...