The current programming community appears to be split on the concept of using Dependency Injection within projects and applications. Notice how I made Dependency Injection uppercase. This was done on purpose to highlight how strongly programmers feel about one way or the other on the subject. For the purposes of this article I will be referring to it as DI to keep things short. Lets start from the beginning... DI is the practice of separating your application into services and clients. Any … [Read more...]
Archives for April 2016
Why I Avoid PHP Short Array Syntax
A while back when PHP 5.4 was released, a new feature was added called "Short array syntax". Basically it is ability to define arrays using [] instead of array(). Many other programming languages define arrays in this way, but don't support using array(). I believe that the ability to use array() instead of [] in PHP is a great asset. Let me explain why. When this feature was introduced my IDE added a new ability to code completion. It now, selected by default, turns array() into []. The … [Read more...]