Articles
Code refactoring: what is it and why should you do it
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
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
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
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
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
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.