Breaking News
News & Analysis

Celebrating, Not Cursing, Convoluted C Code

6/12/2014 02:15 PM EDT
26 comments
NO RATINGS
View Comments: Newest First | Oldest First | Threaded View
<<   <   Page 3 / 3
Yog-Sothoth
User Rank
Freelancer
Re: The Spoiler Explains It? LOL
Yog-Sothoth   6/13/2014 11:05:37 AM
NO RATINGS
@kfield: If you teach people how to write obfuscated code just for fun, chances they will use it one day - maybe they are being taken off a project, maybe they are getting fired, who knows?


Now if you teach them how NOT to do things, but how to do them better and more cleanly, then I am 100% in agreement.

I have seen some code where a subsequent maintainer added the comment 'the f*****r who wrote this should be shot', and indeed it was truly unreadable. And also the opposite, where the code was elegantly written and comments just enough to it was simple to understand, and also admire. I know which coder I would hire.

Max The Magnificent
User Rank
Blogger
No experience could be worse...
Max The Magnificent   6/13/2014 10:53:00 AM
NO RATINGS
No experience could be worse, except maybe sticking pins in your eyes.

Hmmm -- have you tasted my ex-wife's cooking?

kfield
User Rank
Blogger
Re: The Spoiler Explains It? LOL
kfield   6/13/2014 10:42:25 AM
NO RATINGS
@yog-sohoth: I don't view it as a waste of time, as the article points out, the winners are incredibly talented programmers and if this content is used as a teaching tool (which we plan do to at our event next year) it's an extremely powerful way to learn: By seeing how NOT to do things and why. Plus, we'll teach programmers techniques for fixing poorly written code, which I'm sure we've all run into at some point in our careers!!!

Yog-Sothoth
User Rank
Freelancer
Re: The Spoiler Explains It? LOL
Yog-Sothoth   6/13/2014 10:17:36 AM
NO RATINGS
What a pointless waste of time! A competition to write the best readable code would be better than one to write deliberately unreadable code.

Wnderer
User Rank
CEO
The Spoiler Explains It? LOL
Wnderer   6/13/2014 5:41:24 AM
NO RATINGS
That spoiler gives somes hints but not an explanation and the spoilers point 2 is just confusing.

Here's an explanation.

http://www.cprogramdevelop.com/1448772/

 

 

DrFPGA
User Rank
Blogger
Double Prize
DrFPGA   6/12/2014 4:40:46 PM
NO RATINGS
I think you should shoot for a double prize and submit here too:

http://columbiaspectator.com/multimedia/arts-entertainment/2013/11/16/bad-poetry-contest 

<<   <   Page 3 / 3
August Cartoon Caption Winner!
August Cartoon Caption Winner!
"All the King's horses and all the KIng's men gave up on Humpty, so they handed the problem off to Engineering."
5 comments
Top Comments of the Week
Like Us on Facebook

Datasheets.com Parts Search

185 million searchable parts
(please enter a part number or hit search to begin)
EE Times on Twitter
EE Times Twitter Feed
Flash Poll
Radio
LATEST ARCHIVED BROADCAST
David Patterson, known for his pioneering research that led to RAID, clusters and more, is part of a team at UC Berkeley that recently made its RISC-V processor architecture an open source hardware offering. We talk with Patterson and one of his colleagues behind the effort about the opportunities they see, what new kinds of designs they hope to enable and what it means for today’s commercial processor giants such as Intel, ARM and Imagination Technologies.