kurofune <jesseluisd...@gmail.com> writes: > 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?
I think you should have a look at ,----------------------------------------- | http://rosettacode.org/wiki/Rosetta_Code `----------------------------------------- there are solutions from hundreds of programming languages for hundreds of problems to be compared - and to be reused as useful snippets. I actually created a massive book out of this huge knowlegde base for my favorite lisp of all, PicoLisp (http://picolisp.com/wiki/?home): ,-------------------------------------------------------- | http://www.scribd.com/doc/103733857/PicoLisp-by-Example `-------------------------------------------------------- its and open source project, so you could very well take my LaTeX sources and create a similar 'by-example' book for Clojure (https://github.com/tj64/picolisp-by-example). But you would need to consider two important questions: 1. Copyright & Quality I was in the unique situation that more than 600 Rosettacode solutions had been written by one single person - PicoLisp creator Alexander Burger himself. So I could be sure they are canonical high quality solutions, and I could (almost) solve the copyright issue by making Alexander Burger the principle author of the book with me as co-author. 'Almost', because not only the solutions have copyrights, but the problems too. I had to do quite a lot of extra work to make the authors of the Rosettacode problems happy. So be very careful (!!), this copyright issue isn't really fun at all, even when you produce a free open source book. 2. Does it help the language? I created two free books about PicoLisp, the aforementioned 'PicoLisp by Example' and 'PicoLisp Works' ,----------------------------------------------------- | (http://www.scribd.com/doc/103732688/PicoLisp-Works) `----------------------------------------------------- a compilation of almost all docs ever written about the language. I find them very useful myself as language reference, and it seems they are quite popular with people who like to discover this unknown but fascinating pure and powerful lisp dialect. But OTOH - everybody can see now how short and succint PicoLisp programs are, that libraries are often not needed because PicoLisp core functions are so powerful, how complete the PicoLisp application framework is for database and web-development - besides its extremely small footprint. And they could see how easy it is to install PicoLisp and how very fast it runs (the fasted interpreter of all?) when they actually try out the examples. So one would expect a kind of PicoLisp hype triggered by the language's suberb "performance" in the "Rosettacode competition", but that did not happen (yet) - unfortunately. -- cheers, Thorsten -- 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.