by Miško Hevery Recently many of you, after reading Guide to Testability, wrote to telling me there is nothing wrong with static methods. After all what can be easier to test than Math.abs()! And Math.abs() is static method! If abs() was on instance method, one would have to instantiate the object first, and that may prove [...]
Entries from December 2008
Static Methods are Death to Testability
December 15th, 2008 · 55 Comments
Tags: OO · Rant · Testability
Clean Code Talks – Inheritance, Polymorphism, & Testing
December 8th, 2008 · 22 Comments
by Miško Hevery Google Tech Talks November 20, 2008 ABSTRACT Is your code full of if statements? Switch statements? Do you have the same switch statement in various places? When you make changes do you find yourself making the same change to the same if/switch in several places? Did you ever forget one? This talk [...]
Tags: Uncategorized