Log in

View Full Version : Unmaintainable Code


GEEK
September 22nd, 2009, 01:10
Some of you guys must have already read this but those who haven't i don't want them to miss out on the joy of reading it.
Every tip in this article was worth a laugh


http://www.theparticle.com/fun/fun.php?topic=programming&id=2375

this is how it starts
Quote:
In the interests of creating employment opportunities in the Java programming field, I am passing on these tips from the masters on how to write code that is so difficult to maintain, that the people who come after you will take years to make even the simplest changes. Further, if you follow all these rules religiously, you will even guarantee yourself a lifetime of employment, since no one but you has a hope in hell of maintaining the code.



.

AttonRand
September 22nd, 2009, 03:52
lol

very nice, wish i' d know this before my java exam.

My favourite:

Quote:
Lie in the comments. You don't have to actively lie, just fail to keep comments as up to date with the code.


EDIT: But i have a question: once you finished coding will you be able to read what you wrote?

Daniel Pistelli
September 22nd, 2009, 05:59
Nice =)
this list would have been greatly acted out by George Carlin.

Quote:
But i have a question: once you finished coding will you be able to read what you wrote?


Well, seriously speaking there would be a much nicer way. Write a normal source code and then use a parser to create a source code following the hints in the list. Not an obfuscator, just a bad-developer-source-converter =)

GEEK
September 23rd, 2009, 07:23
Quote:
But i have a question: once you finished coding will you be able to read what you wrote?

Atleast better than anyone else and thats a good reason they wont fire you :P

Even i thought about a bad-developer-source-converter and coding it would be fun

disavowed
September 24th, 2009, 22:24
Quote:
[Originally Posted by AttonRand;83083]very nice, wish i' d know this before my java exam.

One of my favorite things to do on exams in university (math and physics exams, not computer science exams) was to solve half the problem and then say that the rest was trivial and is left as an exercise for the reader/grader. It often worked

Kayaker
September 24th, 2009, 23:07
Heheh, I'll bet you got on the exam grade a "B" for "Ballsy"