2025.12.24E·37Refactoring React: Extracting Logic into Custom Hooks
Component growing too large? Logic mixed with UI? Learn how to extract business logic into Custom Hooks for cleaner, testable code.
ReactRefactoringCustom Hooks
→2025.12.23E·35Stop Using Boolean Flags for State: Master Discriminated Unions in TypeScript
Managing API state with `isLoading`, `isError`, `data`? Learn how Discriminated Unions prevent 'impossible states' and simplify your logic.
TypeScriptState ManagementDesign Pattern
→2025.12.16E·30Stop Using 'as' in TypeScript: Why Type Assertion Is Dangerous
Using 'as' to silence errors? It's lying to the compiler. Learn why Type Assertions cause runtime crashes and how to use Type Guards instead.
TypeScriptType SafetyRefactoring
→2025.10.30U·13My Codebase Became a Spaghetti Monster (Prop Drilling Escape Guide)
I share how I created a maintenance nightmare by passing props down 5 levels. Learn why Prop Drilling kills productivity and how to escape using Context API, Component Composition, and Zustand.
ReactProp DrillingContext API
→2025.08.20A·03I Went Through Hell Switching Databases: Surviving with Hexagonal Architecture
When our service grew, migrating from MongoDB to PostgreSQL became inevitable. But our code was a spaghetti mess of business logic and database queries. I share my journey of adopting Hexagonal Architecture (Ports and Adapters) to decouple the core logic from external tools, turning a nightmare migration into a manageable task.
ArchitectureHexagonal ArchitectureClean Code
→2025.08.02E·02Stop Writing 'if (loading) return Loading...' (Suspense & ErrorBoundary)
Deleting 500 lines of loading states with React Suspense. How to handle async UI declaratively.
ReactSuspenseErrorBoundary
→2025.05.31U·05Mastering React Custom Hooks: Logic Extraction and Reusability
Custom Hooks are React's super power, but poor abstractions can lead to technical debt. Learn how to extract complex logic into reusable hooks, decouple UI from data fetching, and implement the 'Headless UI' pattern to build cleaner, more maintainable React applications.
ReactCustom HooksClean Code
→2025.05.25E·01Clean Architecture: The Dependency Rule and Separation of Concerns
A deep dive into Robert C. Martin's Clean Architecture. Learn how to decouple your business logic from frameworks, databases, and UI using Entities, Use Cases, and the Dependency Rule. Includes Screaming Architecture and Testing strategies.
Software ArchitectureClean CodeDesign Patterns
→