ldnclj

Find us on #clojure-uk
thomas 2015-07-15T07:47:29.001935Z

morning

jamiei 2015-07-15T08:08:07.001936Z

Morning

pupeno 2015-07-15T08:44:17.001937Z

Hello.

mccraigmccraig 2015-07-15T09:41:51.001938Z

mourning

jamiei 2015-07-15T09:43:55.001939Z

I know it's grey/raining, but it can't be that bad, surely @mccraigmccraig? :simple_smile:

kushalp 2015-07-15T09:45:15.001940Z

Morning!

mccraigmccraig 2015-07-15T09:50:53.001942Z

my daughters nursery showed me her 'learny journey' book today, which they compile from their notes and photos... they looked at me funny when i asked them which of the 3 obvious spelling variants they used 'lourney journey', 'learny jearny', 'learny journey'

korny 2015-07-15T09:54:08.001943Z

re: SQL - well, my words were prophetic, we found a performance issue yesterday because a simple Hibernate lazy join wasn’t actually lazy; it would have been a trivial custom SQL query but Hibernate still fscks it up.

xlevus 2015-07-15T10:20:36.001944Z

oh neat. I was trying to build a thing that looks like it was probably just going to end up being 90% of what yada is. I can now probably just write a shim around yada.

mccraigmccraig 2015-07-15T10:24:48.001948Z

korny: hibernate is a different beast to korma & honeysql though... shoehorning a relational model into OO was always an idea of dubious merit

mccraigmccraig 2015-07-15T10:25:38.001949Z

xlevus: yeah, i'm playing with yada now, looks like i'm gonna throw away my half-assed solutions

xlevus 2015-07-15T10:25:59.001950Z

throw away those half-asses. And implement yourself some fresh half-asses!

mccraigmccraig 2015-07-15T10:27:02.001951Z

all solutions are asymptotic to a whole ass

korny 2015-07-15T10:54:47.001952Z

mccraigmccraig: true, but I’m still rather skeptical. I know that if I’m using SQL under the covers, the time will probably come where I need to tweak some of the SQL because of something particular to the particular SQL flavour I’m using; and when that happens, I don’t want to find that my SQL is being generated, unless it’s a real simple generation like coffeescript is to JavaScript.

korny 2015-07-15T10:56:57.001953Z

… but maybe it’s just PTSD and someone will produce something that proves me wrong :simple_smile:

mccraigmccraig 2015-07-15T11:00:42.001954Z

korny: ha, i think we've all got ptsd from a variety of causes... yesql meets your constraints, in that it's basically just a sql template. korma and honeysql less so, but then i tend to only use these things now when i want to be able to compose query fragments, and i've got at least as much ptsd from writing query-composition stuff as i have from fighting restrictive sql generation :simple_smile:

xlevus 2015-07-15T11:48:18.001955Z

I don't quite get yesql. It doesn't feel like it fits in with the clojure way.

malcolmsparks 2015-07-15T16:14:04.001957Z

@mccraigmccraig: yada 0.5.x isn't that far off, I've had quite a bit of holiday/travel time to hack on it recently and I expect it will be the 1.0

mccraigmccraig 2015-07-15T16:14:52.001958Z

@malcolmsparks: i'm playing with it now... no problems so far, though i haven't done a lot yet

malcolmsparks 2015-07-15T16:15:05.001959Z

i've totally redesigned some parts of the interface however, so even though it's close to 0.4.2 there's some significant differences

malcolmsparks 2015-07-15T16:15:17.001960Z

especially with content negotiation, which has been redesigned from the ground up

mccraigmccraig 2015-07-15T16:16:02.001961Z

@malcolmsparks: should i use the 0.5.x branch then ?

malcolmsparks 2015-07-15T16:28:56.001962Z

not yet, i'm still fixing up some tests,

malcolmsparks 2015-07-15T16:29:23.001963Z

but i'd appreciate any comments, initial impressions

malcolmsparks 2015-07-15T16:29:46.001964Z

I also need to update the docs, which will be quite an overhaul - probably next week

malcolmsparks 2015-07-15T16:30:09.001965Z

use the 0.4.2 master for now, then upgrade to 0.5.x in about 2 weeks

malcolmsparks 2015-07-15T16:30:22.001966Z

it won't be a major amount of work, depending on how many endpoints you're creating

malcolmsparks 2015-07-15T16:30:41.001967Z

if there's anything you find to be an issue with 0.4.2, do let me know

mccraigmccraig 2015-07-15T16:31:43.001968Z

great, i'll just carry on then :simple_smile: