Object Oriented Programming

1 thought
last posted Feb. 22, 2015, 6:59 p.m.
0
get stream as: markdown or atom
0

Interesting reading about the "helper class" as an anti-pattern. Basically this is saying that functions/static methods are an anti-pattern in Java and C#.

The recommendation is to replace a helper class with static methods, with a helper object which you get by dependency injection. Or in an even more extreme case replace the function with a new object that performs the operation.