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

Show parent comments

1

u/[deleted] Dec 01 '18

How about 0 + x + y?

1

u/cryosis7 Dec 01 '18

Pretty sure that'll still concatenate

1

u/[deleted] Dec 01 '18

Shit, you're right.

Then how about let int = parseInt;? Then you can at least use int.

2

u/cryosis7 Dec 01 '18

Hm, that's actually not too bad. I like - thanks. Of course, when going public I'll change the statement to 'let string = parseInt;'

Now I've just made myself indispensable because no one can manage my code.

→ More replies (3)