Articles

Code refactoring: what is it and why should you do it

Thu Mar 28 2024

Refactoring is like a makeover for your code, keeping it tidy and efficient without changing what it does. It's essential for code hygiene, making it easier to read, maintain, and even boosting performance. Think of it as paying off technical debts and adding a fresh coat of paint to your code's home.

Use EXISTS instead of COUNT > 0 when checking if records exist

Wed Feb 14 2024

When checking for the existence of SQL records, it's more efficient to use the exists method instead of count. The exists method breaks the loop as soon as it finds the first record, making it more performant.

Using Tailwind CSS classes in markdown

Tue Oct 31 2023

In order to speed up article publishing I had to find a solution to use Tailwind CSS classes in markdown content. This article describes two different solutions.

Why I Migrated to Astro from Gatsby

Thu Oct 12 2023

Read about why I decided to migrate my website to Astro. What I'm liking and what I'm not liking as much.

100 lines of code per file

Tue Oct 25 2022

It has gotten to my attention that one of the biggest dev companies in the region has a pull-request requirement that checks whether each file committed is under 100 lines long. It seems like a pretty stupid requirement, right?

Unexpected benefits of estimations

Tue May 31 2022

Did you know you can use the estimation to jump-start and beat procrastination? Reasons for the procrastination can be because we don't know how to do something or even what needs to be done.

Page 1 of 6