PHP Exception Types

php best-practices exceptions code-style readability
PHP Exception Types

Exceptions- you’ve probably seen them and maybe you’ve even thrown a few of your own- but are you making full use of custom Exception types for managing code flow, and improving readability?

Read More

ZF1 Controller Dependency Injection

zf1 zend-framework-1 dependency-injection ioc
ZF1 Controller Dependency Injection

At my workplace we have an internal application built on Zend Framework 1 and naturally it my job to maintain it. One of the code smells of the project is the abundant use of the new keyword, largely due to the absence of any IOC container in the ZF1 framework. So I thought it would be a fun project to add dependency injection to the application.

Read More

Tips for Writing Clean PHP Code

php coding tips clean-code
Tips for Writing Clean PHP Code

Here are some tips that I feel help me write nice, clean, efficient and readable code.

Read More

Great News Everyone! I Made a Blog!

general awesome w00t
Great News Everyone! I Made a Blog!

Well, I finally did it. Some fifteen years after I wrote my first lines of code, I’ve finally decided to make a personal blog. GOLD STAR FOR ME! I have high hopes for keeping active with blog posts describing my adventures in the wonderful world of programming, automotive things, and whatever else I decide to ramble on about. I’ve decided to use the popular Jekyll as my blogging platform, I’m diggin’ it so far. Anyhow, stay tuned, as this will surely be an exciting blog. Surely ;)

Read More