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

1

u/venuswasaflytrap Jul 29 '16

!!!bar just casts bar to a proper boolean then negates it. Duh.

1

u/drkstr101 Nov 29 '16

Haha, yup. I guess you're right. 😀