Live data from Hacker News

Clojure for the Brave and True (2015)

braveclojure.com

101–106 of 106 posts

Re: Clojure for the Brave and True (2015)

#101

It's funny how most programming languages have die hard fans that truly believe (and will tell any stranger they meet in the street) that language X is "the best". There is no such thing as "the best" programming language for any given task. I like Clojure and Haskell and Javascript and Erlang and C++ for different reasons. They all have strengths and weaknesses, depending on the context and task at hand. And given t…

> There is no such thing as "the best" programming language for any given task.

I think there is definitely a language that is the best "general" language, however general differs for everyone.

I'm not sure it's possible to get an average of everyone's definition of general and make a test to measure languages with though.

For me though, Haskell has been the best "general use" language.

Re: Clojure for the Brave and True (2015)

#102

Try spacemacs everyone, it's incredible, and the cider repl for clojure is the real deal. I was a long time vim user who tried to switch to emacs for a month but abandoned it for intelli j, and then atom for while. The spacebar mechanism to trigger the top level navigation that you drill into is an amazing mechanism for memorizing key short cuts (or not remembering and being able to use the menu to get what you need)…

I use Spacemacs for Clojure at the moment and I quite enjoy it. My only problem is there doesn't seem to be a way to insert a newline in the repl without submitting the line for evaluation (I want to be able to structure a function definition for readability, for example, rather than having to have a single huge line). I did also have to stop smart-parens from auto-closing backticks, but that was a simple fix.

Use C-j to insert a newline in the repl.

Re: Clojure for the Brave and True (2015)

#103
post #94

Earlier quoted context omitted.

Just adding my 2 cents. I've found the writing of Clojure Programming to be very dull, to be honest. Sure, it is clear and detailed, but it gets boring after a while. I think the Joy of Clojure is a better read (at least for me). The upside about Clojure Programming is that it covers the language's syntax right upfront, which (IIRC) Joy of Clojure does not.

you should try Programming Clojure then ;)

That's on my to-read list hahaha.

Though, for some reason, I've never seen many people recommending it.

Would you care to share your thoughts on that book? I'd really appreciate it!

Re: Clojure for the Brave and True (2015)

#104
post #102

Earlier quoted context omitted.

I use Spacemacs for Clojure at the moment and I quite enjoy it. My only problem is there doesn't seem to be a way to insert a newline in the repl without submitting the line for evaluation (I want to be able to structure a function definition for readability, for example, rather than having to have a single huge line). I did also have to stop smart-parens from auto-closing backticks, but that was a simple fix.

Use C-j to insert a newline in the repl.

Thanks!

Re: Clojure for the Brave and True (2015)

#105

Earlier quoted context omitted.

Mind if I ask what isn't clicking? I've had the exact opposite experience, and have found it very easy to incorporate different libraries. Do you have experience with other lisps? There's certainly a learning curve with clojure and its frameworks.

I think there is too much cognitive load in the first stages of learning Clojure for people who haven't had experience with functional programming, Lisps, Java, and Emacs on top of that if you are following Clojure for the Brave and True. So to barely get started you are tackling a new programming paradigm (functional), a new syntax (Lisp), getting error messages in Java, using tools that are complicated to setup and…

Ah, now it makes sense. I came to Clojure having experience with Java and Emacs. I can see that learning the ecosystem surrounding these things can't be an easy task if you're doing it all at once.

As others have pointed out, there are more 'beginner friendly' options it seems. But, these seem overlooked, and I can see beginners not even being aware they exist.

If Clojure wants to see more mainstream success, the community is going to have to provide people with the things they want. Emacs is fantastic (I use it everyday) and I believe it is the best way to write Clojure, but the learning curve of Emacs + Clojure + Java is too great. Cleaning up the Java Stack Traces (I believe there are several projects that try to do this) in Clojure Core would also help with this.

Re: Clojure for the Brave and True (2015)

#106

Earlier quoted context omitted.

That's like 2 years ago. Source maps work fairly well today.

come on, dont just wave your hands in the air and say its all good. how do you do it then?

What do you mean how? Clojurescript compiler today has four different, well documented options related to source maps: https://github.com/clojure/clojurescript/wiki/Compiler-Optio... Just yesterday I placed `(js* "debugger;")` in my .cljs code and it stopped exactly where I wanted it. And showed exact piece of Clojurescript (not compiled JS)
Post reply on HN