1
๐ฅ Discussion ๐ฅ ES6 Classes. Good or Evil?
(programming.dev)
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Follow the wormhole through a path of communities !webdev@programming.dev
Whatever you do, I'd recommend using Typescript to give you some type safety with your JS.
I hate the heavy JS env it requires.
Adding jsdoc to standard JS makes the ide provide some type help without TS. I find that to be a good, light alternative.
The IDE support based on JSDoc is typescript (at least it is in all the ones I know about). They're just using TypeScript's JSDoc annotation support under the hood.
I'm not sure what you mean about the "heavy JS env" though, it's just calling
tsc
in yourpackage.json
or whatever build script you're using (or even if none, it's one command).I don't have nodejs installed. That's the heavy environment it depends on.
I think you do if your IDE is doing JSDoc-based autocompletion ๐
It's just likely built into your IDE.
TypeScript is next on my list. The loose typing of JavaScript drives me a little nuts sometimes ๐ .
In that case you will love typescript. I'm not sure what other imperative languages have both type inference and structural typing.