Re:The Lava Layer Anti-Pattern
by jameshart on Friday December 19, 2014 @01:49PM
(#8773768)
The problem is that any code which calls a static method is hard to test. Because the thing that is static about static methods - the reason they are called 'static' methods - is that they are static-bound. Code which calls a static method, will be compiled with a hard, static dependency on that static method. You can't mock it, stub it, or dependency inject it. It's... static.
[ Parent
| on HN ]