“Do you even lift, bro?!” What a way to ask if you work out while simultaneously insulting you. Well, maybe I shouldn’t have named this “do you even sprintf” but it really surprises me how many PHP devs forget about (or don’t even know about) this useful tool - and instead do some pretty icky looking string concatenation. Let’s take a look at what sprintf() can do for us. (more…)
Aaron Saray, Open Source Developer and Engineering Manager
Hi - I'm Aaron! I'm a Dev Manager coach, PHP & Laravel programmer, and Node & Vue developer.
I do contract work with my company More Better Faster. I like popcorn & short walks on the pavement.
Here are some things I have to say:
Use Traits in Laravel in Policies
I love using Policies in Laravel. A particularly useful feature is the interception of checks. But what if only some of our policies need that? That’s where we can judiciously use traits. (more…)
How to Break Down Laravel Unit Tests into Types
What’s the difference between unit test, integration test, and a feature test? Which should you use for what type of test? Is it just preference or does performance factor in when using Laravel? Let me give you my take from over a decade of unit testing experience. (more…)
Add Interfaces to Laravel to Increase Code Readability and Verbosity
There seems to be an endless debate: clearly written code doesn’t need comments vs comments are needed to explain code and give context. I can see both sides of this debate, but there is a middle ground. Let me show you one way. (more…)
Are programming surveys accurate?
Please indulge me on a bit of an open-ended question and discussion. Recently I saw some “state of the XYZ” surveys where those were specific languages. The surveys were only answered by about 3,000 people each. And then people spoke about them as authoritative references. But are these surveys actually accurate? (more…)