Clean Code6 articles
Write maintainable code with proven clean code principles. Learn refactoring, naming conventions, and patterns that reduce technical debt.
Articles
The early return pattern in JavaScript
--- views
Discover how early return and guard clauses can simplify your JavaScript functions, reduce nesting, and free your mind to focus on the real logic.
Generic Type Parameters in TypeScript
--- views
Learn TypeScript generic type parameter naming conventions. Understand when to use T, K, V and when descriptive names like TKey make your code more readable.
Discriminated Unions in TypeScript
--- views
Discover how discriminated unions in TypeScript help you write cleaner, safer code. Learn what they are, how to use them, and why they're great!
Mastering HTML Class Naming: Boosting CSS Efficiency
--- views
Discover the art of crafting clean HTML class names with BEM methodology. Learn to create maintainable, scalable, and SEO-friendly CSS code.
Dispatch table in javascript
--- views
Replace messy switch statements with dispatch tables in JavaScript. Learn this clean code pattern for handling multiple conditions with maintainable code.
Expressions vs Statements
--- views
Learn the difference between expressions and statements in JavaScript. Understanding this distinction helps you write better code and avoid syntax errors.