CBChirag Bhugrainjacked.dev005 Clean Code Habits for Writing Better FunctionsFeb 27 · 3 min read · 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 Join discussion
CBChirag Bhugrainjacked.dev00Understanding Objects in JavaScriptFeb 26 · 2 min read · 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 abouJoin discussion
CBChirag Bhugrainjacked.dev00Control Flow in JavaScript: If, Else, and SwitchFeb 25 · 3 min read · 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 (aJoin discussion
CBChirag Bhugrainjacked.dev00Production-Grade Logging in Node.js with WinstonFeb 24 · 3 min read · 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.lJoin discussion
CBChirag Bhugrainjacked.dev00Building a Validation Layer with ZodFeb 23 · 2 min read · 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 vaJoin discussion