News for hackers. Stuff that matters.
Re:A Modern JavaScript Tutorial by z3t4 on Monday December 07, 2020 @03:11PM (#25336711)
What text editor did you use before? I think the biggest advantage is an IDE, not the language itself.
Re:A Modern JavaScript Tutorial by RussianCow on Monday December 07, 2020 @03:52PM (#25337340)
As a daily user of IntelliJ IDEA—which, IME, has the best autocomplete and code suggestions of any IDE for dynamically typed languages—there is a world of a difference between the quality of suggestions for a codebase using TypeScript and one written in vanilla JS. Without concrete types, the IDE often has to guess the possible type(s) that a value can have, whereas with TS, there is (generally) no such ambiguity.
Re:A Modern JavaScript Tutorial by scpedicini on Monday December 07, 2020 @04:12PM (#25337610)
I don't really experience this issue and I use Web storm which is basically the same thing. I find that the dynamic type hinting plus the combination of using JS Doc formatted comments rarely leaves me with any ambiguity when writing vanilla JavaScript.
Re:A Modern JavaScript Tutorial by raytracer on Monday December 07, 2020 @06:16PM (#25339086)
Are you using types in your JS Doc comments? If so, that's not vanilla JavaScript.
Re:A Modern JavaScript Tutorial by DrScientist on Tuesday December 08, 2020 @04:51AM (#25343542)
It is because it runs in the browser unprocessed.

You edit a file and reload, no munging pipeline,

Re:A Modern JavaScript Tutorial by z3t4 on Monday December 07, 2020 @07:34PM (#25339845)
JS Doc is just comments. (But the typechecker can still read them.)