News for hackers. Stuff that matters.
Re:Let's stop telling programming newbies to learn Vim (or E... by shanelja on Tuesday October 16, 2012 @06:13PM (#4662168)
Really? You honestly believe that?

Will it make me type faster and think faster? I spent 6 months working in a doctors office were I had to type every word spoken for 7 hours a day, the block here is not my efficiency, it is in fact my intelligence.

Re:Let's stop telling programming newbies to learn Vim (or E... by johncoltrane on Wednesday October 17, 2012 @03:36AM (#4663490)
Well… The discussion is about programming, not dictation.

Vim is very well suited to programming because we spend a significantly longer time thinking about, navigating and modifying code than actually writing it.

That's how most people do programming and Vim is ace for all of that thanks to:

* text-objects and motions to fly through your code and edit with laser-like precision in as few keystrokes as possible

* counts to perform repetitive actions in a flash

* ranges for when you want to act on a specific part of the file

* incsearch

* :global

* macros

* :s/foo/bar

* etc.

When it comes to actually write new code, Vim doesn't help much. Well… if you don't consider:

* filename completion <C-x><C-f>

* keyword completion <C-n>

* line completion <C-x><C-l>

* <C-r>= to insert the result of an expression

* <C-y> to input the char above the cursor

* etc.

But then again, we are talking about programming, here, and nobody ever pretended that Vim was the answer to every problem. Or even your problem, for that matter.

In a situation like yours, I'd probably use something like Dragon or simply use stenography like my secretary mother did 30 years ago. I'm very much in love of Vim, actually, but I wouldn't recommend it to anybody that is not a somewhat experienced coder. And even then, there's an entire population of programmers who spend their days generating code, fighting against OOP hell and refactoring refactorings. Those people would probably not derive any benefit from using Vim. Just like you. And nobody is trying to sell them Vim. Just like you.

Use the right tool for the job.

Re:Let's stop telling programming newbies to learn Vim (or E... by gavinlynch on Tuesday October 16, 2012 @06:18PM (#4662193)
"Will it make me type faster and think faster?"

No, but syntax highlighting greatly enhances code readability and your brains ability to recognize what types of objects or properties or functions are being represented in code. Associating the color blue with a variable declaration, for example, is just there as a visual cue or shortcut for your brain.

I understand your point that it can be done perfectly fine with notepad, but let's not pretend that these visual cues don't give your brain a jump-start.

Re:Let's stop telling programming newbies to learn Vim (or E... by shanelja on Tuesday October 16, 2012 @06:20PM (#4662203)
Oh, I agree, the syntax highlighting does help when I'm reading back through it, but in the act of actually coding I find it a distraction, I prefer not to look while I code and the colours draw my eyes.
Re:Let's stop telling programming newbies to learn Vim (or E... by mquander on Tuesday October 16, 2012 @06:26PM (#4662236)
Typing and thinking faster is pretty much the rationale for every single feature in a text editor, so I'd say the burden is on you to explain why you don't believe it. For typing faster, you can get around the text quickly, do autocomplete, automate repetitive things, etc. For thinking faster, you can more quickly look around a project and get information, you can access documentation and metadata easier, and you can more easily create quick prototypes for testing ideas.
Re:Let's stop telling programming newbies to learn Vim (or E... by shanelja on Tuesday October 16, 2012 @06:29PM (#4662255)
I perfectly agree with you that using a quality IDE allows you to achieve all of those things and I don't argue that features such as autocomplete (and I believe you touched on macros) can be extremely useful.

But I still pose the question, why is it worth the time to learn what is considered a complicated IDE (if it needs to be taught)? Would the time not be spent better, say, being genuinely productive, rather than merely preparing for future productivity?

We live in the here and now, my boss wants to hear that my project will be done on time, not that it will be a week late because I need to learn the more fickle aspects of an IDE he didn't sanction before I can finish it.

Re:Let's stop telling programming newbies to learn Vim (or E... by de90 on Tuesday October 16, 2012 @06:35PM (#4662277)
I disagree that needing to learn something is counter productive. They are simply extra capabilities, and you don't need to use them if you don't want to. I've been using visual studio for a few years now an I still out of the blue find an extra capability that makes me have to hit less buttons, or not having to touch the mouse.

Little things like jumping to a function with pressing a button, or finding all things that are referencing a function\class\etc are extremely useful, but certainly not necessary. Then things like intellisense are a godsend.

That being said, a lot of my time is spent out of visual studio, but with Sublime Text which add's a lot of things that simply make me have to type less, and focus more on the actual task at hand.

Re:Let's stop telling programming newbies to learn Vim (or E... by shanelja on Tuesday October 16, 2012 @06:38PM (#4662287)
I don't honestly have a response to this, thus far my comments have been based upon opinion, do you have a link to Sublime Text? I feel the only way to truly decide will be for me to install it and try it myself for a week and then attempt to decide fairly which I prefer.
Re:Let's stop telling programming newbies to learn Vim (or E... by jodrellblank on Tuesday October 16, 2012 @10:42PM (#4662948)
What do/did you program?

why is it worth the time to learn what is considered a complicated IDE (if it needs to be taught)? Would the time not be spent better, say, being genuinely productive

Why delegate work when that takes time you could spend doing the work yourself? Because you can't do everything. At some point delegating starts to pay a return on the effort.

The goal is for You + Computer to create a system which is greater than the sum of its parts. For you to use the computer as an external brain.

If it's just you and notepad-as-typewriter, you're doing all the work.

Re:Let's stop telling programming newbies to learn Vim (or E... by mquander on Thursday October 18, 2012 @03:18AM (#4667776)
If you're going to be programming long enough, saving yourself a few minutes a day by mastering your tools is a real and genuine benefit. When you intend on continuing a career in programming, you're already committed to investing time into deeply learning novel things as you need them to keep up with work -- a new language, a new library, a new system, a new subfield of study -- so it's not as if your work is nothing but trying to complete your current project, as fast as possible.

You shouldn't spend a week learning about an IDE feature in the middle of your project, but you should eventually spend ten minutes to learn to write a macro instead of making the same change seventy times, and maybe you should spend an hour and a half wiring your editor up to your favorite static analyzers and compiler so that you can test and debug your code quickly over the next month.

Re:Let's stop telling programming newbies to learn Vim (or E... by grandpoobah on Tuesday October 16, 2012 @06:22PM (#4662217)
I feel the same way. Most of my time is spent thinking about how I'm going to do something or how I can make it better, I just can't imagine these tools significantly improving my productivity. I use Notepad++ for most things.
Re:Let's stop telling programming newbies to learn Vim (or E... by shanelja on Tuesday October 16, 2012 @06:24PM (#4662231)
It's nice to know I'm not alone here, I was beginning to feel like a duck out of water seeing the other (but also, equally valid) responses.
Re:Let's stop telling programming newbies to learn Vim (or E... by hollerith on Saturday October 27, 2012 @04:26PM (#4707138)
No, you're not alone.
Re:Let's stop telling programming newbies to learn Vim (or E... by killface on Tuesday October 16, 2012 @06:20PM (#4662200)
Transcribing audio is not programming. Programming has very exacting syntax. Anything that helps (color coding, syntax highlighting, etc) speeds things up. Have you ever tried to write Java without an ide? There's no possible world in which using Notepad is going to be superior to just about anything else.
Re:Let's stop telling programming newbies to learn Vim (or E... by shanelja on Tuesday October 16, 2012 @06:22PM (#4662216)
I have in fact tried and succeeded in writing Java without an IDE, but in all honesty, I believe your using it as an example says more about the overly verbose nature of the language than the tool of choice.