r/badcode • • Jan 01 '19

[deleted by user]

[removed]

137 Upvotes

87 comments sorted by

View all comments

Show parent comment

1

u/mr_luc Jan 02 '19

There is not nearly enough appreciation for this post.

I just want to tell you that I am reading your code while sipping some Templeton Rye (6) and enjoying myself thoroughly.

0

u/[deleted] Jan 02 '19

[deleted] — view deleted comment

1

u/Naouak Jan 02 '19

The aim is not the obfuscation. Obfuscation is just a consequence of bad code. I did code it by trying to apply "good practices the wrong way" : long strings are bad, chaining is hard to understand. Once I had an almost working code, I patched it by trying to fix bugs I found the worst way possible. The trailing spaces are a bug fix for example.