Honestly this sub should just be renamed shitting on JS though. Seems like half the posts ever are from people just encoutering the language seriously for the first time and saying "LOL THAT'S SO DUMB". It might have been funny a decade ago but now it's trite, unfunny, and boring.
you can easily change the binding scope with a slight change in syntax.
Can you say more about what this means? I'm not familiar enough with Javascript and a quick Google search didn't seem to turn up anything directly relevant.
My point exactly. It's getting repetitive, and old. The "lol. wut?" talk about JS things was YEARS AGO. It was funny then. Now it's boring, because you don't have anything new. Also most of the issues being presented are contrived and never actually used in real code.
I agree that some of these have no real purpose IRL but I also think you underestimate the amount of bugs some of these cause in the real world. A notable mention is adding vs subtracting an integer with a string. Especially since everything tends to be a string in the DOM.
Sure, it doesn't complain if you forget to parseInt or parseFloat, but that's like the spectator asking Charles Babbage: "If you feed it the wrong input will it give you the correct output?"
Just... figure out what you're doing. Escape your inputs, parse your inputs, validate your inputs, etc. It's a basic requirement for everything web.
I certainly agree with what you're saying, writing PHP and JS daily for a few years taught me those lessons the hard way. I hit my head countless times against quirky behaviour. I admit it's second nature now, but I just think it's a bit dangerous when such matters are promoted as 'normal', as a matter of just knowing the language deeply.
It might have been funny a decade ago but now it's trite, unfunny, and boring.
Oh shit, that's "peak language" talk .. someones going to try to create a replacement where all the next generation of hipsters can go too :P
Or just implement any possible language on top of the existing one. I feel like this has got to be a JS exclusive lifecycle event. the shear number of languages you can compile to JS is crazy
View all comments
Show parent comment
25
u/[deleted] Jun 21 '18
Honestly this sub should just be renamed shitting on JS though. Seems like half the posts ever are from people just encoutering the language seriously for the first time and saying "LOL THAT'S SO DUMB". It might have been funny a decade ago but now it's trite, unfunny, and boring.