How terrible code gets written by perfectly sane people