A Humbly Arrogant Blog

Posts about software development

Is Your It Harmful?: Product Team

Here I try to explain in nontechnical ways things that happen in IT departments which in my opinion are generally harmful to the company. The aim of this series is to help company founders who aren’t experienced in IT be able to judge the health of their IT department. The Product Team is there to decide which features are to built first and how the features are to work. They are one of the most crucial parts of the development processes since they choose the path for the project and help make sure that the project brings the most business value as possible. ... Read more

Ticket Types

Over the years of leading teams and working in various IT environments I’ve discovered, there are generally three types of tickets within the small to medium size companies. An Idea An Idea Request is where someone has an idea, and it would be nice to try it out and see if it works or not. An idea is not a request that is based on current business needs but on the possibility to improve something that is already working. ... Read more

Code Review: Sanity Checks

For the most part, sanity checks are put into the code to ensure there are no bugs. For this reason, guaranteeing sanity checks are done correctly becomes necessary. If you do not check to see if the data is valid, and it is invalid, then you’re going to allow invalid data to proceed. Here, I’m going to discuss how I think we should do sanity checking in PHP. Asserting Valid Data What I’ve seen a lot is people are asserting for invalid data when they’re doing their sanity check. ... Read more

Code Review: Single Responsibility Principle

Single Responsibility Principle (SRP) is probably one of the most well-known principles from SOLID. At its core is a desire to prevent classes from becoming overwhelming and bloated. While enabling the ability to change how a single thing works by only changing a single class. So the benefits of SRP are that you have an easier codebase to maintain since classes are less complex and when you wish to change something you only have to change a single class. In this blog, I will go through some ways to try and help avoid breaching SRP while doing code review. ... Read more

OVH & Docker - Failed to register layer: devmapper

I’ve been using OVH’s dedicated server range recently. When ever I tried to use docker with the Ubuntu latest LTS I ended up with an error failed to register layer: devmapper:. The solution is rather simple, OVH dedicated servers use rather old and unsupported kernel versions. The solution is upgrade linux kernel. ... Read more