Object Oriented Programming

Evaluate and write OOP code — class-shape smells, SOLID, GoF design patterns, Tell Don't Ask, and Object Calisthenics — in TypeScript/Node.js/NestJS. Use for code review, refactoring, or new class/service design. TRIGGER when: class has only static methods; single public method + constructor; invalid until setters are called; data class with only constructor + properties; getters read externally to decide (Tell Don't Ask); GoF pattern names (Decorator/Factory/Strategy/Builder/Command/Observer/Mixin/Proxy/Flyweight/Mediator); SOLID, SRP, OCP, LSP, ISP, DIP, god class, fat interface, reduce coupling, testability; object calisthenics, primitive obsession, first-class collections, one dot per line, Law of Demeter; "is this an OOP anti-pattern?", "should this be a class or a function?", "why does my code feel procedural?", or a stricter pass on existing code.

bsene d5da0e0 7 files · 66.4 KB Updated

File contents

bsene/skills-old/tree/main/object-oriented-programming commit d5da0e09ec

Frequently asked questions

npx skillmds@latest add bsene/object-oriented-programming