2 ms·
I had literally said "that do only one thing" in the section that you'd quoted. I've always been talking about that. LoC aren't a metric. We're not getting p
by busterarm 7y ago
I had literally said "that do only one thing" in the section that you'd quoted.
I've always been talking about that.
LoC aren't a metric. We're not getting paid per line and we're not playing code golf either. It works, it passes tests and most importantly, it's easy to change.
As for the comment about loops, both the languages I mentioned have powerful map functions. The goal of keeping the functions small is to avoid nesting loops and heavy amounts of indentation.
- blub 7y agoYou said you broke your code in functions of 1-3 lines, I offered an explanation why that may have not been well received in your interview. I understand that you don't agree with that and that's fine with me.