Re: Breaking out of a map type function

2013-11-24 Thread Jernau
Hi Dave, Another option is to use the formacro's while clause to stop processing as soon as you hit an error. Here's a basic example with a simple my-func that returns a string-based error to give you an idea of how it could look: (defn my

Re: first vals first vals

2013-11-21 Thread Jernau
You could use get-in: (-> {:key1 {:cf {:cq "0,1,2,3"}}} (get-in [:key1 :cf :cq])) Cheers, James On Thursday, November 21, 2013 10:08:06 AM UTC+1, Zhemin Lin wrote: > > Hi. > I'm quite annoyed by the ugly smell of (first (vals (first .

[Video] Introduction to Light Table

2013-11-02 Thread Jernau
Hi everyone, I've recorded an introduction to Light Table screencast. During which I explain why I'm excited about LT and its future, give a quick introduction to getting started with Clojure in LT, and finally cover some basics around customising ke

Re: ▶ Datomic: up and running - YouTube

2013-10-09 Thread Jernau
Thanks for the nice complement mimmo! When I created the screencast I announced it in the Datomic group, but I didn't think to do it here too. Though because I introduce the database via a TDD Clojure project, hopefully it's relevant (and useful) for folks here as well. Cheers, James On Wedn

Re: Teaching Clojure to students (how ?)

2013-10-08 Thread Jernau
actively, e.g. I don't know if it works > with modern leiningen). NightCode is also getting into the running, I > think. But from my perspective none of them yet fill the niche that I've > been discussing. > > -Lee > > PS I'd be in Clojure IDE heaven if someone could

Re: Teaching Clojure to students (how ?)

2013-10-07 Thread Jernau
Lee, Have you tried Light Table ? I think it would be a perfect match for your use-case. Here's a screencast of me using Light Table's Instarepl to teach list comprehension in Clojure. As you will hopefully agree, Light T

Re: [Video] Understanding list comprehension in Clojure

2013-09-26 Thread Jernau
On Friday, September 27, 2013 12:06:04 AM UTC+2, Magomimmo wrote: > > Nice job, as usual! > mimmo > > On Thursday, September 26, 2013 8:10:33 PM UTC+2, Jernau wrote: >> >> Hi everyone, >> >> I recorded another screencast - this time with the aim of helping people &g

[Video] Understanding list comprehension in Clojure

2013-09-26 Thread Jernau
Hi everyone, I recorded another screencast - this time with the aim of helping people understand list comprehension in Clojure . I hope that some Clojure newcomers (or those unfamiliar with list comprehension) find it useful. Cheers, James -- --

Re: Screencast: understanding the thread-first and thread-last macros

2013-09-05 Thread Jernau
is is a pretty good demo of light table as well for people who haven't > really been keeping up with it lately. > On Wednesday, September 4, 2013 8:42:06 AM UTC-7, Jernau wrote: >> >> Hi everyone, >> >> I made a screencast about Clojure's *thead-fir

Re: Screencast: understanding the thread-first and thread-last macros

2013-09-04 Thread Jernau
ke this. Unfortunately my spoken > english is too affected by italian accent :( > > Highly recommended both for clojure beginners and intermediates. > > Mimmo > > On Sep 4, 2013, at 5:42 PM, Jernau wrote: > > Hi everyone, > > I made a screencast about

Screencast: understanding the thread-first and thread-last macros

2013-09-04 Thread Jernau
Hi everyone, I made a screencast about Clojure's *thead-first* (->) and *thread-last* (->>) macros: http://www.youtube.com/watch?v=qxE5wDbt964 If you already have a good understanding of these macros then I'd recommend skipping it, but hopefully newcomers to Clojure might learn something usef