2 ms·
yea, you should be changing code style to increase modularity in a way that is conceptually coherent in terms of what is easy to hold in your head. Increased te
by afarrell 9y ago
yea, you should be changing code style to increase modularity in a way that is conceptually coherent in terms of what is easy to hold in your head. Increased testability should fall out of that because you can think through "What invariant should hold true about X under conditions/inputs Y1...Y4?"
- hinkley 9y agoCode you can hold in your head usually has a smaller surface area. Fewer moving parts equals easier testing.