clojure-berlin

where Berlin peeps hang out
defsprite 2015-07-17T08:30:03.000304Z

hi everyone!

defsprite 2015-07-17T08:31:55.000305Z

@jellea: This might be interesting: https://loop.ableton.com

defsprite 2015-07-17T08:32:54.000307Z

Anybody here using/making music with overtone?

jellea 2015-07-17T09:10:14.000308Z

@defsprite: already signed up :simple_smile:

defsprite 2015-07-17T09:13:23.000309Z

of course you have!

martinklepsch 2015-07-17T09:39:19.000311Z

Love the Website of this ableton thing!

2015-07-17T15:55:24.000312Z

cool

2015-07-17T15:56:16.000313Z

i have a question, i want to write a simple RESTful API that just deals in one resource (GET with filtering and POST)

2015-07-17T15:56:35.000314Z

i once played around with liberator, but i don’t want to go down that route again

pesterhazy 2015-07-17T15:56:54.000315Z

I'd just use pure ring I guess

2015-07-17T15:57:30.000316Z

with compojure?

pesterhazy 2015-07-17T15:57:38.000317Z

yes!

pesterhazy 2015-07-17T15:58:51.000318Z

unless you have a lot of routes, the cognitive overhead of learning liberator (etc.) should be more than you gain from it, compared to simple ring+compojure+clojure/data.json

pesterhazy 2015-07-17T15:59:17.000319Z

but I haven't used liberator et al, so maybe I'm wrong :simple_smile:

2015-07-17T15:59:49.000320Z

i don’t like that liberator relies so heavily on macros

pesterhazy 2015-07-17T16:00:36.000321Z

I agree

2015-07-17T16:00:44.000322Z

and the whole decision tree thing is scary

pesterhazy 2015-07-17T16:01:10.000323Z

bidi is like compojure, except without macros (or so I heard)

pesterhazy 2015-07-17T16:01:20.000324Z

maybe an option as well: routes are just data structures

2015-07-17T16:01:28.000325Z

thx

pesterhazy 2015-07-17T16:01:30.000326Z

in bidi, I mean

2015-07-17T16:01:36.000327Z

i’ll look into it

pesterhazy 2015-07-17T16:01:51.000328Z

let us know if it works out :simple_smile:

2015-07-17T16:37:37.000329Z

bidi is a good choice - I also don't like liberator much but I use it because you need something like this for proper error handling

2015-07-17T16:42:51.000330Z

i see

2015-07-17T16:47:36.000331Z

@nicsnet: what I currently use for REST APIs looks like this: https://github.com/alexanderkiel/hap-todo/blob/master/src/hap_todo/handler.clj

2015-07-17T16:47:59.000333Z

But that might be a bit over top for your use case.