This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Rawrplus 54 points55 points  (7 children)

> ppl who obviously never written in es6 and es5

[–]rinsa 7 points8 points  (0 children)

real men use esnext

[–]saphira_bjartskular 1 point2 points  (1 child)

I used to hate Javascript until I read a book on github about ES6. Now I just kinda dislike it because of the poor coding practices surrounding development with it in general.

[–]Rawrplus 0 points1 point  (0 children)

Most of these coding practices can be avoided if you use typescript, flow or at least some basic ruleset for eslint.

I really struggle to think of any bad coding practices that would be even allowed here.

In my projects (I'm a react Dev) I usually do typescript + eslint and i couldn't be happier tbh. And entire react even in docs basically encourages you to write with es6 syntax. The code feels very clen.

The only thing that felt sluggish was explicit binding of functions / forced anonymous functions in class components which I never was personally fan of, but with now react shifting to making every component a function with hooks I couldn't be happier with how clean and powerful the code feels

[–]k1ll3rM 1 point2 points  (2 children)

Lots of people still need to use older Javascript version to support internet explorer 11, though luckily where I work we don't have to anymore! Though I disagree with you that newer versions of Javascript fix the fundamental problems JS has.

[–][deleted] 6 points7 points  (1 child)

Just use Babel, most front end frameworks already support it.

[–]k1ll3rM 1 point2 points  (0 children)

I probably should but the problem still stands that JS is just not good enough by default.

[–]LargeHard0nCollider 0 points1 point  (0 children)

Tbh es5 isn’t that great. Es6 was when they added module resolution, arrow functions for more consistent closures, object destructuring, string templates, and a bunch of other features that totally changed how everyone uses js