News for hackers. Stuff that matters.
Re:Advice to a Novice Programmer by sbrother on Wednesday October 25, 2023 @04:12PM (#38017700)
> vim over ssh is just awkward

What's wrong with vim over ssh/mosh? I was taught emacs by a grad student back in college and the ability to be fully productive on any server where I can install emacs has been a huge benefit to my career. I can't imagine vim is much different in that scenario.

Re:Advice to a Novice Programmer by nomel on Wednesday October 25, 2023 @05:32PM (#38018673)
Most people don't use vanilla vim, from what I've seen. It's not so great, out of the box. Definitely not comparable to any remote editor these days, that also supports vim navigation, like VSCode.
Re:Advice to a Novice Programmer by walleeee on Wednesday October 25, 2023 @08:34PM (#38020190)
What does vim lack that one might need to complete a basic programming assignment?
Re:Advice to a Novice Programmer by nomel on Wednesday October 25, 2023 @08:54PM (#38020369)
Integrated linters save a lot of time with their immediate feedback. Depending on the language you're working with, remote debugging can be an incredible time saver. Modern editors are aware of the structure of the code, so can do things that are impossible for default VIM to do, like find the usage of a variable, rather than text occurrences, automatically show documentation, etc. All time savings.
Re:Advice to a Novice Programmer by walleeee on Thursday October 26, 2023 @06:36AM (#38023846)
Agreed, good points. I guess I still wonder whether these are needed for an introductory assignment. A vim/ssh workflow seems more future-proof than any particular IDE. As an instructor maybe it would make sense to do the first assignment with low-level tools, then introduce VSCode/etc and briefly demo these things, to make the added convenience even more visceral to the novice.
Re:Advice to a Novice Programmer by nomel on Thursday October 26, 2023 @02:08PM (#38029471)
> would make sense to do the first assignment with low-level tool

Sure, but if the goal is to teach programming, I think vim massively confuses a beginner. vim is hard for beginners, famously so. Something like VSCode, used as a remote text editor, is trivial and familiar to anyone who has used at MS Word. I agree it should be introduced, but there's definitely some cargo cult around vim and "the old ways".

Re:Advice to a Novice Programmer by walleeee on Thursday October 26, 2023 @04:28PM (#38031307)
Idk, if we're working on a remote machine already, it's not the student's first day. The bar to basic editing with vim is pretty low. Mode switch with i and esc, :x to save/exit, navigate where your fingers already are, slash to find. That all fits on a sticky note if it isn't already memorized in the first 30 seconds. They've likely played video games their whole lives, I struggle to see how mapping buttons to behaviors is a foreign or difficult concept.

As you say we're teaching programming. The ability to pick up an unfamiliar tool and get to know it on the fly is critical and the only way to develop it is practice.

Re:Advice to a Novice Programmer by slyall on Wednesday October 25, 2023 @08:35PM (#38020199)
These days you don't edit things on servers. The most you might do is edit a file and change a single option. You can do that in vi, vim or nano. Certainly you don't get to install you favorite editor (and version) and the .config folder an every server.

Most of the time you'll be editing config locally on your laptop and it'll get pushed to the servers via config management or whatever.

Your laptop is the place for your tricked-out IDE with 27 plugins