Re: code design in clojure

2012-10-18 Thread Alex Ott
Hi Brian

Which books had you read? I found that Clojure Programming provides
many useful tips on how organize code, etc.

On Thu, Oct 18, 2012 at 5:51 AM, Brian Craft craft.br...@gmail.com wrote:
 I'm finding the books on clojure to be very focused on low-level language
 features. Are there any good references for how to design code in clojure
 (or perhaps in functional languages more generally)? For example, knowing
 when to use a data type or a protocol, knowing when and how to separate
 purely functional code from code with side effects, making use of monads,
 queues, and the other forms that one hears about in the forums, etc.

 --
 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



-- 
With best wishes,Alex Ott
http://alexott.net/
Twitter: alexott_en (English), alexott (Russian)
Skype: alex.ott

-- 
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


Re: code design in clojure

2012-10-18 Thread Sean Corfield
Which books on Clojure have you read so far?

On Wed, Oct 17, 2012 at 8:51 PM, Brian Craft craft.br...@gmail.com wrote:

 I'm finding the books on clojure to be very focused on low-level language
 features. Are there any good references for how to design code in clojure
 (or perhaps in functional languages more generally)? For example, knowing
 when to use a data type or a protocol, knowing when and how to separate
 purely functional code from code with side effects, making use of monads,
 queues, and the other forms that one hears about in the forums, etc.


-- 
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

Re: code design in clojure

2012-10-18 Thread Brian Craft
Clojure Programming, and The Joy of ... 

On Thursday, October 18, 2012 7:53:38 AM UTC-7, Sean Corfield wrote:

 Which books on Clojure have you read so far?

 On Wed, Oct 17, 2012 at 8:51 PM, Brian Craft craft...@gmail.comjavascript:
  wrote:

 I'm finding the books on clojure to be very focused on low-level language 
 features. Are there any good references for how to design code in clojure 
 (or perhaps in functional languages more generally)? For example, knowing 
 when to use a data type or a protocol, knowing when and how to separate 
 purely functional code from code with side effects, making use of monads, 
 queues, and the other forms that one hears about in the forums, etc.


  



-- 
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

Re: code design in clojure

2012-10-18 Thread Sean Corfield
On Thu, Oct 18, 2012 at 8:58 AM, Brian Craft craft.br...@gmail.com wrote:

 Clojure Programming, and The Joy of ...


Hmm, I was going to suggest Joy of but if you don't think that helps with
some of those design issues, I'm not sure what to suggest. Others suggested
Clojure Programming but, again, if that doesn't help...

At this point I'd certainly be interested in hearing suggestions from other
people beyond those two books...?
-- 
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World Singles, LLC. -- http://worldsingles.com/

Perfection is the enemy of the good.
-- Gustave Flaubert, French realist novelist (1821-1880)

-- 
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

Re: code design in clojure

2012-10-18 Thread Paul deGrandis
Brian,

Those are two excellent books.  If you are looking at more general project 
organization and approaches, I'd suggest:
 - Just Enough Architecture (specifically its discussion on architectural 
evident coding)
 - watch the Halloway talks on evident code
 - thumb through Ring, Leiningen, and ClojureScript as prime examples of 
well written Clojure applications
 - watch the Google tech talk on designing good APIs 
(http://www.youtube.com/watch?v=aAb7hSCtvGw)
 - and you might find a book like Higher-Order Perl helpful (depending 
where you're coming from)

Hope one (or all) of these help!
Paul

-- 
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

Re: code design in clojure

2012-10-18 Thread David Nolen
On Thu, Oct 18, 2012 at 1:02 PM, Paul deGrandis paul.degran...@gmail.comwrote:

  - thumb through Ring, Leiningen, and ClojureScript as prime examples of
 well written Clojure applications


+1

I think it's informative to look at non-trivial yet small Clojure
libraries. ClojureScript doesn't quite fit the small requirement, but I
think there's a lot to learn from looking at ClojureScript's analyzer.clj
which is less than a thousand lines.

David

-- 
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

Re: code design in clojure

2012-10-18 Thread Roberto Mannai
See Functional Programming for the Object-Oriented Programmer (
https://leanpub.com/fp-oo)
Il giorno 18/ott/2012 19:01, Sean Corfield seancorfi...@gmail.com ha
scritto:

 On Thu, Oct 18, 2012 at 8:58 AM, Brian Craft craft.br...@gmail.comwrote:

 Clojure Programming, and The Joy of ...


 Hmm, I was going to suggest Joy of but if you don't think that helps with
 some of those design issues, I'm not sure what to suggest. Others suggested
 Clojure Programming but, again, if that doesn't help...

 At this point I'd certainly be interested in hearing suggestions from
 other people beyond those two books...?
 --
 Sean A Corfield -- (904) 302-SEAN
 An Architect's View -- http://corfield.org/
 World Singles, LLC. -- http://worldsingles.com/

 Perfection is the enemy of the good.
 -- Gustave Flaubert, French realist novelist (1821-1880)

 --
 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

Re: code design in clojure

2012-10-18 Thread abp
You probably want to watch this:
vimeo.com/46163090

Also, try to think of your programs in terms of pipelines as much as 
possible.
You get input, you produce output.
That probably applies to every program ever written, but when you get how 
that works in Clojure, it's like an enlightment, at least it was for me.
You can then structure all the processes in your program like that, and 
wire those up until you're done.

On Thursday, October 18, 2012 5:51:23 AM UTC+2, Brian Craft wrote:

 I'm finding the books on clojure to be very focused on low-level language 
 features. Are there any good references for how to design code in clojure 
 (or perhaps in functional languages more generally)? For example, knowing 
 when to use a data type or a protocol, knowing when and how to separate 
 purely functional code from code with side effects, making use of monads, 
 queues, and the other forms that one hears about in the forums, etc.

-- 
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

Re: code design in clojure

2012-10-18 Thread abp
Now I remember the more important video:
www.infoq.com/presentations/Thinking-in-Data

Also (haven't watched):
www.infoq.com/presentations/Programming-with-Values-in-Clojure

-- 
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


Re: code design in clojure

2012-10-18 Thread Brian Craft
Thanks to everyone for the suggestions!

-- 
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

code design in clojure

2012-10-17 Thread Brian Craft
I'm finding the books on clojure to be very focused on low-level language 
features. Are there any good references for how to design code in clojure 
(or perhaps in functional languages more generally)? For example, knowing 
when to use a data type or a protocol, knowing when and how to separate 
purely functional code from code with side effects, making use of monads, 
queues, and the other forms that one hears about in the forums, etc.

-- 
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