Maxi Contierimaximilianocontieri.com·Jan 16, 2025Code Smell 286 - Overlapping MethodsTL;DR: Avoid using private methods in parent classes with names that child classes can use. Problems The least surprise principle violation Unexpected behavior and defects Hidden dependencies Limited extensibility Code ambiguity Open/Closed pr...Code Smellsclean code
Dmitry Dezuk (Dezhurnyuk)dmitrydezuk.com·Jan 10, 2025Implementing Cleaner Validation in DDDIn the previous article, I described one approach to validation in DDD. Specifically, I showed how it applies the Result pattern in factory methods of Value Objects to be able to reuse the same guarding checks maintaining their invariants. A drawback...DDD
Maxi Contierimaximilianocontieri.com·Jan 9, 2025Code Smell 285 - Non-Imperative Functions NamesTL;DR: Functions with unclear names hide intent and confuse readers. Use descriptive, action-oriented names. Problems Unclear function purpose Increased cognitive load Misleading context Reduced readability Difficult collaboration Hidden functional...Code Smellsclean code
Iroegbu Iroegbuiroegbu.com·Jan 6, 2025Interface Segregation Principle (explained in Go)The Interface Segregation Principle is the I in SOLID design principles. It states that types should not implement methods unrelated to their operations. In essence, interfaces should be designed so that the implementing types are not forced to imple...clean code
DAIKH NASSIMnhasbeen.hashnode.dev·Jan 6, 2025Enhancing JavaScript Code: Using Objects Instead of Switch StatementsIntroduction This is a short and somewhat unusual topic to write about, but I haven’t encountered it much on the web while working, so here is my contribution. I would love to hear people’s opinions on this method since I use it regularly. I don’t li...2 likes·31 readsJavaScript
Rishirishi2220.hashnode.dev·Jan 4, 2025Getting cracked at Clean and BLoC architectureIn our previous exploration of BLoC architecture, we laid the groundwork by understanding the core concepts: streams, futures, Cubits, and basic BLoC patterns. We learned how to manage simple state changes, handle navigation, and implement basic test...1 like·48 readsFlutter
Sajib Hossainsajibhsn.hashnode.dev·Jan 2, 2025Javascript basic clean code rules for beginners.Are you new to JavaScript and want to write better, cleaner code? Clean code is not just about making your code look pretty—it’s about improving readability, maintainability, and collaboration. Whether you’re just starting or aiming to refine your co...JavaScript
Dauda Kolokolo.hashnode.dev·Dec 30, 2024What Clean Code Really Means?I think there's quite some misconception about what writing clean code really means. Here's my take on what clean code isn't and what it is: What isn't really clean code: Code formatting: Clean code is barely about proper indentation, spacing and fo...React
Programming with Shahancodewithshahan.hashnode.dev·Dec 29, 202410 bulletproof rules for writing clean codeIf you're in a messy room, you can’t find your keys. Clothes everywhere, books piled up. That applied to messy code. It’s the SAME disaster, except now it’s your brain that’s LOSING its energy. Clean code, on the other hand, is like walking into a ...JavaScript
Zafer DUYDUzaferduydu.hashnode.dev·Dec 29, 2024Test Otomasyon Projesinde Extension Metotların KullanımıTest otomasyon projelerinde sıklıkla primitive ve generic veri tipleriyle haşır neşir oluruz. Aynı zamanda ilgili veri tiplerini manipüle etmeye çalışırız. Extension metotlar: Verileri manipüle etmenin, Var olan sınıflara, source kod’a müdehale etm...1 like·282 readsTypeScriptTypeScript