Posts tagged “oop”
-
SOLID: which principles still pay off?
Single responsibility and dependency inversion pay off in almost every codebase. Open/closed, Liskov and interface segregation matter mostly at boundaries where implementations vary. What each principle protects against, and when it turns into over-engineering.
-
Object-oriented or functional: which style for which code?
Use objects where something has identity and state that must stay consistent, and pure functions over plain data for transformations, calculations and pipelines. Most good codebases mix the two. How to decide, with Go and TypeScript examples.