Category: Software Development
-
How to remove an array element by index in JavaScript
Recently I was faced with the need to remove an item from an array, by index in JavaScript and I came to realize it had been quite a while since I had to do something like that. My initial, and extremely incorrect thought was that I could just use delete…
-
How to loop through all files in an S3 bucket in PHP
Recently I decided to finally tackle the ever growing S3 bucket for the niche social network I run. The reason it’s ever growing is because I never implemented any sort of hard deletion logic. At one point, I was planning to move the images over to soft deletions, but never…
-
Could not find a declaration file for module
I’ve been working with Typescript on a daily basis for the last year. Admittedly, I still feel pretty amateurish with it. Mostly due to the fact that I’ve mostly been working with it on an existing stack at work and minor application of it on my own side projects. With…
-
Symlinks with Nginx and PHP-FPM
Recently I’ve been putting time into rebuilding the server infrastructure for Holiday API. This has included hardening the system to be more fault tolerant and building out a new cluster of web servers. The biggest improvement was [finally] introducing a continuous deployment pipeline to complement the existing continuous integration flow….
-
How to exit Vim
I’m sick and fucking tired of being asked if the reason that I use vim (currently using nvim) is because I can’t figure out how to exit. I get it, you saw some stupid shit on Stack Overflow and you think everybody that uses vim is incapable of knowing how…
-
Explaining vs. Communicating
This isn’t a post about mansplaining or anything like that. I’m simply taking about explaining things instead of communicating them. In regard to project management, explanations tend to be a reactive act. Explanations are a way to justify why a project is behind. You could easily swap “explanations” for “excuses”…
-
Solo developers should still do code reviews
As a single developer on a handful of projects, I’m a huge proponent for establishing systems and best practices, even if they don’t seem practical as an army of one. In the past I’ve written about making sure version control is in place even if you’re the only developer on…
-
Why would they do it that way?
I’ve been a professional software engineer for just shy of half of my life. Along the way I’ve had the opportunity to work with a ton of different people and personalities. A common theme with most developers is that they really like to do things their way. This tends to…
-
Posting code snippets to Slack
A buddy of mine recently asked me how to post code to Slack and make it look good. It wasn’t the first time this has come up either. Different folks have asked, not like the same person keeps bugging me about it 😛 Trying to explain things to him reminded…
-
The most efficient way to check the last character of a string with JavaScript
Recently I was writing some code that needed to detect if a certain character was at the end of the string to determine if some additional logic should be executed. The reason for this was because the additional logic to run was pretty hefty and for pre-mature optimization’s sake, I…