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 558967
To read all comments associated with this story, please click here.
Vocabulary
by TempleOS on Wed 17th Apr 2013 23:37 UTC
TempleOS
Member since:
2013-04-03

So, his point is that a big vocabulary lets a writer feel good about what he is writing -- he feels he is saying exactly what he wants -- but his subtilty is lost on beginners.

There is this thing that happens -- an author can get mesmerized by his craft. He gets great satisfaction when he picks the right word, like he's playing sudoku. This is a vainity.

Good programming is good, but there are a lots of gay people who are fond of 50 line functional programs. Come-on! It's a special case of elegance that doesn't apply very often!

Brevity is the best for programming. That guy is not brief. LOL

Edited 2013-04-17 23:43 UTC

Reply Score: -3

RE: Vocabulary
by WorknMan on Thu 18th Apr 2013 01:35 in reply to "Vocabulary"
WorknMan Member since:
2005-11-13

So, his point is that a big vocabulary lets a writer feel good about what he is writing -- he feels he is saying exactly what he wants -- but his subtilty is lost on beginners.

There is this thing that happens -- an author can get mesmerized by his craft. He gets great satisfaction when he picks the right word, like he's playing sudoku. This is a vainity.


Yeah, reminds me of reading some Perl code. It seems that a lot of Perl programmers will go out of their way to write code in the least amount of lines as possible, and to hell if anyone but Perl gurus can actually read it. And the end result looks like modem line noise on a terminal. It's like prog rock bands who will play solos for 40 minutes, if for no other reason than to show off, thereby alienating everyone in the audience, except for the 1% who are also prog rock snobs. Note that I'm not dissing either Perl or prog rock, because I like both ;) Just bitching about the excesses of both.

In his article, he says whether or not you should put code on one line or stretch it out to a few depends on who your audience is. I say that's horseshit. If there's two ways to write the code, you should always put it in the form that's easiest to read, especially since you never know who's going to be debugging your code 10 years from now. At least that way, even if experts are a bit irritated by the simplicity of it, you know everyone is going to be able to read it.

Edited 2013-04-18 01:36 UTC

Reply Parent Score: 4

RE[2]: Vocabulary
by Lennie on Fri 19th Apr 2013 10:55 in reply to "RE: Vocabulary"
Lennie Member since:
2007-09-22

One day when Larry Wall was writing Perl code his dauther had a look at the screen and asked him: is this swearing, daddy ?

:-)

Reply Parent Score: 2

RE: Vocabulary
by Soulbender on Thu 18th Apr 2013 03:16 in reply to "Vocabulary"
Soulbender Member since:
2005-08-18

but there are a lots of gay people who are fond of 50 line functional programs.


Sorry but this is where I stopped paying attention to what you said and evicted your previous statements from memory.

Reply Parent Score: 7

RE[2]: Vocabulary
by TempleOS on Thu 18th Apr 2013 06:07 in reply to "RE: Vocabulary"
TempleOS Member since:
2013-04-03

Sorry but this is where I stopped paying attention to what you said and evicted your previous statements from memory.

God's not very anti-homo. He uses "homo" as an adjective, though. Sports are homo. Smelling farts is Sodom. Pets are homo.

Reply Parent Score: -1

RE: Vocabulary
by WereCatf on Thu 18th Apr 2013 06:37 in reply to "Vocabulary"
WereCatf Member since:
2006-02-15

Good programming is good, but there are a lots of gay people who are fond of 50 line functional programs.


How the fuck is sexuality and attraction towards this or that gender related to coding skills?

Reply Parent Score: 4

RE[2]: Vocabulary
by MOS6510 on Thu 18th Apr 2013 06:41 in reply to "RE: Vocabulary"
MOS6510 Member since:
2011-05-12

Perhaps he meant "gay" with it's original meaning and happy people like 50 line functional programs.

I've seen stranger things written by him. It does liven up things here.

Reply Parent Score: 2

v RE[2]: Vocabulary
by TempleOS on Thu 18th Apr 2013 07:02 in reply to "RE: Vocabulary"