Probably more often applied to Basic code than anything else because of the "GOTO" statement, but is often used to describe any tangled and confused mess of code.
Programmers don't always write bad code out of ineptitude. Sometimes it is a deliberate form of job security. This is true both for in-house programmers and those doing contract work for others. In both cases, convoluted code makes it difficult for someone else to take it over or provide new features. Of course, this can backfire: it can also make the original programmer confused and impotent.
The Obfuscated C Contest raises confusing code to an art level.
Deliberately nasty code is often combined with truly awful formatting just to further scare off any who would dare to examine it. Lack of comments or obviously pointless comments :
# sort @x=sort @y;
can be another sign of job protection at work.
Got something to add? Send me email.
More Articles by Tony Lawrence © 2011-07-05 Tony Lawrence
We are stuck with technology when what we really want is just stuff that works. (Douglas Adams)
Printer Friendly Version
code Copyright © October 2003 Tony Lawrence
Have you tried Searching this site?
This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more.
Contact us
Printer Friendly Version