#Object-Oriented-Design
6 notas · última:
Liskov Substitution Principle in C# with Example
The page explains LSP with a Bird/Ostrich example, shows how overriding Fly in Ostrich breaks substitution, and refactors the design around IBird and Move so each bird type behaves correctly.
Devs: Don’t Just Read About Design Patterns, Implement Them
The post argues that design patterns are more useful as examples you build than as theory you read. A contrived C# animal-mission setup shows how decoupling lets missions, heroes, and lairs vary independently.
SOLID: The First 5 Principles of Object Oriented Design
The article defines SOLID and explains each principle with PHP examples, showing how they improve extensibility, reduce coupling, and keep classes focused as software grows.
SOLID Principles With (almost) Real-Life Examples in Java
The page presents a different look at the five SOLID principles in Java, framing them as a practical way to think about object-oriented design.
Constructors or Static Factory Methods?
The page argues that static factory methods only look better when the design is already wrong. It favors constructors, polymorphism, and separate objects over static creation helpers.
Anemic Domain Model
An anemic domain model has domain objects with little behavior and pushes logic into services. Fowler argues this recreates procedural design, keeps the costs of a domain model, and loses its main benefits.
