I think doing some XML manipulation with clojure.data.xml, tree-seq and
basic data structures shows a lot of the benefits in a little bit of code,
and is pretty persuasive in my experience.

This thing correlates paths from openstreetmap via unique node-ids to give
you a way to find intersecting roads.

Takes a massive XML file as input, showing off lazy-seqs.

https://github.com/gtrak/xml-example/blob/master/src/xml_example/core.clj


On Fri, Apr 18, 2014 at 9:27 AM, kurofune <jesseluisd...@gmail.com> wrote:

> Hi Martin,
>
> > IMHO small code-snippets like that you sent can not persuade someone to
> change language except some small/toy projects.
>
> I completely agree with the above, if it is professional programmers you
> are trying to convince. I should mention that while my friend was talking
> about "industry", I disagree with what he was saying in that regard.
>
> I did observe however, for better or worse, the effect that this
> particular article has had on hobby programmers who are not industry
> veterans and wondered what type of thing might be out there to drum up
> enthusiasm for newcomers.
>
> I'll check out the functional programming patterns book about Scala and
> Clojure. I wondered if it was worth picking up, but am now motivated to do
> so.
>
> Jesse
>
>
> On Friday, April 18, 2014 7:10:19 PM UTC+9, martin madera wrote:
>>
>> Hello,
>>
>> I think that the book Functional patterns in Scala and Clojure has a lot
>> of snippets, which can attract many programmers.
>>
>> http://www.amazon.com/Functional-Programming-Patterns-Scala-Clojure/dp/
>> 1937785475/ref=sr_1_1?ie=UTF8&qid=1397814912&sr=8-1&keywords=functional+
>> programming+patterns
>>
>> That book is written in similar style like GoF Design Patterns which is a
>> bit different than mini-cookbook you sent. But I think that the snippets in
>> the mini-cookbook you sent should not be put to public like "this is the
>> way how to do it". They should be put to some library rather than
>> copy-pasting to the every other program.
>>
>> I have only 5 years of commercial experience in programming, but IMHO
>> small code-snippets like that you sent can not persuade someone to change
>> language except some small/toy projects.
>>
>> Martin Maděra
>>
>> On Friday, 18 April 2014 10:03:29 UTC+2, kurofune wrote:
>>>
>>> Hello everyone!
>>>
>>> A Java programmer recently mentioned to me that if the Clojure community
>>> wants to appeal to industry programmers that they would need to provide
>>> example code comparisons, which clearly show why it is good to choose
>>> Clojure over another language. The same person gave me the following link
>>> with Java snippets that have proved useful for learners, something like a
>>> mini-cookbook: http://viralpatel.net/blogs/20-
>>> useful-java-code-snippets-for-java-developers/
>>>
>>> When I google "Java Clojure code comparisons", nothing simple or
>>> straightforward like this comes up, so I want to translate these
>>> snippets into their Clojure equivalents and place them side by side with
>>> the Java, for comparison. I hope it will also provide a resource for
>>> Clojure programmers who want to get a better feel for Java and gain a more
>>> intuitive grasp of what goes on during interop. I'd like to cloud the
>>> task out to anyone interested in picking one snippet and posting it here.
>>> I'll then collect them, clean them up, post them and provide a link to
>>> either a blog post or github gists page.
>>>
>>> Does this appeal to anyone? If not, what succinct piece of media would
>>> you suggest for wowing the pants off a Clojure skeptic?
>>>
>>> Jesse
>>>
>>  --
> 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 unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to