5 Clean Code Habits for Writing Better Functions
In this blog post I'll go through five functional patterns help you write code that doesn't make your coworkers want to pull their hair out. 1. Verbs over Nouns Have you ever opened a file and seen a
Search for a command to run...
Articles tagged with #chaicode
In this blog post I'll go through five functional patterns help you write code that doesn't make your coworkers want to pull their hair out. 1. Verbs over Nouns Have you ever opened a file and seen a
I’ve been diving deep into JavaScript lately, and the best way to make sure I actually understand something is to write it down and explain it. What Exactly is an Object? The easiest way to think abou
1. The if Statement The if statement is the simplest way to make a decision in code. It basically says, "Check if this condition is true. If it is, run the code inside the block." let age = 20; if (a
When you're building a side project, console.log is perfectly fine. But the moment you deploy a distributed system, where you have multiple instances of an app running behind a load balancer console.l
While building any backend API, you can never fully trust the data coming in from a client, a third-party webhook, or even a frontend application you wrote yourself. Every robust API needs a strict va
Imagine you are going grocery shopping. Instead of writing a separate sticky note for every single item you need to buy, one for apples, one for milk, one for bread, you write them all down on a singl