this post was submitted on 30 Jun 2023
24 points (92.9% liked)
Programming
16769 readers
139 users here now
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
Rules
- Follow the programming.dev instance rules
- Keep content related to programming in some way
- If you're posting long videos try to add in some form of tldr for those who don't want to watch videos
Wormhole
Follow the wormhole through a path of communities [email protected]
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Whatever you do, I'd recommend using Typescript to give you some type safety with your JS.
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.
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.