Category Archives: CodeSmells

NotImplementedException and the Interface Segregation Principle

This week, Derrick Bailey will be in town (Austin) to talk about the SOLID principles.  One of the hardest ones to talk about, and find examples for, is the Interface Segregation Principle.  The ISP states: CLIENTS SHOULD NOT BE FORCED … Continue reading 

Also posted in Design | 7 Comments

Extension methods and primitive obsession

In another water-cooler argument today, a couple of coworkers didn’t like my extension method example.  One main problem is that it violates instance semantics, where you expect that a method call off an instance won’t work if the instance is … Continue reading 

Also posted in C# | 1 Comment