Term: cruft
Example: jim had to spend several days cleaning up the cruft left behind in the code by the [newbie] programmer
Definition: 1