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 559034
To read all comments associated with this story, please click here.
Comment by TempleOS
by TempleOS on Thu 18th Apr 2013 11:48 UTC
TempleOS
Member since:
2013-04-03

I don't know if they teach this, but there was a language called "FORTRAN" which had this kinda cool feature that variables beginning with "i,j,k,l" were automatically integers and other letters were floats.

This comes from the traditions in mathematics where you use "i,j,k,l" for counting indexes on summations and stuff.

"Hungarian notation" is voluntarily returning the the fortran idea -- they put prefixes on variables.

I don't really make any rules for my code. Gay people get carried away with coding standards. They're okay, but kind-of a big distraction. My first company, Ticketmaster, was very libertarian. As a matter of fact, I look back and cringe at some of the awful messes I made in code and nobody said anything.

Edited 2013-04-18 11:50 UTC

Reply Score: 0