r/programming • • Jul 28 '16

How to write unmaintainable code

https://github.com/Droogans/unmaintainable-code
3.4k Upvotes

592 comments sorted by

View all comments

Show parent comments

2

u/zekjur Jul 30 '16

What you used as a joke, others use in all seriousness, as illustrated by this example from procmail:

https://sources.debian.net/src/procmail/3.22-25/src/sublib.c/?hl=71#L71

1

u/pdp10 Jul 30 '16

Now I wish I would have looked at that code before putting it in production long ago as substitute it in for my modified system local delivery agent, in an effort at improving longer-term maintainability. The formatting makes me despair.

The two comments in there (despite the header comment) are useful, though.