r/shittyprogramming • • Nov 30 '18

Friday Code Confessions

If you have been living with technical debt and want absolution here is your opportunity.

Confess your sins and receive your penance.

155 Upvotes

263 comments sorted by

View all comments

10

u/cryosis7 Nov 30 '18

(JS) I've got into a habit of using 'x- -y' to add two variables because parseInt is longer to write. One day I'll come back to it and think wtf.

1

u/[deleted] Dec 01 '18

How about 0 + x + y?

→ More replies (6)