News for hackers. Stuff that matters.
Re:Editors (Vim) by pvg on Saturday June 06, 2020 @12:37AM (#23436865)
It's Emacs for Javascript people - a good thing since Emacs is moribund and most programmers are at least a little bit Javascript people. A highly programmable, cross-platform editor with zillions of extensions/modes that support all sorts of languages and environments. People complain about its resource requirements and performance, just like they did with Emacs. Vi(m) users are the natural enemy of VSCode, just like they were the natural enemy of Emacs, continuing their long proud tradition of being wrong about everything. I think that's roughly where it fits 'philosophically'.
Re:Editors (Vim) by yjftsjthsd-h on Saturday June 06, 2020 @01:01AM (#23436948)
I'm going to partially disagree.

> It's Emacs for Javascript people

I'll accept this premise.

> a good thing since Emacs is moribund

And here we part ways.

> and most programmers are at least a little bit Javascript people.

You might be living in a bubble.

> A highly programmable, cross-platform editor with zillions of extensions/modes that support all sorts of languages and environments.

Agreed; I think you're actually underselling how helpful it is that it's apparently a lot easier to get started with than emacs or the vi family. Power tools with a lower learning curve is a good thing.

> People complain about its resource requirements and performance, just like they did with Emacs.

And they're right to do so, especially with Moore's law wearing thin. Besides which, emacs (and n/vim, for that matter) are still around, and are just as functional in a much smaller resource footprint.

> Vi(m) users are the natural enemy of VSCode, just like they were the natural enemy of Emacs, continuing their long proud tradition of being wrong about everything.

LOL, that's... semi-fair, even if you're on the wrong side, of course;)

> I think that's roughly where it fits 'philosophically'.

I think it's fair to call VSCode "EMACS but with JS", but I think you're really glossing over the issues that it has in practice; maybe with a decade of maturation it'll be on par, but today I would argue that it is a resource hog, and still suffers from some poor design choices (such as letting extensions trample eachother, per the upthread discussion).

Re:Editors (Vim) by bitwize on Saturday June 06, 2020 @01:31AM (#23437058)
It's not really.

The difference between VSCode and Emacs is the difference between an extensible editor and a software omnitool intended to be extended, shaped, and refined as you work with it. Writing short programs in Emacs Lisp, seeing their effects immediately in the live editor environment, and then (should they prove generally useful) refining them into full-fledged modes or commands is quite a bit different than writing a packaged extension.

There is, still, nothing like Emacs in the editor world today. As much as Visual Studio Code gets right, it has a long way to go to get within spitting distance of Emacs in terms of adaptability and power (to say nothing of resource consumption).

Re:Editors (Vim) by pvg on Saturday June 06, 2020 @01:15AM (#23437006)
You might be living in a bubble.

I think the relative sizes of the 'Most programmers have at least some minimal familiarity with Javascript' bubble and the 'Emacs is not moribund' bubble speak for themselves and offer sufficient retort :)

Re:Editors (Vim) by thunderbong on Saturday June 06, 2020 @02:04AM (#23437172)
This shows the stance of the people in the different "editor groups" perfectly! I'll never understand why programmers get so attached to their tools that they start evangelizing it for everyone else. Just look at the other responses to this comment. People are either questioning each bit or are trying to defend them.

If it work for you good, if not, fine. Just don't get crazy about it. It's just an editor!!

Re:Editors (Vim) by pvg on Saturday June 06, 2020 @02:37AM (#23437292)
A big, fun part of any hobby or craft that involves tools is kvetching about the tools. It's often at least as fun as the practice of the hobby or craft itself.
Re:Editors (Vim) by Cyph0n on Saturday June 06, 2020 @12:49AM (#23436910)
> continuing their long proud tradition of being wrong about everything.

Why do you think that Vim users were/are wrong about everything?

Re:Editors (Vim) by pvg on Saturday June 06, 2020 @01:01AM (#23436949)
I don't! That's just a dumb joke. A thing that I semi-seriously think: modal editing is not some uniquely interesting or advantageous way to navigate and edit text. A thing that I mostly-seriously think: most more recent methods for editing and navigating code are a lot better vim-style modal text editing.
Re:Editors (Vim) by Cyph0n on Saturday June 06, 2020 @01:39AM (#23437085)
Modal editing is very efficient imo. Once you get used to it, there is no going back. Plus, in my experience, it’s much easier on the wrists in general.

But I think Vim bindings in an IDE or Vim with a LSP plugin is the killer combo.

Re:Editors (Vim) by webgoat on Saturday June 06, 2020 @01:30AM (#23437057)
I expected it was because of the vim crowd's belief that a small footprint is essential for some reason. I use evil mode in emacs and can't understand why vim people place arbitrary limits on themselves when emacs is a more full IDE experience that costs them very little to jump to.
Re:Editors (Vim) by Cyph0n on Saturday June 06, 2020 @01:43AM (#23437106)
I use a remote machine at work for all development. With tmux + Vim, I get persistent editor sessions with native performance.

The alternative used to be writing code over VNC (not fun!), but we’re now moving towards VS Code Remote. I don’t see myself changing to it anytime soon, though.

Re:Editors (Vim) by szemet on Saturday June 06, 2020 @01:19AM (#23437027)
The only thing what makes modal editing bearable (from UX PoV) is the unlimited undo.

e.g. Would anyone take a plane that has modal cockpit buttons?

Re:Editors (Vim) by xenomachina on Saturday June 06, 2020 @04:37AM (#23437645)
All editors are modal, just to different extents. In Notepad, if you type a letter it inserts it, unless you have some text highlighted, in which case it replaces that text. "Some text is selected" is a mode.

The big thing that classic vi got wrong with modes from a usability perspective is that changing modes is mostly invisible. In vim, however, you can configure it to change the cursor shape in different modes, and this is a pretty effective cue. (It's also the default behavior in gvim.)

Re:Editors (Vim) by Cyph0n on Saturday June 06, 2020 @01:52AM (#23437136)
What does flying a plane have to do with editing and navigating code?
Re:Editors (Vim) by szemet on Saturday June 06, 2020 @08:08AM (#23438584)
It happens me every day: I just start to type while still in command mode, and then have to press "u" a couple of times.

(But ok, thats maybe just me - thought this is a common experience, and I just wouldn't like to sit behind a pilot doing the same...)

Re:Editors (Vim) by chongli on Saturday June 06, 2020 @02:51PM (#23441438)
This problem can be mitigated to an extent with a vim setting to change the cursor from a block to a vertical line when you enter insert mode. After using it for a bit your brain will learn to look for the vertical line before typing.
Re:Editors (Vim) by pvg on Saturday June 06, 2020 @11:44AM (#23439938)
This sort of thing has been a factor in airplane accidents - pilots becoming confused about stuff like the automation regime they're in.