PHPnews.io

Overview for 'brandonsavage'


Building what’s in front of you

Written by Brandon Savage / Original link on Jul. 2, 2019

Recently while working on an application I found myself asking a number of architectural questions. These were questions about things that I might consider “fundamental” – elements of the application, how many methods each class might receive, and how to put it all together into something cohesive.…


Installing The Latest PHP on Ubuntu

Written by Brandon Savage / Original link on Jun. 24, 2019

In the past I’ve written up installing various versions of PHP on new releases of Ubuntu, or for new releases of PHP. In those posts I’ve often recommended compiling PHP from scratch. However, compiling PHP from scratch is a serious chore, and keeping it up to date is even more of a serious respons…


It depends

Written by Brandon Savage / Original link on Feb. 20, 2019

When I was younger, I had strong opinions about many subjects. I felt I was right about a great many things, and anyone who disagreed with me was wrong. In my mind there was a right or a wrong, a black and a white, with little room for grey. Others were certainly entitled to their […] The post It…


Code Bootcamp

Written by Brandon Savage / Original link on Feb. 18, 2019

If I ran a developer bootcamp, I’d call it “A Practical Human’s Development Bootcamp” and on the first day I’d start with, “when you graduate from here, you won’t know anything. Knowing something takes time. My job is to give you the right questions to ask to learn something.” I’d probably go out…


Avoiding Setter Injection

Written by Brandon Savage / Original link on Oct. 11, 2018

PHP more or less has two kinds of dependency injection available: constructor injection, and setter injection. Constructor injection is the process of injecting dependencies through the constructor arguments, like so: The dependencies are injected via the constructor, on object creation, and the ob…