3 ms·
> That verbosity isn't even a big deal as you write once, but read many times. One of the most pernicious myths of software engineering is that it happens.
by naniwaduni 7y ago
> That verbosity isn't even a big deal as you write once, but read many times.
One of the most pernicious myths of software engineering is that it happens.
- Scapeghost 7y ago"Reading" code in this sense doesn't just mean explicit review by different people, but also as in reading it subconsciously as you scroll through your own code. If I see a chain of numbers like 1, 2, 3, 4 my brain has to recall the order of parameters or look it up. If I'm looking for rectangles that should be wider than they are tall, I have to keep thinking "the third number should be higher than the fourth number" Oh and I can't just Cmd+F "width:" or "height:" either.
- benji-york 7y agoI would enjoy an explanation of your thinking.
- kragen 7y agoIt's unusual to sit down and read a subroutine for pleasure, but it's common to read it when you're debugging a problem, trying to figure out how to extend the subroutine, refactoring something it calls, or doing something similar somewhere else.