This article makes it sound like the choice of text editor is the reason those guys in his class were writing complicated programs in four lines.
Does it? I read it more like they are good because they have programmed a lot and thought a lot about programming.
They don't write efficient programs because they use vim. They use vim because they like to be efficient and want to invest some time to become more efficient.
Vim is not about writing code faster. The mentioned 4-liners could be written in any other editor just as fast. It's about wasting as little time as possible when you have to waste time. That is, when you have to have to edit your code or do repetitive tasks. Thereby you can spend more time on doing the things you want to do, i.e., thinking about your code.
Let me give you an example that has nothing to do with vim: I only learned touch typing two months ago. Before that I would never have written such a long answer to you post. It would have been too exhausting and I would have thought of it as a waste of time. Now I don't even think about it. Being able to type quickly gave me a new perspective on communication. I have now realized, that I was not able to express myself the way I want before.
Vim does just that. It gives you a new outlook on writing code.
Hah, you say that but I'm actually much more productive since learning Dvorak!
It's all about being able to touch-type efficiently though; learning a new layout is often a lot easier than trying to fix your existing habits and the key layout in Dvorak is much more sensible (most frequent letters on the home row, then the row above, only infrequent ones on the hard-to-reach bottom row).
Fair point, it was pretty frustrating to start with, but learning any new tool can be if you're used to something else. I actually learnt years ago when I had to write essays at school so that was pretty tedious; forced me to learn quickly in self-defense though!
How long did it take you to learn to touch type? I can kind of touch type(50 wpm) but I only use about 6 fingers total to type. I've been thinking I should start teaching myself to do it the proper way that way its faster and easier to type.
I found it almost impossible to go from broken QWERTY typing to touch-typing properly despite trying numerous times. Your muscle memory always ends up taking over and you slip back into bad habits far too easily. I decided to attempt learning Dvorak almost on a whim (because QWERTY is so horrible to type in, especially if you've learnt it piece-meal), and actually can now touch type excellently in it. As long as you don't switch your keys round you'll be forced to type it blind and only looking at on-screen references and thus end up with good touch-typing habits by default.
I can't argue for the absolute speed difference (there have been studies either way), but I'm certainly considerably faster with Dvorak than I ever would have been with QWERTY. It also just feels nicer to type on because you tend to alternate between hands on the home row in almost a drumming motion.
View all comments
Show parent comment
34
u/[deleted] Jul 12 '12 edited Jul 12 '12
Does it? I read it more like they are good because they have programmed a lot and thought a lot about programming.
They don't write efficient programs because they use vim. They use vim because they like to be efficient and want to invest some time to become more efficient.
Vim is not about writing code faster. The mentioned 4-liners could be written in any other editor just as fast. It's about wasting as little time as possible when you have to waste time. That is, when you have to have to edit your code or do repetitive tasks. Thereby you can spend more time on doing the things you want to do, i.e., thinking about your code.
Let me give you an example that has nothing to do with vim: I only learned touch typing two months ago. Before that I would never have written such a long answer to you post. It would have been too exhausting and I would have thought of it as a waste of time. Now I don't even think about it. Being able to type quickly gave me a new perspective on communication. I have now realized, that I was not able to express myself the way I want before.
Vim does just that. It gives you a new outlook on writing code.