Exactly this. Typing is never the bottleneck, thinking is. I probably spend 5-10x the time thinking about how to write a function than typing it out. And that is why an IDE is much more useful - it helps much more with the visualization of code than any editor.
IDEs help with dynamic languages too. I use Python in Visual Studio, and I get autocomplete, debugging and REPL all inside VS. See Python Tools for Visual Studio. If you use Linux, you can try PyCharm from JetBrains, it is supposed to have similar features, though I have not used it personally.
It is not about being a bottleneck. It is about maintaining the flow of your thought. When you are sufficiently proficient in VIM, you can do things involuntarily, and edit text without breaking the flow of your thought. For example, when you are driving you can zone out and think about other things, because our brain has developed sufficient autonomy for doing that task. In a similar way, the user interface provided by vim is something that is amiable to that kind of autonomous handling by the brain. Using a pointing device like mouse will never be like that.
This is only anecdote; but what he described is exactly my situation.
I used Visual Studio, some Eclipse and JetBrains for many years before trying out vim. Vim is cool and all but it's not really more efficient. What really cool though is the ability to edit without moving the hands.
It's hard to describe, but the experience is comparable to the step you make when you type with hunt-and-peek vs touch-typing. You no longer need to look down for any single thing you do; and that is incredibly liberating.
If IDE works for you, great. IDE works for me too. I just wish that we can somehow make an IDE that you can edit w/o hunt-and-peek.
You'd be impressed if using a mouse doesn't break my train of thought?
Account managers and project coordinators walk up to my desk all day to ask questions and check-in on how an implementation or change request are going. As soon as they leave I'm back to what I was doing.
If using a mouse distracted me I wouldn't be able to do my job.
A lot of editors have keyboard shortcuts. In PHPStorm I don't have to use my mouse, but I'm a web developer so I still have to consistently alt tab into a web browser.
"...With a mouse that's just not possible. You have to take your eyes away from whatever they were looking at, find the mouse pointer on the screen, move it to wherever you need to go..."
Have you ever used a mouse? I don't take my eyes off what I'm looking at to go 'find' the cursor, then follow it back to what I want to click, I look at what I want to click, then move the mouse there. It's called eye-hand coordination, and is the ability to make complex and small movements with your hands (fine-motor control) without having to stare at what you are doing. Similar to typing without looking at a keyboard, or playing a console game without looking at the controller. I honestly don't know anybody (though I'm sure there are some) that has to go through this convoluted process to click on something.
It's one thing to enjoy a product/tool and want to evangelize it because you find value in it. It's a whole other thing to just be disingenuous.
I never got this "flow of thought" thing. Whenever I'm programming, typing doesn't break my flow of thought. By the time I start typing, I'm mostly done with thinking. I already know what I'm going to do in my head.
In a similar way, the user interface provided by vim is something that is amiable to that kind of autonomous handling by the brain. Using a pointing device like mouse will never be like that.
Actually, there is evidence to the contrary: Keyboard vs Mouse. Quotes:
We’ve done a cool $50 million of R & D on the Apple Human Interface. We discovered, among other things, two pertinent facts:
Test subjects consistently report that keyboarding is faster than mousing.
The stopwatch consistently proves mousing is faster than keyboarding.
[..]
It takes two seconds to decide upon which special-function key to press. Deciding among abstract symbols is a high-level cognitive function. Not only is this decision not boring, the user actually experiences amnesia! Real amnesia! The time-slice spent making the decision simply ceases to exist.
Originally published in the AppleDirect, August, 1989
they were trying really hard to sell the Mac over DOS, right?
mouse is only useful when editing images. For text, there's nothing like having editors aware of more useful chunks of text than mere line or character, such as sentences, paragraphs and code blocks... You want to remove last 3 paragraphs? Try the vi way or the mouse way...
and BTW, I hate all IDEs bloat. Helps nothing all those package lists and warning messages and code itself is reduced to a tiny window. These people are insane, but then, they're coding in java...
"Only useful" is too strong. For example, I love the CLI but exploring a new file system with cd and ls is awful. It's way less efficient than just clicking on a folder name and seeing an expanding tree.
134
u/whichton Sep 25 '15
Exactly this. Typing is never the bottleneck, thinking is. I probably spend 5-10x the time thinking about how to write a function than typing it out. And that is why an IDE is much more useful - it helps much more with the visualization of code than any editor.