Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

The Clojure Way

 
Dan King
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've been learning/using Clojure for a few months now. While I'm comfortable with it, I still find myself trying to address problems as I would using Java, Ruby or Groovy only to later ask, what's the "Clojure way?" I'd appreciate suggestions on books and/or presentation that can help me with adjusting to the paradigm shift. Thanks.
 
Palak Mathur
Ranch Hand
Posts: 341
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dan King wrote:I've been learning/using Clojure for a few months now. While I'm comfortable with it, I still find myself trying to address problems as I would using Java, Ruby or Groovy only to later ask, what's the "Clojure way?" I'd appreciate suggestions on books and/or presentation that can help me with adjusting to the paradigm shift. Thanks.


Check the fourth post from the top (by Chas Emerick). He has tried to answer a similar question:-

http://www.coderanch.com/t/586539/clojure/Clojure-Programming-Questions
 
Chas Emerick
author
Greenhorn
Posts: 27
Clojure
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dan King wrote:I've been learning/using Clojure for a few months now. While I'm comfortable with it, I still find myself trying to address problems as I would using Java, Ruby or Groovy only to later ask, what's the "Clojure way?" I'd appreciate suggestions on books and/or presentation that can help me with adjusting to the paradigm shift. Thanks.


Well, we do what we can in the book, but I wouldn't be too concerned about your falling back to prior habits just a month or two into learning/using Clojure. These things take time; I'm guessing that it took many months for you to really understand the "Java way" or the "Ruby way". Just keep reading, programming, and looking at well-written Clojure projects for hints at good form.

A great resource for this is the community around 4clojure, which often shares solutions to the problems there. Just remember that shorter isn't necessarily better; sometimes, it's fun to golf your way to a shorter solution, but too much concision can be too clever for its own good. :-)

--
(coauthor of Clojure Programming from O'Reilly; creator of Clojure Atlas)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic