r/ProgrammerHumor • • Jun 21 '18

Thanks Brendan for giving us the Javascript

Post image
3.1k Upvotes

302 comments sorted by

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.

0

u/[deleted] Jun 22 '18

[deleted] — view deleted comment

12

u/Broojo02 Jun 22 '18

"Shitting on languages used in web development"

20

u/senntenial Jun 24 '18

Shitting on badly designed languages

2

u/chrisyfrisky Jun 25 '18

More like people shitting on badly-designed languages vs. people who put quotes around the words "badly-designed"

1

u/bumblebritches57 Jun 26 '18

There we fuckin go.

9

u/senntenial Jun 24 '18

JS is bad lol

0

u/Code_star Jun 24 '18

DAE JabbaScript is bad lulzzzzzzzzzzzzzzzzzzzzzzzzzzzz

7

u/senntenial Jun 25 '18

name one reason it isn't terrible

2

u/Code_star Jun 25 '18

it has very easy to use anonymous functions where you can easily change the binding scope with a slight change in syntax.

5

u/senntenial Jun 25 '18

that's a mechanic in virtually any modern language. i don't consider that a reason.

→ More replies (4)

1

u/drjeats Jun 25 '18

JavaScript bringin' back the crappy parts of Lisp 😎 👍

1

u/Code_star Jun 25 '18

anonymous functions are useful though ... plus the shitty parts for lisp are the parenthesis

1

u/drjeats Jun 25 '18

Anonymous functions are great. I'm talking about being able to rebind this and other scope weirdness.

→ More replies (5)

1

u/junrrein Jun 25 '18

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.

1

u/Code_star Jun 26 '18

scope might have been the wrong way to phrase it. basically arrow functions vs anonymous functions

this could explain better than I could

https://www.sitepoint.com/es6-arrow-functions-new-fat-concise-syntax-javascript/

→ More replies (7)

12

u/[deleted] Jun 21 '18

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.

12

u/xIcarus227 Jun 22 '18

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.

2

u/[deleted] Jun 22 '18

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.

5

u/xIcarus227 Jun 22 '18

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.

1

u/[deleted] Jun 21 '18

Now it's just announcing you don't understand the JS type system honestly.

3

u/[deleted] Jun 24 '18

vim vs emacs and the usual rotation of xkcd shit

3

u/[deleted] Jun 24 '18

I mean the issues legitimately are dumb

2

u/prozacgod Jun 21 '18

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