Programming Humor: How To Write Unmaintainable Code?

Sponsored Links

Programming Humor: How To Write Unmaintainable Code?

Some time ago, I ran across this lengthy humor article on how to write unmaintainable code.

Look at this gem:

Capitalisation

Randomly capitalize the first letter of a syllable in the middle of a word. For example ComputeRasterHistoGram().

How many times did you see this CamelCase notation in code on Words? Too many times!

The idea here is that the more cryptic, obscure and obfuscated your code is, the more secure your job is, because no one else knows your code.

In reality, maintainable code is essential for your own sanity. Most code changes over time due to bug fixes and new requirements. Revisiting code that you have written months or years ago is often like looking at new code: if it is clear, you can go ahead and understand (or  re-understand) and maintain it. If it is cryptic, you suffer!

This article was on Slashdotlast week, with some interesting comments. 

On the contrary, you can see real life programming bloopers in another article that I have written. 

Resources

Thanks for the link. Your

Thanks for the link. Your "real life programming bloopers" link doesn't work, however. I get a 404.

Link fixed

Thanks for bringing that to my attention. I fixed the typo.
--
Khalid Baheyeldin

Post new comment

  • All spam and irrelevant comments will be deleted.
  • Comments posted here will take some time to appear on the site. Do not post your comment again if you do not see it. Just be patient and it will be published.
  • Note that what you post here will be publicly available on the web and will be indexed in search engines.
  • We reserve the right to unpublish any comments without stating the reasons for that.
  • All postings are subject to our Terms of use
The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <blockquote>
  • Lines and paragraphs break automatically.

More information about formatting options