News for hackers. Stuff that matters.
Re:Simple Ways of Reducing the Cognitive Load in Code by effie on Tuesday June 28, 2016 @03:29PM (#11996768)
Our teacher of programming told us something like this: if your program has so many lines it cannot fit on one screen, it contains at least one bug, so don't make them, keep them short. I try to make all projects made of small files, where each one can fit on one screen. Great for comprehensibility and productivity (less scrolling). Sometimes, a procedure gets longer than one screen, so what one needs to do is to put as much source as possible on a line, so that the entire thing fits into one screen.

There are no comments on this comment yet.