Definition: Code Turd

April 7, 2006 | 22 Comments

In a major enterprise system we pay a lot of money for, a recent patch threw us an error based on the following line of code in a shell script:

echo "I am what is running, this is linux" >> /home/ban7/jobsub/for_whatever_purpose.txt

This line was not conditional and was ironically being run on a Solaris system, not Linux. Our DBA Jon Graton defines these little gems of “production” code as “code turds”.

programming, code, shell script, definition, unix, linux, solaris, disk turd, jon graton, dba

Tags: , , , , , , , , ,

Related: