clojurebridge

ulsa 2015-05-22T18:57:51.000019Z

20 attendees and a week to go, it's gonna be super fun (and a little scary)

seancorfield 2015-05-22T18:58:35.000020Z

@ulsa: did you have teacher training already or is that coming up this week?

ulsa 2015-05-22T18:59:08.000021Z

we've had one, but probably one more sitting is needed

ulsa 2015-05-22T19:00:23.000023Z

I used some non-clojurian colleagues as guinea pigs and got some good feedback

seancorfield 2015-05-22T19:04:24.000024Z

The most important aspect of the teacher training is really about the classroom environment, based on the RailsBridge slides — sensitivity, how to encourage students etc.

2015-05-22T19:47:14.000029Z

I don't really understand what the -q is doing in the snippet above

tjg 2015-05-22T19:53:22.000030Z

@pixel: Ah, I was confused about the context; googling shows it came from: https://github.com/someteam/acha/blob/master/src-cljs/acha/util.cljs#L57

2015-05-22T19:54:04.000032Z

Huh, actually I grabbed it from "https://github.com/tonsky/datascript-chat" where it's in the utils file

2015-05-22T19:54:28.000034Z

it's a "findOne" query function for datomic / datalog esque queries

tjg 2015-05-22T19:59:28.000036Z

Ah, I see! Ok, apparently -q runs a Datascript query just like d/q — and if you turn on debugging, it also profiles and prints how long the query took.

tjg 2015-05-22T20:01:16.000037Z

So the code in that snippet calls -q to get the debugging. Otherwise it should call d/q.

tjg 2015-05-22T20:02:30.000038Z

That snippet is horrifically confusing because it uses "q" too much. q means the query. d/q, -q and q1 are all functions which execute the query on args.

tjg 2015-05-22T20:03:15.000039Z

(I hope that kinda makes sense? Or am I terribly unclear? :simple_smile: )

2015-05-22T20:10:50.000042Z

It makes sense, but I don't quite understand what the semantic value of hyphen-variable is

2015-05-22T20:13:54.000043Z

ohp nope I'm

2015-05-22T20:14:24.000044Z

Just straight tripping. Did not see the -q definition above .... 😣

tjg 2015-05-22T20:21:32.000046Z

😛