Live data from Hacker News

Emacs vs. WebStorm for Node.js Development

spin.atomicobject.com

61–70 of 105 posts

Re: Emacs vs. WebStorm for Node.js Development

#61
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.

Author here, I haven't tried Visual Studio Code but i'll be sure to check it out. As a side note, WebStorm also supports TypeScript definitions. It has an menu to download and add them to your project from definitely typed under "Preferences->Languages & Frameworks->JavaScript>Libraries"

VS Code has great TypeScript support (since both of those are Microsoft products)

Re: Emacs vs. WebStorm for Node.js Development

#62

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.

I was a heavy Vim user for about 4 years, and also did not understand Emacs though I tried it from time to time. The thing that changed my mind was using Org mode, and sticking with it for about two weeks. Once I felt comfortable in elisp and writing my own config, Emacs began to feel like a development environment that I had total control over. Everything that I bring from my life into Emacs -- task management, email, programming -- I now feel free to do them how I would like to do them. (Also, Org mode is great.)

edit: And there's nothing wrong with key bindings being 30 years old, Vim for instance has an incredibly efficient interface. Also, I find knowing basic emacs bindings quite useful around the OS X interface (many of them work).

Re: Emacs vs. WebStorm for Node.js Development

#63
One of the things mentioned in this article was magit (https://github.com/magit/magit). It's a tool I also use a crazy amount when developing with emacs.

Just wanted to remind everyone not to forget to donate when you find a tool that really saves you time/brings you joy while you dev.

Magit takes donations @ http://magit.vc/donations.html

I'm not at all affiliated with magit -- just donated and thought other people might feel the same if reminded.

Re: Emacs vs. WebStorm for Node.js Development

#64
post #60

Earlier quoted context omitted.

>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.

Cool! I'll try tweaking my config tonight to see if i can have more success.

Re: Emacs vs. WebStorm for Node.js Development

#65
post #17

The new Webstorm version coming up is several times faster, its amazing. On a Mac its so fast its literally like using Sublime. This is due among other things due to their upgrade to Java 8. This is the link to the early access program https://confluence.jetbrains.com/display/WI/WebStorm+EAP

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.

> So which should I use Rubymine or Webstorm?

IntelliJ Ultimate and install the plugins for both of those.

Re: Emacs vs. WebStorm for Node.js Development

#66

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.

I came to Emacs after learning my 5th IDE, and deciding I'd had enough of learning yet another set of cryptic keystrokes - if I was going to learn any more cryptic keystrokes, they'd be ones that would last for more than a few years. A minor benefit of learning the keystrokes is finding out they can apply elsewhere, like the shell readline, or in OSX.

Re: Emacs vs. WebStorm for Node.js Development

#67
post #17

The new Webstorm version coming up is several times faster, its amazing. On a Mac its so fast its literally like using Sublime. This is due among other things due to their upgrade to Java 8. This is the link to the early access program https://confluence.jetbrains.com/display/WI/WebStorm+EAP

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.

IntelliJ seems to be their 'master' IDE with plugins providing the functionality of PyCharm, Webstorm etc. It's reflected in the license cost, but I'm using it on a mixed Python, JS, PHP without too many issues except SDK-switching for each context.

Re: Emacs vs. WebStorm for Node.js Development

#68

What would take Node integration in Emacs to the next level would be to do something like the various Lisp implementations and their Emacs modes (SLIME, Geiser, etc.) do: Talk to a running program to get information. When I develop Scheme with Geiser, it knows which module I'm working in currently and it knows how to jump to the definition of any symbol by inspecting the source information attached to any Scheme obje…

That's how I write Ruby in Emacs. I have pry running in one pane, where I can write code with full context, then pull it across into the implementation.

Re: Emacs vs. WebStorm for Node.js Development

#69
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.

Came here to say this but you beat me to it. VS Code is great. It's come a long way very quickly and now that it has extension / add-on support, it's top tier.
Post reply on HN