Hacker News new | past | comments | ask | show | jobs | submit login

Good to see people trying something ew, but isn't this just a bit of 'it doesnt do what I'm used too, so it's broken'

"Funny thing. Adding arrays returns a string. Subtracting them returns NaN. Again, JavaScript devs will explain why. Maybe even try to convince you that it’s perfectly fine behaviour. It’s not"

Things like this in all languages, are what separates pros from tinkerers, in my opinion. It can be confusing, sometimes there are no good reason for this, other times there are.

I like JavaScript for all its quirks. It's the quirks hat have allowed it to be used in ways that were never envisaged.

To the OP, if you find something that doesn't work like everything else would, have a look at exploiting that difference before trying to make it conform

Otherwise nice post

Disclaimer: JS Dev to the core




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: