ldnclj

Find us on #clojure-uk
agile_geek 2015-09-17T06:22:33.000374Z

Quick reminder: Progressive Clojure Dojo (ProCloDo - seek Doctors advice before taking) is on Tuesday 22nd. Sign up form is here: https://docs.google.com/forms/d/1SgT6dQksU3eDDJp37cX2dzcDRODEPF1-wDWEJJA2uL0/viewform (Yes is know preferences is spelt incorrectly…come along on Tues and fix it)

thomas 2015-09-17T07:52:13.000376Z

morning

2015-09-17T08:11:23.000377Z

if anyone here was at the canary wharf dojo on tuesday, i got my code working last night for the spark example - you can see it here: https://github.com/oliyh/clojspark

2015-09-17T08:12:57.000379Z

very basic! but the thing i'm most pleased with was the local workflow, running in a local repl on my host OS, iteration time was seconds as opposed to a minute using uberjar compilation and submission via guest os

quentin 2015-09-17T08:26:14.000380Z

morning :simple_smile:

afhammad 2015-09-17T08:28:30.000381Z

mo-yawn-ing

afhammad 2015-09-17T08:37:34.000382Z

Anyone here use Atom as their main or clojure editor?

mccraigmccraig 2015-09-17T08:38:34.000383Z

@thomas: here's the first few lines of my bidi handler definition : https://www.refheap.com/c433c555056b8dc4714dad41a

thomas 2015-09-17T08:39:37.000384Z

Thanks @mccraigmccraig looks very helpful

mccraigmccraig 2015-09-17T08:40:30.000385Z

main difference from yours seems to be that i'm using maps in the second position of the bidi routes... i remember having difficulty making bidi do what i want and playing around until it worked, so i may not have the most idiomatic solution

mccraigmccraig 2015-09-17T08:41:37.000386Z

in particular, it looks a bit odd having "/" and empty-string in the first-position of the bidi routes

mccraigmccraig 2015-09-17T08:42:06.000387Z

i didn't care enough to investigate further though - other fish to grill

quentin 2015-09-17T08:43:32.000388Z

@afhammad: it was my main editor for javascript before, but i moved to emacs (with spacemacs)

mccraigmccraig 2015-09-17T08:48:29.000389Z

@thomas: here's a couple of resources too, which illustrate swagger for the resources, parameter coercion, and how to make CORS work in the current -9 release https://www.refheap.com/f1873f495a791f2dc99aeda42 https://www.refheap.com/ccb88dfdd429e22adc3b8dc13

afhammad 2015-09-17T08:50:04.000390Z

@quentin: was it because of the lack of clojure tooling/packages?

quentin 2015-09-17T08:50:56.000391Z

there’s that, but also because of the vim keybinding support in spacemacs is vastly superior to atom's

afhammad 2015-09-17T08:51:22.000392Z

gotcha

malcolmsparks 2015-09-17T08:54:07.000393Z

there's a schema in bidi now, so you can validate your route structures before using them

malcolmsparks 2015-09-17T08:56:06.000394Z

the trouble with using maps in the second place of a bidi route (pair) is that you don't know exactly the order of the entries, so if your patterns aren't 100% mutually exclusive, you should use a vector of vectors to be specific about the ordering

malcolmsparks 2015-09-17T08:56:53.000395Z

vector of vectors creates a lot of syntactic noise, so maps are supported for when evaluation order doesn't matter

frankiesardo 2015-09-17T09:04:24.000396Z

@malcolmsparks would it work with ordered maps? like https://github.com/frankiesardo/linked or https://github.com/flatland/ordered/tree/develop/src/flatland/ordered ?

pupeno 2015-09-17T09:15:52.000398Z

Good morning.

malcolmsparks 2015-09-17T09:41:53.000399Z

@frankie: yes, it uses seq under the hood. ordered-maps would be a perfect compromise

thomas 2015-09-17T16:18:14.000401Z

what is a good workflow with yada....

thomas 2015-09-17T16:18:29.000402Z

using stuart sierra's component system>

thomas 2015-09-17T16:18:30.000403Z

?

mccraigmccraig 2015-09-17T18:43:40.000404Z

@thomas: i've been using https://github.com/jarohen/yoyo/

thomas 2015-09-17T18:44:10.000406Z

hmm ok... just started hacking with components...

thomas 2015-09-17T18:44:18.000407Z

as that is what the samples seem to use.

thomas 2015-09-17T18:44:27.000408Z

might have a look at that one as well.

mccraigmccraig 2015-09-17T18:44:33.000409Z

component is perfectly good too

thomas 2015-09-17T18:44:45.000411Z

ta