Live data from Hacker News

Emacs vs. WebStorm for Node.js Development

spin.atomicobject.com

91–100 of 105 posts

Re: Emacs vs. WebStorm for Node.js Development

#91
post #68

Earlier quoted context omitted.

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.

This doesn't sound like the same thing. Do you use an Emacs mode that is able to talk to the Pry REPL and retrieve information about the code you are working with? In addition to the other stuff I mentioned, Geiser also gives me symbol autocompletion, automatically shows me the printed representation of the value under the point, shows me the signature for the current procedure I'm working with, and shows docstrings…

For me, coding in a debugger is a superior experience to coding with static type info - because I have data too, not just types. Ie completion isn't the big win - seeing live results of processing data is.

Re: Emacs vs. WebStorm for Node.js Development

#92

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.

As far as VIM goes I'm on the same boat. If Webstorms VIM plugin had the ability to move from panes and specially into the file tree explorer (use the hjkl), that would probably make me want to use it.

Not sure on Webstorm, but IntelliJ (which has the webstorm plugin) lets you flip between panes using standard Vim keybindings.

Re: Emacs vs. WebStorm for Node.js Development

#93
post #91

Earlier quoted context omitted.

This doesn't sound like the same thing. Do you use an Emacs mode that is able to talk to the Pry REPL and retrieve information about the code you are working with? In addition to the other stuff I mentioned, Geiser also gives me symbol autocompletion, automatically shows me the printed representation of the value under the point, shows me the signature for the current procedure I'm working with, and shows docstrings…

For me, coding in a debugger is a superior experience to coding with static type info - because I have data too, not just types. Ie completion isn't the big win - seeing live results of processing data is.

I can't tell if you are agreeing with me or if we are miscommunicating. Seeing live results of processing data is exactly the type of thing I do with Geiser in Emacs. No static analysis.

Re: Emacs vs. WebStorm for Node.js Development

#94
post #81

Earlier quoted context omitted.

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.

I have the same issues w/ the vim plugin as the author(especially re: the weird "middle" state)

Are you using the mouse when this is happening?

Re: Emacs vs. WebStorm for Node.js Development

#95

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 just added a .tern-project file to load the "node" plugin to my node.js project skeleton http://i.imgur.com/yh4tphx.png

My whole dotemacs (including skeleton) is here https://github.com/wcummings/dotemacs

Re: Emacs vs. WebStorm for Node.js Development

#96
post #92

Earlier quoted context omitted.

As far as VIM goes I'm on the same boat. If Webstorms VIM plugin had the ability to move from panes and specially into the file tree explorer (use the hjkl), that would probably make me want to use it.

Not sure on Webstorm, but IntelliJ (which has the webstorm plugin) lets you flip between panes using standard Vim keybindings.

right, I was able to do that, but not between panes and file explorer.

Re: Emacs vs. WebStorm for Node.js Development

#97
post #92

Earlier quoted context omitted.

As far as VIM goes I'm on the same boat. If Webstorms VIM plugin had the ability to move from panes and specially into the file tree explorer (use the hjkl), that would probably make me want to use it.

Not sure on Webstorm, but IntelliJ (which has the webstorm plugin) lets you flip between panes using standard Vim keybindings.

Holy cow, I'm so dumb.

I have "ctrl-(hjkl)" mapped using https://github.com/christoomey/vim-tmux-navigator so I have an extremely easy time navigating between splits in terminal vim. I tried like hell to get "ctrl-(hjkl)" to work in IntelliJ. I eventually gave up and decided to just start clicking the panes like a caveman. It never even crossed my mind to try the original bindings.

Thank you.

Re: Emacs vs. WebStorm for Node.js Development

#98
I moved from WebStorm to Spacemacs. Mostly because although it's great, yet IdeaVim plugin for WebStorm is still lacking many things - any seasoned Vim user would need. Navigating in Emacs is WAY more better than in WebStorm. Another annoying thing is indexing. Searching and finding things in Emacs way faster. Also because WebStorm's code proprietary it takes them months to fix bugs. And they wouldn't even move a finger to fix something or implement new features if they don't see value proposition to sell more licenses.

Re: Emacs vs. WebStorm for Node.js Development

#99

> Another thing Emacs is much better at is Vim emulation. At this point, I can't take the review seriously.

He's right though. it's very difficult to turn Vim itself into full-fledged IDE. Most of known modern editors and IDEs offer some sort of Vim emulation. And I've tried many of them. Visual Studio, Sublime, Atom, LightTable, IntelliJ, you name it - none of even close to what you can get in Emacs.

Re: Emacs vs. WebStorm for Node.js Development

#100

Earlier quoted context omitted.

>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 :(

This .tern-project config works for me: { "libs": [ "browser" ], "plugins": { "node": {}, "es_modules": {} } } Your project files must have "correct" format, e.g. require('relative_path') for imports and module.exports / exports for exports (or es6 import and export ). Example for AMD format (requireJS) can be found here - http://ternjs.net/doc/manual.html#configuration

I can't get it to search outside the standard node files using the above config. I can't get it to be aware of my code in the project.
Post reply on HN