3 ms·
Why would you think less code means the code is less readable? Does cramming 5 lines of code into 1 line make it less code? No. Reading code is harder, so th
by fouc 8y ago
Why would you think less code means the code is less readable?
Does cramming 5 lines of code into 1 line make it less code? No.
Reading code is harder, so the less code there is to read, the better.
- ascar 8y agoAs I said in my comment, a lot of the stuff I see as positive for making code more readable more often than not adds extra lines as comments or as code, because you keep it simple. You are right that cramming 5 lines in one, doesn't really reduce code, but I have worked with enough programmers that thought it's a good thing. Sure if you can reduce code without making it more complex, that's a good thing.