Skip to content

Do you really need that abstraction or generic code? (YAGNI)

You Aren’t Gonna Need It. The essence of YAGNI is simple: don’t build something today that you assume you’ll need in the future. However, there’s a nuance here because we also don’t want to handcuff ourselves. Let’s explore how this principle applies both to features and technical implementation. YouTube Check out my YouTube channel, where I post all kinds of content accompanying my posts, including this video showing everything in this post. The Two Sides of YAGNI First, let’s break down how people often think about YAGNI. On one hand, there’s the feature side. When developing a product, you might think you’ll… Read More »Do you really need that abstraction or generic code? (YAGNI)

Learn more about Software Architecture & Design.
Join thousands of developers getting weekly updates to increase your understanding of software architecture and design concepts.


Follow @CodeOpinion

DRY principle is why your codebase sucks?

DRY Principle is seemingly advocated for or against. In reality, it’s not good or bad so as long as you understand why you’re applying it and for what purpose. Misunderstanding DRY is why your system can turn into a hard to change rats nest. YouTube Check out my YouTube channel, where I post all kinds of content accompanying my posts, including this video showing everything in this post. Don’t Repeat Yourself (DRY) When it comes to DRY, opinions are all over the map. Some folks swear by it, while others argue it’s the worst idea ever. The truth? It’s not inherently good… Read More »DRY principle is why your codebase sucks?

Distributed Systems Consistency: Mistake Nobody Warns You About!

One of the most common and very overlooked issues when writing a distributed system is consistency. You have one thing happening in one part of your system that triggers something else to happen in another part of the system, except it doesn’t happen, and that can be a nightmare to deal with. This is incredibly overlooked but incredibly common, so let’s jump into some code as an example. YouTube Check out my YouTube channel, where I post all kinds of content accompanying my posts, including this video showing everything in this post. Example Here’s a really simple sample example that I’m using… Read More »Distributed Systems Consistency: Mistake Nobody Warns You About!