Linked by MOS6510 on Wed 17th Apr 2013 21:20 UTC
General Development "You often hear about how important it is to write 'readable code'. Developers have pretty strong opinions about what makes code more readable. The more senior the developer, the stronger the opinion. But, have you ever stopped to think about what really makes code readable?"
Permalink for comment 559004
To read all comments associated with this story, please click here.
7±2 Principle
by pica on Thu 18th Apr 2013 07:18 UTC
pica
Member since:
2005-07-10

The human brain has some limits on its capacity for processing information, so it deals with complexity dividing information into chunks. Short term memory can retain only about 5-9 things at one time, according to George A. Miller's studies.

Respecting this limitation makes code readable.

Edited 2013-04-18 07:29 UTC

Reply Score: 3