To static or not to static
Posted
by Idsa
on Stack Overflow
See other posts from Stack Overflow
or by Idsa
Published on 2010-06-06T10:16:48Z
Indexed on
2010/06/06
10:22 UTC
Read the original article
Hit count: 500
I really like to use static methods (especially for helpers classes). But as static methods are not stubbable, eventually they are a bad practice, aren't they? So I have to choose between static methods usage convenience and testability. Is there any compromise?
© Stack Overflow or respective owner