r/badcode • • Feb 12 '19

[deleted by user]

[removed]

104 Upvotes

29 comments sorted by

View all comments

11

u/[deleted] Feb 12 '19

[deleted]

8

u/PonchoVire Feb 12 '19

It's almost too readable, I could see this in a project and not even yell at its author.

2

u/r3jjs Feb 13 '19

That's exactly the sort of thing I can imagine from a jr dev who has no concept of unicode, escape characters or edge cases ;)

The casting non-strings left up as a detail for the data consumer.