Live data from Hacker News

Why I Still Use Vim

medium.com

191–200 of 209 posts

Re: Why I Still Use Vim

#191
post #107

Earlier quoted context omitted.

Just use nano if you don't want its shortcuts or even emacs. You don't have to use any predefined shortcuts in emacs. Everything is reconfigurable. The main selling point of vim is its shortcuts and modal editing. If it is not for you there dozens of great text editors that do a good job of just editing text compared to Atom.

How do I get autocompletion, linting, gitgutter, and so on in Nano? Emacs is another great editor for sure, but slightly heavier weight than Vim, so I've just invested in that. There is no other editor that even comes close to being as lightweight and extensible as Vim (or Emacs). Whatsmore I absolutely love my editor being in a tmux pane. This is an unprecedented paradigm, that people should't have to miss out on ju…

> There is no other editor that even comes close to being as lightweight and extensible as Vim (or Emacs).

Sure there is, just not the free type so many people rather have.

Here is one example, almost as old as Windows (since 3.x days), https://www.slickedit.com

Re: Why I Still Use Vim

#192

Most people in CA prefer to drive a car rather than ride a bike. Bikes use far fewer resources to accomplish the same thing as a car (go from point A to B), but most people like to have the option of turning on the AC, playing music, and all the other add-ons that a car can bring to the experience. I personally choose to bike, but if I started making charts about the relative energy consumption of the two, I'd reach…

This is an interesting analogy. > Bikes use far fewer resources to accomplish the same thing Bikes use a lot more time, which is a pretty important resource to most people. When I drive, that's usually why. So, are the additional features that Atom provides "driving saves significant time" variety or only "driving allows you to listen to the radio" variety? If the former, it might be worth the occasional freeze or sl…

This is an interesting response!

For the first point, I'd say it's less about time as it is about ease-of-use. I still use Vim when I'm SSH'd somewhere or the common occasions where I just need to change one line of a file. The process of "vi", entering the editor, using the shortcuts to find, edit, replace, save the file is done before an editor even loads. Time is valuable and not using Vim in some situations is like choosing a hand saw over a power tool (my analogy game is on point today).

On the last one about encouraging less resource-intensive software, I completely agree with you, and think software has grown increasingly careless toward memory usage. Unfortunately I'd estimate that less than 10% of computer users have ever opened the Activity Monitor on their mac or know which particular app is slowing it down. For developers I'm sure that's closer to 100%, so tools like Xcode/Atom/Eclipse will have their usage scrutinized more, but I certainly haven't seen anything close to mass rejection over it - we accept the free benefits and pay for it with better hardware. I also think the benefits of the underlying Electron library being seamless across platforms, plus the added benefit of extensions being as easy to write as a webpage, makes it a good trade-off for memory.

I really don't mean to minimize or refute any point you just made, what you wrote makes a lot of sense and really got me thinking. Maybe car vs bike should be the analogy for a more convincing blog post ;)

Re: Why I Still Use Vim

#194
These types of articles are little, if anything, more than pure fanboy-ism that is littered with hyperbolic claims.

I'm running a 2013 Macbook pro w/ 8 GB of RAM, the Intel Iris graphic card, sttached to two external, stacked Ultra wide HD monitors(sometimes a 3rd 1080p in portrait). The only "upgrade" it has received is an extra SSD installed after I removed the optical drive. You would be insulted if, as a dev, a company gave you this as a workstation in 2017.

Currently, I am running 8 electron apps(Slack, Discord, Headset, kiwi for Gmail, Insomnia as a GraphQL client, Visual Studio Code, Hyper as my terminal emulator, Spotify. When I feel like being unproductive, I open Pocket and push the total to 9) Bartender manages another dozen+ apps.

Oh, and I also have open Chrome, Chrome Canary, Firefox Nightly, and Opera Neon. Chrome is running with 60 or so enabled extensions, Firefox has another 15 active add ons. And between all the browsers, I usually have around 75 open tabs, 18 or so sre running video or some other resource intrnsive media.As well as the occasional Linux VM. Iused to run the McAfee Global Threat map animation as a live background, but that was a little too much. Depending on what Im working on, Im usually running at least 4 or 5 servers. none that have to deal with huge amoubts of data, as id usually just provision cloud resources for that.

Did I mention my 2013 8 GB MacBook handles this with ease? If I had a more powerful workstation, it would nit make me any more productive. I type at around 100-110 wpm and a more powerful machine wouldnt allow me to interface faster.

So, when ornery devs violate the DRY principle on every single HN thread that is tangentially related to electron and trash it with an exuberance that would make McCarthy proud, I wonder, why?

I imagine most have more powerful workstations than my own. I understand it from the perspective of those who have hundreds or thousands of tabs open (Around 30 or do open tabs causes cognitive overload for me and refuces productivity the more i have open.) I did have issues when running Atom and trying to open 30MB log and JSON files, but I wiuld also usually have 4 or more open projects. Ive since moved to VSCode after a year of apprehension due to having to give up ny many atom extensions, without looking back

It doesnt sound like the author is doing anything that complex. There is no way that it takes minutes to open a 6MB log file, especially if using the newer version of atom.

The idea that electron brings yoyr system to a crawl is simply not true, especially one app(unless its Atom).

Electron apps work. The performance benefits of native apps are negligible on my productivity . And, usually, their aesthetics are a hindrance as I like ny apps to be visually appealing. All the other cross-platform solutions almost always look like crap. But this is only important if one values those particular aesthetics of which i speak.

So, the attacks remind me of the discussion of artificial benchmarks comparing gpus or game consoles... immaterial and irrelevant to actual usage. Its an argument of pitentials and thereoticals never achieved. Especially for a freaking web developer.

Even if you disagree with me, these threads are trash because nothing new or original is said. Just the complaints about the "kids these days" from a small, but extremely vocal minority whose comments are in stark contrast to the threads overall karma.

Oh, and if If you're working out of emacs, electron apps are not for you.

Re: Why I Still Use Vim

#195
post #6

These kinds of comparisons always seemed a bit silly to me. It's like complaining that opening a 6MB file in windows took over 3GB on my system! (ignoring that most of that is the OS getting ready to do other things, and enabling the OS to do things other than opening and reading a 6MB file). Yes, Atom isn't the most resource friendly editor out there, and nobody is claiming it is. But it is one of the more capable e…

Programmers for long have cared very deeply about performance(times, space, memory etc).

It sort of comes with the territory. And some times you have to go meta and look at the tools we use everyday.

Re: Why I Still Use Vim

#196
post #191
post #107

Earlier quoted context omitted.

How do I get autocompletion, linting, gitgutter, and so on in Nano? Emacs is another great editor for sure, but slightly heavier weight than Vim, so I've just invested in that. There is no other editor that even comes close to being as lightweight and extensible as Vim (or Emacs). Whatsmore I absolutely love my editor being in a tmux pane. This is an unprecedented paradigm, that people should't have to miss out on ju…

> There is no other editor that even comes close to being as lightweight and extensible as Vim (or Emacs). Sure there is, just not the free type so many people rather have. Here is one example, almost as old as Windows (since 3.x days), https://www.slickedit.com

You would have to extend it yourself which others do for me with plugins in vim or emacs.

Re: Why I Still Use Vim

#197
post #191

Earlier quoted context omitted.

> There is no other editor that even comes close to being as lightweight and extensible as Vim (or Emacs). Sure there is, just not the free type so many people rather have. Here is one example, almost as old as Windows (since 3.x days), https://www.slickedit.com

You would have to extend it yourself which others do for me with plugins in vim or emacs.

There are also people doing plugins for it.

Re: Why I Still Use Vim

#198

Earlier quoted context omitted.

It depends on what you consider "performance". An F1 car is going to be the worst tow truck in existence. It's "towing performance" is basically a 0/100. Atom's "extreme performance" for me is in my productivity. the 2GB of ram that my atom windows are currently using is a very very small price to pay for better productivity. Even if Atom were so resource hungry that I needed to buy a new laptop every other year for…

I think any discussion with you is pointless. You just love this editor, and whatever things you need to sacrifice to use it are file. This includes buying a new laptop each year, using only small files, buying more ram etc. I'm just too old for flame wars with their-own-church believers. I just need to write code, so I switch tools to appropriate ones. It's just a tool. I'm sure that some hammer-loving guys do all t…

This is unduly personal. That breaks the site guidelines. Please post civilly and substantively or not at all.

https://news.ycombinator.com/newsguidelines.html

Re: Why I Still Use Vim

#199
post #165

Earlier quoted context omitted.

Has anyone published a memory-map - a breakdown of what exactly is in the process' memory space - of these cases where Electron-based applications use orders-of-magnitude more memory than the native programs we used before? Previously I've remarked that high memory usage in web-browsers in itself is not a cause for alarm, and is mostly a good thing because it means the browser is aggressively caching assets so future…

There's a new native desktop app for Slack, Skype, WhatsApp, etc: https://eul.im/slack It's only 4 MB and can handle tens of thousands of messages in one chat without lag.

I would use it but I am afraid that it might steal my accounts. I would feel safer paying for it and I would gladly do that.

Now, it just feels like the creator can simply steal my accounts without my knowledge. Windows 10 warns me about the app as well, perhaps because it is not from the Store?

I don't really care about size of the application, I just want it to not consume a crazy amount of memory.

Re: Why I Still Use Vim

#200

Earlier quoted context omitted.

Wow, it’s time to reread this: https://blog.codinghorror.com/hardware-is-cheap-programmers-...

The whole point is that many programmers, even in Western Europe, are not that expensive. When one makes less than $20k/year, those "mere" $4k suddenly pay for a full trimester of work, rather than less than a month.

Just to add there are students too. I was an international student until last year and made less than $20k in Boston. I had 8 GB of RAM, it wasn't plenty, but it was just enough. I definitely would not have preferred to use Atom then, as the benefits over Emacs weren't worth the trouble I would have had otherwise.
Post reply on HN