5 articles

Replace deeply nested if/switch conditionals with polymorphism and the Strategy Pattern for cleaner, extensible OOP code.

Explores the pitfalls of using the `new` keyword to hide base class members in generics, and the correct pattern using abstract methods.

Refactor complex enum-based switch statements using the Strategy Pattern with a dictionary of actions, improving readability and scalability.

Learn how to reduce client-side exposure by wrapping sequences in a CompositeWorker and factory, so callers never deal with iteration logic.

A C# StringDestructure class that splits a string into two lists by a predicate, transforms each part independently, then recomposes the result.