Lately, I have been reading stories of programming horror, where people have to deal with terrible code. Here is one particularly interesting Reddit post about how not to do object-oriented programming. After reading stories like that, I began to wonder about what is the worst code that I could make. Below is one completely useless function that I wrote. It takes the dubious assumption that it usually takes 100 tries to get a random number between 1 and 100 that is equal to 1 and takes it excessively far.

I call the art of writing this horrible code "spaghettification." That's a pun on black holes and spaghetti code. Now, what is the worst code that you can write? Note: All statement calls must affect result in some way or include the result as one of its inputs. I will accept (cat (cat (cat (cat (cat (cat (cat (cat (cat cat))))))))) as an example, but the two extra statements in (block Nil (random 1 1) (random 1 1) (random 1 1)) are simply a waste of space.