"to generate copious amounts of source code that looks like it came from an offshore chop shop that whip cracked a thousand underpaid programmers to complete tasks under threat of violence so they'll fake the tests and cut corners but hide it with plausible bullshit"
If the source code looks like crap, THROW IT AWAY, work on your requirements document, and re-implement.