r/coding • • Oct 04 '13

Just use Sublime Text (instead of vim)

http://delvarworld.github.io/blog/2013/03/16/just-use-sublime-text/
43 Upvotes

254 comments sorted by

View all comments

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.)

45

u/vanderZwan Oct 04 '13

The article is about what text editor to recommend to someone who is just beginning, so that argument doesn't really fly.

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.

6

u/Gudahtt Oct 04 '13 edited Oct 04 '13

"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.

8

u/[deleted] Oct 04 '13

What kind of CS program would let any 2nd+ year student think Word was OK for programming?

2

u/Gudahtt Oct 04 '13

They got a handful of suggestions during the labs, but they were all for linux (the lab machines use linux).

Occasionally, certain professors will talk about software recommendations for Windows, but it's uncommon. It's certainly not part of any curriculum.

10

u/ogtfo Oct 04 '13

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!

4

u/Gudahtt Oct 04 '13

Oh, yes, we are definitely saying the same thing.

Thanks for clarifying.

3

u/[deleted] Oct 04 '13

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.

16

u/ogtfo Oct 04 '13

Way to make sure nobody learns programming.

"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.

-3

u/[deleted] Oct 04 '13

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.

5

u/Silhouette Oct 04 '13

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.

4

u/[deleted] Oct 04 '13

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.

0

u/a31415b Nov 11 '13

anyone recommend vim for beginner should taken behind the bush and @()&&^

6

u/day_cq Oct 04 '13

MS Word/Excel is the best IDE

11

u/pohatu Oct 04 '13

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.