Practices — Digitteck Blog — Digitteck
Tag

Practices

5 articles

Replace Conditional IF with polymorphism
dotnet

Replace Conditional IF with polymorphism

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

2018-03-18·2 min read
Lists of generic items with different types
dotnet

Lists of generic items with different types

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

2018-03-09·2 min read
Switch Enum - Refactoring
dotnet

Switch Enum - Refactoring

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

2018-03-07·2 min read
Refactoring sequences
dotnet

Refactoring sequences

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

2018-02-28·2 min read
String Destructuring
dotnet

String Destructuring

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

2018-02-25·3 min read
digitteck

© 2026 Digitteck