Live data from Hacker News

Emacs vs. WebStorm for Node.js Development

spin.atomicobject.com

51–60 of 105 posts

Re: Emacs vs. WebStorm for Node.js Development

#51
post #46
post #42

Wow. So many comments and no mention of Atom in a talk about JS IDEs/editors?

Using Atom is just pure pain, though the pain goes away fast once you stop using it.

What pain are you experiencing? Im using it often and dont have any problems.

Re: Emacs vs. WebStorm for Node.js Development

#53
post #9
post #2

tl;dr: (everybody already know this) webstorm is better at debugging

Actually for me, this is much more important: "Symbol and definition lookup is another great feature of WebStorm. While Emacs can find symbols and definitions in a single file via Tern, WebStorm can actually inspect your whole project and find a definition, or at least give you a very pruned list of candidates to choose from." not being able to Ctrl-click a variable or function really reduces my efficency (especially…

as other have mentioned in this thread, Tern also is capable of inspecting your whole project to find a definition.

Re: Emacs vs. WebStorm for Node.js Development

#54

I do node.js dev w/ emacs, and my setup is pretty similar to the author's: magit, j2mode, tern + auto-complete-mode, etc.. It's pretty good. I haven't used WebStorm, but I've had stellar experiences w/ IntelliJ that lead me to believe its probably pretty good. >While Emacs can find symbols and definitions in a single file via Tern Tern supports node.js module loading so this should work across modules. Does WebStorm…

>Tern supports node.js module loading so this should work across modules.

This hasn't been my experience. I've tried various term commands and configuring tern to do things like eagerly loading project files, but it still only works for me in a single file. Do you have any links to docs on how to do this?

Re: Emacs vs. WebStorm for Node.js Development

#55
post #7

I personally moved to visual studio code (from WebStorm ) which has a good debugger for Nodejs and a few features that are really handy ( support for .d.ts definitions for node modules ... ). I usually don't use MS products but they did an impressive job with that IDE, no question.

VS Code has become the editor I find myself using most often because it usually does things that I do with a little more elegance and ease than other editors. One thing I see people complain about, as I used to, is that it doesn't have a file tab interface and it only puts files you have changed in the "working files" area, meaning if you open a file to view it you can lose track of it. However, I discovered clicking…

You should consider using keyboard navigate files CTRL+P - shows list of recently opened files and it's a fuzzy search dialog - no mouse involved.

My gripe with VisualStudio code file tree is that it doesn't have icons - this is actually pretty huge for me - I use the file tree when I'm reorganizing code structure and need a good overview of things - for all it's failings as a text editor Atom file tree is really nice with the icons addon - hopefully something like that shows up for VSCode.

That and YouCompleteMe for C++ and I'd switch all the way to VSCode, and I have no doubt that is going to happen so I'm just waiting now (too little time to work on it ATM otherwise I would start it)

Re: Emacs vs. WebStorm for Node.js Development

#56

"Symbol and definition lookup is another great feature of WebStorm. While Emacs can find symbols and definitions in a single file via Tern, ..." Actually, tern has tern-find-definition which works not only in a single file. You can jump in to other modules in your project or to node_modules. And there is tern-pop-find-definition to return back. For methods of native js objects tern even opens browser with related MDN…

>Actually, tern has tern-find-definition which works not only in a single file.

I haven't been able to make this work outside my current file. Perhaps I'm just configuring tern wrong :(

Re: Emacs vs. WebStorm for Node.js Development

#57

Earlier quoted context omitted.

Are the VIm mode issues he mentioned improved? I keep moving back to VIm because while all of these tools make excellent IDEs none of them are great editors. The other thing that drive me a bit nuts is the multiple versions. Webstorm vs Rubymine. I build on Rails, but do most of my UI work with Angular+JS+Webpack. So which should I use Rubymine or Webstorm? It's all too confusing.

I really don't know what issues the author is referring to. I have used IdeaVim for PyCharm and was very satisfied with it. It has its own vimrc file which allows you to not only copy paste your existing bindings, but also keeps them separate form your default bindings in a clean way. If you compare this level of support for Vim with MonoDevelop, you'd realize just how good it actually is.

MonoDevelop's Vim mode just kills me - probably the worst Vim mode I've used in any editor.

Re: Emacs vs. WebStorm for Node.js Development

#58
post #46
post #42

Wow. So many comments and no mention of Atom in a talk about JS IDEs/editors?

Using Atom is just pure pain, though the pain goes away fast once you stop using it.

Atom has been awesome for me for JS and Rust, and that's after being a years-long user of IntelliJ products (and vim -- but I don't ever truly ditch vim).

Re: Emacs vs. WebStorm for Node.js Development

#59

I tried Emacs many times, but I still can't understand its appeal. Yes, everything can be changed, but there are layers and layers and layers of legacy code, cryptic keystrokes and shortcuts from 30 years ago, conflicting packages, elisp (I don't have anything against Lisp in general, but this particular dialect is quite quirky), etc etc.

try spacemacs!

http://spacemacs.org/

Re: Emacs vs. WebStorm for Node.js Development

#60

I do node.js dev w/ emacs, and my setup is pretty similar to the author's: magit, j2mode, tern + auto-complete-mode, etc.. It's pretty good. I haven't used WebStorm, but I've had stellar experiences w/ IntelliJ that lead me to believe its probably pretty good. >While Emacs can find symbols and definitions in a single file via Tern Tern supports node.js module loading so this should work across modules. Does WebStorm…

>Tern supports node.js module loading so this should work across modules. This hasn't been my experience. I've tried various term commands and configuring tern to do things like eagerly loading project files, but it still only works for me in a single file. Do you have any links to docs on how to do this?

I literally just installed tern in atom a few minutes ago and it works. This is the .tern-project file I generated, but I have no idea if it's optimal.

{ "ecmaVersion": 6, "libs": [], "loadEagerly": [ "node_modules/lodash" ] }

I'm definitely getting lodash method lookups and they work well.

I hear it's not a good idea to throw all of node_modules at tern -- but the same applies for WebStorm.

Post reply on HN