Remove boolean parameters: test your code more easily with cleaner code
The last time I blogged here about cleaner code (see link for details), I wrote about how you could make your code more testable by centralizing switch statements in a factory and putting the behavior in separate objects. Today I will show you another technique to clean up your code and make it easier to … Lees verder Remove boolean parameters: test your code more easily with cleaner code