GeeCON Prague 2014*
The moose likes Clojure and the fly likes Joy of Clojure - sample applications or tutorials based on one big application? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Languages » Clojure
Bookmark "Joy of Clojure - sample applications or tutorials based on one big application?" Watch "Joy of Clojure - sample applications or tutorials based on one big application?" New topic
Author

Joy of Clojure - sample applications or tutorials based on one big application?

Michael Swierczek
Ranch Hand

Joined: Oct 07, 2005
Posts: 107
    
    1
Mr Fogus and Houser,
Thanks for the promotion. I was impressed with the "The Clojure Philosophy" chapter, thanks to you or Manning or both for making it freely available. I have some questions:

1. Does your book have any detailed tutorial or walk-through for building a medium size Clojure application?

2. When you read the word "MEAP", do you immediately think of the Road Runner from Looney Tunes? (I mean no disrespect, I just took from your footnotes that you have a sense of humor that's great similar to mine.)

3. As I grew frustrated with some features of Java, I started looking for JVM-compatible alternatives. I discovered Scala, and I'm impressed with it. If either of you is familiar with Scala, I am curious what features drew you to Clojure over Scala. I'm not asking for a general comparison between the two languages, just what particular aspects of Clojure you personally view as essential.

Thank you for your time.
-Mike

Michael Fogus
author
Greenhorn

Joined: Feb 07, 2011
Posts: 12

Hello Michael,

Thank you for the questions.

Does your book have any detailed tutorial or walk-through for building a medium size Clojure application?


Chouser and I made a decision very early on that our book would most be populated by pointed examples. In other words, every example in the book is focused primarily on demonstrating the particular topic at hand. I've personally read programming language books of all styles and from my perspective I've learned more about languages when the examples are not diluted with details tangential to the language itself. I like to make a joke (but I hope the meaning is clear) that goes: we tried to write a book called "The Joy of Clojure" and not "The Joy of the settings required to connect to a MySql database".

That's not to say that such a book is not useful -- only that's not our focus.

When you read the word "MEAP", do you immediately think of the Road Runner from Looney Tunes?


I hadn't, but I think from this day forward I will... thanks a lot. ;-)

I am curious what features drew you to Clojure over Scala.


I actively use both, so maybe Chouser can chime in regarding his choice. :-)

Michael Swierczek
Ranch Hand

Joined: Oct 07, 2005
Posts: 107
    
    1
Michael Fogus,

Thank you for your response. I understand your point about not wanting to write "The joys of connecting to a MySQL database using Clojure" or similar.
Chris Houser
author
Greenhorn

Joined: Feb 07, 2011
Posts: 22

When you read the word "MEAP", do you immediately think of the Road Runner from Looney Tunes?

I do. Every time.
I even hear in my head the "popping" sound that immediately follows.
Michael Fogus wrote:
I am curious what features drew you to Clojure over Scala.

I actively use both, so maybe Chouser can chime in regarding his choice. :-)

Initially, the dramatically simpler type system and lack of required type declarations attracted me, as well as macros. Later, macros. Then the seq abstraction kinda blew my mind, and also the macros.
Michael Swierczek
Ranch Hand

Joined: Oct 07, 2005
Posts: 107
    
    1
So you're saying this, macros, that, macros, and the other thing, macros, and also macros?

I have to admit that, per the many discussions on LISP across the web, I know that macros are a major reason LISP has so many devoted fans. I'm someone who has trouble grasping the concept of LISP macros and the useful practical applications of them. Macros get a pretty good amount of coverage in your book?

Thanks again for taking the time to answer.
Balagopal Kannampallil
Ranch Hand

Joined: Oct 18, 2004
Posts: 136

Hi Michael & Chris,

Can you guys please tell me the main aspects where Clojure differs from other programming languages?
What all advantages will I have, if I start writing my applications in Clojure?

Thanks,
Bala


SCJP 5.0 and now fighting with ExtJS
Chris Houser
author
Greenhorn

Joined: Feb 07, 2011
Posts: 22

Michael Swierczek wrote:So you're saying this, macros, that, macros, and the other thing, macros, and also macros?

Exactly!

But note that's merely why I came to Clojure. As it turns out, I don't use them all that often, and there are other aspects of Clojure that are at least as compelling and perhaps more, depending on the task at hand. Like many language features, it's hard to see how they're useful until you find yourself in a situation that would truly benefit from them. So macros get their due coverage in Joy of Clojure, hopefully in a way that will help you understand both how they work and why they're useful.
 
GeeCON Prague 2014
 
subject: Joy of Clojure - sample applications or tutorials based on one big application?