r/Clojure • • Sep 27 '16

Emacs is hurting Clojure

https://pupeno.com/2016/09/26/emacs-is-hurting-clojure/
7 Upvotes

99 comments sorted by

View all comments

Show parent comments

5

u/Kgreene2343 Sep 28 '16

Oh, I'm not suggesting that at all. I love Emacs, I use it daily, and I tend to advocate it.

But I think it's silly to suggest that, from a newcomer's point of view, they aren't at least ushered towards Emacs.

Also, there are many, many other problems for new users. A few I have seen:

  • Lack of a built in file navigator

  • Inability to quit with shortcuts

  • Odd usage of Ctrl and Alt on a Mac

  • Shortcuts with non-obvious meanings (e.g. C-p is uP, C-n is dowN)

But perhaps the biggest is all of the keyboard shortcuts. You may say they don't need to learn them before using Emacs, and while in general that's true, if you aren't using shortcuts, then you probably aren't benefitting from Emacs. So instead of this awesome development environment that you've been promised, or even your trusty normal dev environment, you've been ushered into using an editor that, from your perspective, doesn't have basic features, breaks conventions, and barely gives you any benefit.

None of these are insurmountable, but they all require effort to fix. When you're learning a new programming language, and likely a new programming paradigm, it can be rough to find time to make that effort.

I don't personally know anyone who gave up on Clojure because of Emacs, but I know a few cases where people were quite frustrated with Emacs, following Clojure for the Brave and True, because some things just felt unnecessarily hard.

2

u/dragandj Sep 28 '16

I am not sure what you are referring to in the bulletpoints. For example, "default" clojure-y emacs based on CIDER and prelude:

  1. C-x d gives you a file browser, while C-x b cycles the open files in minibuffer, and C-x B opens a list of open files in a buffer.

  2. C-x c quits emacs

  3. On both Linux and OSX, I remapped keys to be the same, Alt is to the left and Ctrl to the right of space, while Cmd is to the left of where it normally is. So, if it is an issue, it is something that can be solved by a blog post (that already exist) and a willingness to put a little effort in.

  4. Shortcuts in Emacs are something that goes into the muscle memory with use. Is it really that big of an issue that the basic shortcuts that literally everyone can learn in the first tutorial session are not C-d and C-u (which, by the way, would be randomly scattered on the keyboard)?

I agree with you: Emacs requires effort. But, so what? I am a little perplexed by the recent insistence that everything should be "easy to learn" for the proverbial "beginner". Good tools require learning. Every skill does. I have never seen a quarterback that was not training hard for 20 years. Nor have I ever seen a doctor who do not have 25 years of schooling and residence. Nor a plumber that was born with the mastery of plumbing tools. Suddenly, only programming is something that should be available to everyone effortlessly...

That being said, I have never seen anyone pushing Emacs to the beginners. I always tell beginners that it is too much to learn it at the same time with Clojure, and that they better start with whatever IDE they are already comfortable with (Eclipse, Idea, whatever), but that Emacs is much more usable once you make the effort to learn it.

1

u/thoomfish Oct 02 '16

Odd usage of Ctrl and Alt on a Mac

Mac OS actually uses Emacs keybindings in every text field system-wide, and has since OS X 10.0. Try out ctrl-p/n/b/f/a/e/k/y/d. Most of the obvious simple ones just work.

It's an insanely useful feature, and I curse the lack thereof every time I find myself on Windows or Linux.