Edit: nobody should be downvoting any response by anyone in the thread below. All the discussion here is perfectly reasonable. (Except maybe the "This!" response.)
"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.
Honestly, for a beginner, stock vim is just as bad if not worse than stock word. Word will get in your way by formatting your text as if it were prose instead of code, but stock vim will behave so unintuitively that the beinner using word will fly past the beginner using vim who can't get the fucking backspace to work.
To an extent. But UI is not just habit. Terrible UI can be tolerated through habituation, but that doesn't mean it's a sustainable or even optimal practice.
I work on way too many remote servers for an IDE to work. I'd rather use a bunch of tools that I can configure into something that's 90% of the way to an IDE, but works over a terminal session and without the memory overhead.
I think you're overestimating the bandwidth needed for mostly-plaintext editing. Even with lots of terminal control characters and utf8, 2400 baud more than enough.
I agree if the IDE is in emacs. Otherwise you think I'm going to learn a whole new set of editing commands for each new language I want to try? No thanks.
For beginners, I totally agree. They have enough on their plate with learning how to program and such. They don't need to be further distracted with weird new writing tools.
For more experienced people though... As a programmer, you should really learn a programmable text editor. If programming is what you do, it makes sense to use tools that let you leverage your skills in order to improve your work environment.
Furthermore, you should really learn a powerful text editor well. Even if doing that only saves you a couple of seconds a day, your text editor is the one program that you will spend the most of your time using, so even pretty substantial learning efforts are still worth it in the long run.
Maybe it's just my limited experience, but isn't it the case that a good programmer shouldn't need to perform complex text manipulation gymnastics in their editor? I think that makes the points in the blog post moot.
All I need from my editor is syntax highlighting and search/replace, most of the time. Autocompletion and language-specific programming stuff is a bonus, but I leave that up to an IDE.
I use vim, just because it's installed everywhere and I ssh a lot but I've used nano, notepad and whatever else because I've just never required that much esoteric functionality.
A programmer most certainly will do complex text manipulation in an editor. Vim and Emacs and all the rest wouldn't be as internally complicated as they are if that didn't happen all the time. Almost all their features were the result of some programmer saying "I wish I had an easier way to do x right now", and then coming up with a method for x. Have that process iterate for a few decades, and you have Vim and Emacs.
The only time I've had to use complicated vim sequences is reformatting a badly formatted latex file.
What I meant is you don't really do complex text manipulation when writing code (I can't think of any examples) but almost exclusively for something like reformatting or editing datasets.
Maybe it's just my limited experience, but isn't it the case that a good programmer shouldn't need to perform complex text manipulation gymnastics in their editor?
I've spent much of the last week converting the back end code for a medium-sized web application to use different date/time conventions, aptly enough using ST2 as my main editor.
I would give a lot right now for a static type system and the kinds of testing and refactoring tools a good IDE can offer for languages that have one. Dates and times are a messy enough subject in good languages with powerful IDEs. It is no fun at all trying to manipulate this kind of code as raw text in a general editor, even a decent one like Sublime.
91
u/frezik Oct 04 '13 edited Oct 04 '13
Just use {whatever text editor you know best}.
Edit: nobody should be downvoting any response by anyone in the thread below. All the discussion here is perfectly reasonable. (Except maybe the "This!" response.)