One of my characters is a young graduate student who leaves her adviser. He takes her research code and he gets his other students to use it, not forgetting to say all sorts of mean things about her and the code.
I need a derogatory expression for code that is written by a young and inexperienced developer who contains many typical mistakes: do loops that do nothing, non-descriptive names for variables, monolithic blocks, repeated blocks of code where a function will do, inconsistent naming convention, etc.
I have heard terms like "spaghetti code", "hydra code", "jenga code", but they don't necessary imply ineptitude on the part of the developer. Also I've heard the term "Jimmy" describing the clueless developer. "Jimmy code" would be a choice then, but I'm not a programmer, so I don't know what is used.