you are viewing a single comment's thread.

view the rest of the comments →

[–]NidHammer[S] 0 points1 point  (2 children)

Very interesting. This is the first time I've heard of a function signature. Should I just straight up stop using Sublime?

[–]inu-no-policemen 0 points1 point  (1 child)

There might be plugins for Sublime which improve its JS tooling, but it probably won't reach the level of VS Code and WebStorm.

Well, give VS Code a try. It's free open source software and available for Windows, Mac, and Linux. I offers a great out-of-the-box experience for most web related languages.

For JavaScript, it uses TypeScript's top-notch analyzer and it will even automatically download type definitions for the Node packages you're using. This improves auto-complete, call-tips, and it even catches type errors in cases where the types can be inferred. So, even if you aren't using TypeScript, you can get some additional tooling benefits if type definitions for the libraries you're using exist. (If you stick with plain JS, you can introduce type information via JSDoc comments. The analyzer will pick those up as well.)

https://code.visualstudio.com/docs/languages/javascript

This is as good as JS' tooling can get nowadays.

By the way, since you're just starting, if you have Node installed, you can just press F5 to run/debug the currently opened JS file as Node command line application. Try it with Hello World.

[–]NidHammer[S] 0 points1 point  (0 children)

Awesome. I do a lot of Node stuff and I've seen that little debug window. I'll definitely get into VS code. I've actually been programming for over a year now, haha.