Here's a style guide for Scheme, another dialect of Lisp: http://mumble.net/~campbell/scheme/style.txt
It's a fun read, and mostly applicable to Clojure. On Thu, May 12, 2011 at 6:54 AM, Mike Meyer <m...@mired.org> wrote: > On Wed, 11 May 2011 19:10:13 -0700 (PDT) > "J.R. Garcia" <mrjohngar...@gmail.com> wrote: > > > I'm wondering what resources would be best to learn how Clojurians > > write their code. > > > > I've been developing for about 4 years in several object-oriented > > languages (mostly C# and Ruby). I understand Clojure's syntax well and > > I'm familiar with a lot of the features of Clojure (although I'm sure > > several of you would prove me wrong). One problem I keep running into > > is how to attack a problem "the Clojure way". I often find myself > > writing Clojure like I would write C# code with LINQ, only in > > Clojure's syntax. > > As others have said, this sounds like you need a book on > functional/LISP programming. There are some excellent books for other > LISP dialects. "Structure and Interpretation of Computer Programs" > (aka SICP) would be my recommendations, but "Practical Common Lisp" > and "On LISP" are both excellent. I don't know of a book at that > quality level using Clojure. There is an effort underway to translate > SICP to clojure at http://sicpinclojure.com/. > > > I'm not interested in Java interop or Clojure on the web or Clojure's > > syntax. I've had no problem finding answers for those things on the > > Internet. I'm really more interested in stuff like > > > http://www.bestinclass.dk/index.clj/2010/10/taking-uncle-bob-to-school.html > , > > but covering a wider range of things rather than a small example. I'm > > interested in any resource whether it's a book, a video, a blog, a > > person, etc. > > This, no the other hands, is a little bit contradictory. The example > about syntax and white space than writing code "the Clojure way", > though you explicitly say that's not what you're interested in. Seems > like you're asking for a community style guide. Again, I don't know > that such exists. If it does, Google didn't find it, thought it sounds > like a good idea if someone wanted to write one - maybe starting with > a LISP or Scheme style guide (there are lots of those to choose > from). > > <mike > -- > Mike Meyer <m...@mired.org> http://www.mired.org/ > Independent Software developer/SCM consultant, email for more information. > > O< ascii ribbon campaign - stop html mail - www.asciiribbon.org > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to clojure@googlegroups.com > Note that posts from new members are moderated - please be patient with > your first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en > -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en