Hi, My first useful code writted in Clojure is a migration script from Google Notebook to Delicious. It's available at http://www.nsa.be/nb_exporter/ (complete package to download) and code is at http://github.com/raphinou/nb_exporter. It is code developed on the pre-lazy clojure.
Here are some questions and reactions after this first step in Clojure land: * I felt in the trap a couple of times when testing and using first, second and then nth: after calling second I called nth 3, where it has to be nth 2. * (sql(read)) has problems if value read is a path with slashes like / tmp/blup. The solution is to type it in double quotes: "/tmp/blup" * I'm not sure how I should read user input without echo, for the password. Currently the password of the user is displayed when it is typed. * As I'm new to Lisp like languages, I'm not sure if I used defmulti wisely. But I followed the rules of the Macro Club: there is none in the code as everything could be done with functions * zip/children returns a map, that cannot manipulated with the zip functions. I got used to the zip way and was surprised the children function returned something I could not manipulate the zip way. As a conclusion, I enjoyed it a lot and I'm happy I finally found a language that has the following qualities: - a lisp with a low barrier of entry (in my humble experience, I had tried common lisp before but found it harder to begin with) - a language I like that gives me access to the java libraries out there! Looking forward to developing more in Clojure! Raphaƫl --~--~---------~--~----~------------~-------~--~----~ 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 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 -~----------~----~----~----~------~----~------~--~---