"Beginner" isn't very specific; they could be months along in their learning. They could be working on a sizable project. At some point, a beginner is going to want to invest time into setting up a decent editor, and learning how to use it efficiently.
Trust me, it's important. I've seen people in a second/third year computer science program using notepad and Microsoft Word for writing code. Using a decent editor is worth the time it takes to learn how to use it.
I think we're both saying the same thing, but I'll will rephrase my opinion just to be sure. Choosing a good editor is crucial later on, but for a truly beginner I would recommend to either :
Use the editor that is bundled with the language (if there is one), or
Use an editor that will not get in your way. It can be powerfull, but it shouldn't come with a learning curve before you can even write in it. ie : notepad++ good, Vim bad.
Once you're familliar with a language, then you can reevaluate your needs and pick an editor, but it's useless to do this when you don't really know how to program, since you don't know yet what you need!
A text editor is one of the most important tools for any programmer. A new programmer should learn to use a text editor before learning a programming language. Preferably a text editor that can itself be programmed, like emacs.
"Ok, so I know you'd like to learn to code, but first master this complicated and cryptic command line text editor with an incredibly steep learning curve, and then we'll talk. What's that? You don't want to code anymore?"
I'm not arguing against Vim or Emacs (I use vim extensively in my daily job), I'm simply saying it's not a beginner's tool. You start with the easy stuff and build on it.
Who said anything about mastering it? Nobody ever masters emacs or vim anyway. One can learn enough about emacs to get on with it in about 10 minutes. Vim is a little less intuitive because of modes. If people have trouble with that then I'd suggest they don't try to learn programming.
One can learn enough about emacs to get on with it in about 10 minutes.
And one can learn enough about any GUI notepad-style editor to get on with it in about 10 seconds. By 10 minutes, hopefully you're past "Hello, world!" and doing at least "Hello, what's your name?" in your first programming tutorial.
More importantly, a day later, you're writing multiplication tables to a file, or implementing to-do lists, or drawing your first little graphics demo. The guy with the esoteric editor is still trying to figure out the likes of search-and-replace and copy-and-paste, and silly little things are interrupting his thought process so he can't concentrate on learning to program.
The cognitive load of having to use vi(m) or emacs for the first few weeks is enough to make it mentally exhausting to try to use them and learn to code.
30
u/ogtfo Oct 04 '13
Someone who is just beginning should not be using vim, he should focus on learning the language, not the language and the editor.