2 ms·
I've tried to apply this to my coding, maybe not 4-5 lines, but definitively keeping to short functions/methods. You're right that you end up with a myriad of
by mrweasel 12y ago
I've tried to apply this to my coding, maybe not 4-5 lines, but definitively keeping to short functions/methods.
You're right that you end up with a myriad of functions, may of which you only use once, but I was surprised how often I actually been finding myself reusing something. I have much more code reuse than I originally figured.
One thing that might be an issue, depending on your temper is that your code almost becomes a DSL. Programs are pretty much stringed together by this "myriad" of custom functions, that might not be useful outside this one program.