News for hackers. Stuff that matters.
Re:Be wary of functions which take several parameters of the... by Scapeghost on Thursday September 26, 2019 @10:29PM (#21087883)
"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.

There are no comments on this comment yet.