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?"
Thread beginning with comment 559051
To view parent comment, click here.
To read all comments associated with this story, please click here.
RE[3]: Comment by lucas_maximus
by TempleOS on Thu 18th Apr 2013 13:13 UTC in reply to "RE[2]: Comment by lucas_maximus"
TempleOS
Member since:
2013-04-03

The rules for 50,000,000 lines of code are different from 140,000 or 10,000 or 1,000.

I aspire to be more libertarian than hall-monitor. I stop myself when I get an impulse to make up rules to keep things extra tidy.

Clearly, there is no end to the number of policies you could invent to keep code tidy. Moderation, I guess. Don't pat yourself on the back because you can make-up lots of rules. It becomes the most important thing, if you're not careful. Even beginner programmers might want to develop an attitude like a manager and spend a lot of thought thinking about what the code accomplishes. Code which has no purpose is not good no matter how tidy.

Edited 2013-04-18 13:22 UTC

Reply Parent Score: 0

lucas_maximus Member since:
2009-08-18

The rules for 50,000,000 lines of code are different from 140,000 or 10,000 or 1,000.


Err no they aren't.

Reply Parent Score: 2

RE[5]: Comment by lucas_maximus
by hhas on Thu 18th Apr 2013 21:37 in reply to "RE[4]: Comment by lucas_maximus"
hhas Member since:
2006-11-28

"The rules for 50,000,000 lines of code are different from 140,000 or 10,000 or 1,000.


Err no they aren't.
"

Indeed. The only actual difference is the degree to which you can get away with ignorance or indifference towards such rules. When complexity increases quadratically to line count, cowboy hackery that works great at a couple dozen lines and is just about still tolerable at a few hundred will eventually exceed even the most brilliantly photographic and pathologically OCD mind if it continues to scale that way. Really, if you go over a hundred lines and don't already own a copy of Code Complete and a link to thedailywtf.com then you really should stop there awhile to take stock of your position if you've any sense at all.

In my own comical case, I got to 2500 lines of Grande Spaghetti before I crashed and burned most horribly. Call me a total lightweight (2500? Pfft!), but at least it taught me my most valuable lesson early rather than later in my programming life (i.e. well before anything remotely business-critical), and resolved me to learn how to construct software properly in future. Whereas if The Daily WTF is anything to go by, there's a frighteningly significant chunk of professional practitioners who go magnitudes bigger than that and still never learn anything no matter how disastrously it all ultimately collapses around and on top of them.

Reply Parent Score: 2