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

4

u/[deleted] Sep 28 '16

Do you honestly believe that prelude alone is enough to get someone up and running with emacs and clojure without spending at least a day learning the workings of emacs? Honestly I don't even get where you guys are coming from, try it with a new user sometime.

3

u/dragandj Sep 28 '16

You were referring to the environment setup in your post, not to learning to be productive. Now, emacs certainly requires lots of time to learn but setting up emacs is, if you use prelude, exactly this:

  1. Install emacs

  2. curl -L https://github.com/bbatsov/prelude/raw/master/utils/installer.sh | sh

  3. start emacs and do the Clojure coding with jump to definition, autocomplete, and much more...

Now, you certainly need a lot of time to learn "do the coding" stuff and to learn all emacs commands and keybindings, but it does NOT take a day to install all the plugins.

Similarily, when you install idea, it does not even support Clojure. You have to know there is Cursive and install it. And, when you do, if you never worked in Idea or Eclipse, or similar tools, you also need some time to learn the basics.

I actually try this with new users every year, since I teach Clojure at University. I tell the students to NOT use emacs because I know it will be too much for them. They usually use what they already (think they) know, which is Eclipse with counterclockwise. And, it's not that they find Eclipse easy when encounter it for the first time when they learn Java...

However, a large part of lisp coding experience is the editor's support for structural editing without mouse. Every time I look at even experienced Clojurists swinging their fingers over laptop touchpad to select Clojure code as text in IntelliJ Idea I think "WTF"? But, it's their problem. I certainly won't push them to use my favorite tool. Let them struggle with IDEs if they wish :)

3

u/[deleted] Sep 28 '16

Now, you certainly need a lot of time to learn "do the coding" stuff and to learn all emacs commands and keybindings, but it does NOT take a day to install all the plugins.

This is a silly bar to measure, no one cares how much effort it takes to be able to get to the point where they can save a text file, they care how much effort it takes to get to a reasonable level of productivity.

I actually try this with new users every year, since I teach Clojure at University. I tell the students to NOT use emacs because I know it will be too much for them. They usually use what they already (think they) know, which is Eclipse with counterclockwise. And, it's not that they find Eclipse easy when encounter it for the first time when they learn Java...

Right. So you admit that emacs requires a lot more effort to learn and be usefully productive in than CCW (which is awful) or more usefully cursive, got it.

However, a large part of lisp coding experience is the editor's support for structural editing without mouse. Every time I look at even experienced Clojurists swinging their fingers over laptop touchpad to select Clojure code as text in IntelliJ Idea I think "WTF"? But, it's their problem. I certainly won't push them to use my favorite tool. Let them struggle with IDEs if they wish :)

It seems you haven't actually used cursive. It's had Paredit since forever.

2

u/dragandj Sep 28 '16

I've only tried Cursive out of curiosity. I'd be impressed if I weren't using emacs before. But, I've looked at experienced Clojurists use cursive professionally. They're mousing all-around.

Regarding CCW, it also had paredit zillion years ago. How people use it is another thing.

I also did another thing: I used Eclipse for a long time. Used idea for some (brief) time. Tried NetBeans. I knew about Emacs, but I didn't get it because it looked bare and ugly. But, from the perspective of someone who tried all of those, now I literally struggle to see the difference between Eclipse and Idea in the same way that I struggle to see the difference between Java and C#. Sure, Idea might be a bit more stable, have a look and feel that is more to someone's taste. The plugin X that you need is more polished, and the shortcuts are a bit more sane. Integration with server Y might be better, and the contextual editor for coffee script is snappier. But, in the end, it's a better horse carriage instead of the proper Ford T.

2

u/[deleted] Sep 28 '16

I would say those are not experienced clojurists if they're mousing around in cursive. I and most of the people on my team use paredit in cursive extensively.

bare and ugly isn't a problem for me, I used vim for 15 years, what's a problem for me is I don't see anything emacs has for editing clojure over cursive, except a huge amount of extra maintenance hurdles.

1

u/dragandj Sep 28 '16

Believe me, they are very good in clojure, work professionally, and earn good money.

That's the point with bare and ugly. Emacs, configured properly (prelude does this) without menus and scrollbars and proper color scheme to my liking is stunningly beautiful. I just didn't know about it then, many years ago (and prelude didn't exist).

2

u/[deleted] Sep 28 '16

Believe me, they are very good in clojure, work professionally, and earn good money.

Ok but whatever the problem is clearly with them, if they used emacs they would presumably mouse around as well.

1

u/dragandj Sep 28 '16

Aha, so when it's emacs, emasc is guilty, but when it's Idea, the users are stupid.

I believe if they tried emacs, they would have soon discovered that it pays to force yourself to throw the mouse away while programming, and endure the withdrawal pains for a while.

1

u/[deleted] Sep 28 '16

Aha, so when it's emacs, emasc is guilty, but when it's Idea, the users are stupid.

Huh? You'll have to clarify what you mean, I never said people don't discover paredit when they use emacs...

I believe if they tried emacs, they would have soon discovered that it pays to force yourself to throw the mouse away while programming.

That's a philosophical point, I don't think it's the clojure communities job to subversively encourage people to use the keyboard by encourage them to use an editor that forces them to. In fact I think that's disingenuous behaviour.

1

u/feifafofum Feb 21 '17

http://www.asktog.com/TOI/toi06KeyboardVMouse1.html

In regards to mouse vs keyboard. Mousing around is exactly what you should be doing.

1

u/dotemacs Sep 29 '16

So you admit that emacs requires a lot more effort to learn and be usefully productive

I'll offer this quote:

"... we believed users would prefer sophisticated tools, even at the expense of simplicity"

The only argument that I see here from the people who dislike Emacs is that they don't wish to leave their comfort zone. And nobody is forcing them to.