During an undergraduate computer science degree, you’ll generally produce two sorts of code: very well-organized and aesthetically pleasing code which you’ll never touch after the assignment has been submitted, and awkward balls of mud which you’ll never touch after the assignment has been submitted. In industry it is far more common to encounter the latter and without the saving grace of disposability. The C language in particular easily lends itself to the production of dense, incomprehensible code. In this talk, I’m going to unravel two different snippets: the notorious “Duff’s device”, and a rather hairy mechanism for determining how many bits are set in an integer. In doing so, I hope to demonstrate both some techniques for breaking down poorly-understood code and enforce a healthy fear of unnecessarily complicated code even if it’s only a few lines long. Delivered for the Acadia Computer Science Society on 2016-11-25.