Beautiful Code Interview 286
An anonymous reader writes "Safari Books Online has just posted an interview with Andy Oram and Greg Wilson, the two editors who put together the recent O'Reilly book, Beautiful Code. "Beautiful Code" features 33 different case studies about challenging coding scenarios from some of today's most high-profile developers and OS project leaders. There's also a new Beautiful Code web site based on the book where many of the authors are blogging about their work and coding practices."
Nothing to see here (Score:5, Funny)
Re:Nothing to see here (Score:5, Funny)
Re:Nothing to see here (Score:5, Funny)
This just reminds me of my friend. (Score:5, Funny)
On the final project he spent a good portion of time properly commenting all of his code and ended with a commented ascii flower and the following:
He was marked off "-1 Sarcasm not appreciated"
Re:This just reminds me of my friend. (Score:2, Funny)
The problem with the book... (Score:5, Funny)
A Flock of Birds?
To symbolize beautiful code?
Flock-of-Birds-style code is the UGLIEST code out there!
Used only by those who haven't learned to use case statements, build databases, or define arrays.
Is this beautiful code???
if(something==interesting)
if(somethingelse==goodcode)
if(somethingother==blahblahblah)
if(somestupidbookcover=birds)
doSomethingUseful();
else
else
else
else
if(somethingelse==goodcode)
if(somethingother==blahblahblah)
if(somestupidbookcover=birds)
doSomethingUseful();
else
else
else
end if
Re:Have to say... (Score:5, Funny)
I, too, am the only one I know who writes decent code.
Re:The problem with the book... (Score:2, Funny)
beautiful code (Score:5, Funny)
Beer b = (Beer)getBeer();
drinkBeer(b);
belch(BelchType.LOUDLY);
}
Beware the raptors ... (Score:5, Funny)
That is all.
Re:beautiful code (Score:2, Funny)
Re:This just reminds me of my friend. (Score:5, Funny)
He should have removed one syllable from the last line; then he would have gotten "+1 haiku!"
Re:The OpenBSD code is studly. (Score:5, Funny)
Re:Dangers of binge drinking (Score:3, Funny)
Nope. drinkBeer(b) frees the beer instance.
(But there may be a memory leak in the PROGRAMMER after enough iterations.)
Re:beautiful code (Score:2, Funny)
Re:The OpenBSD code is studly. (Score:1, Funny)
Re:Dangers of binge drinking (Score:3, Funny)
getBeer() may be using the flyweight pattern, and reusing previous beer instances (presumably after their
Re:Nothing to see here (Score:3, Funny)
If we built our cars like we build our software, they would look great, they would have controls even a five-year-old could use, and every 65,536 miles they'd teleport you back to where you started.
Re:The most beautiful code I've ever seen... (Score:2, Funny)