3 ms·
Patterns in the way code looks in general are invaluable for parsing code quickly especially in areas that you're somewhat familiar with. You can discard/ignore
by extrememacaroni 4y ago
Patterns in the way code looks in general are invaluable for parsing code quickly especially in areas that you're somewhat familiar with. You can discard/ignore big chunks of code very quickly and go straight to where you think the relevant part is if they look as you'd expect at a glance. If they don't, it's sort of like a cache miss. "What the hell why don't people autoformat their goddamn files before saving" and then read those bits of code just to make sure they're not hiding any surprises, before formatting them properly.
It's the difference between taking, say, 2 seconds to read a method, and 10 or more.
I can only assume people who don't treat code formatting as a rule read every.single.thing.line.by.line.every.time.
- shikoba 4y ago> I can only assume people who don't treat code formatting as a rule read every.single.thing.line.by.line.every.time. That's why I assume too. I don't understand how one can code like that.
- tobr 4y agoUnpopular opinion: if big chunks of code look “the same”, that might be unnecessary boilerplate you should get rid of.