News for hackers. Stuff that matters.
Re:Master Emacs in one year by parfe on Thursday July 24, 2014 @01:36PM (#8080992)
I hope you will be teaching Intro to Emacs. Why else would you impose a text editor on students?
Re:Master Emacs in one year by joeclark77 on Thursday July 24, 2014 @02:10PM (#8081214)
I don't know who Marc is teaching, but you would be astonished by how many undergrads in a computer information systems course do not know what a text file is. They'll take a programming course with C# in Visual Studio, and come away thinking that you can only program in Visual Studio with Visual Studio files. Then you get them in a database course the next semester and assign them some SQL, and they'll try to write their scripts in Word.

Can't blame them for not learning what the previous teachers didn't teach, but I'd sure blame myself if they got to day 2 in my class and I didn't correct it. Now I tend to start my classes by haranguing them to install Notepad++ or whatever alternative exists for Mac users.

I'm getting a little sick of Notepad++ and this thread has me thinking I should give emacs a try. (Probably not for my students though!)

Re:Master Emacs in one year by klibertp on Thursday July 24, 2014 @02:22PM (#8081277)
Intro to programming with any kind of Lisp as a language could be a good reason to do this. Unless the Lisp in question is Racket - DrRacket is quite nice Lisp IDE if you remember to enable a few options (like auto-pairing of parens, which I have no idea why would be disabled in any Lisp environment by default...).
Re:Master Emacs in one year by MarcScott on Thursday July 24, 2014 @06:09PM (#8082604)
I'm confused as to why I wouldn't teach students how to use a text editor. What else would you suggest they write their code using?
Re:Master Emacs in one year by parfe on Thursday July 24, 2014 @10:55PM (#8083573)
You aren't teaching them to use a text editor. You are teaching them to use emacs. A choice based on your personal preference that wastes lots of their time learning what is a very complicated environment. You need to write lisp just to make emacs auto indent on return.

Nano or gedit in comparison would be sensible choices if you were interested in teaching students about the language rather than indoctrination in the editor wars.

Unless of course it's a lisp class in which case Emacs is a sensible choice, but i think you would have mentioned that if it were the case.

Re:Master Emacs in one year by klibertp on Friday July 25, 2014 @05:11AM (#8084324)
> You need to write lisp just to make emacs auto indent on return.

I wanted to say that it's not true, but fortunately I went and checked and found this (in my programming-mode hook):

    (local-set-key (kbd "<return>") 'newline-and-indent)
in my Emacs config. I thought that it's configurable via `customize-*` interface, which is as nice as any other editor "settings" dialog, but apparently it's not...

OTOH I'd rather write Lisp than JSON or Python for editor configuration, but you're right in that it's personal preference.

Anyway, I wouldn't recommend making Emacs the required editor for any programming course (if not using Lisp). Just disallow using IDEs and let the students choose their editors. Make a list of mandatory features, like syntax highlighting, and let them use whatever they feel comfortable with. That way you can focus on teaching programming instead of teaching how to use an editor.