Fork me on GitHub
#clojure-uk
<
2018-04-20
>
yogidevbear06:04:50

Morning

thomas07:04:34

mogge ☀️ world

otfrom08:04:36

@mccraigmccraig I always see that repo as the answer to "what db are you using?" "Er, cassandra?"

😆 12
jasonbell08:04:28

morning friends

danm08:04:58

Perfect cycling weather, so of course I handed the bike over to a mechanic at 07:30...

maleghast08:04:46

Morning All

maleghast08:04:58

Today I am doing SPA routing and push-states

maleghast08:04:05

(I like to have a project)

maleghast08:04:15

Also, it's fantastically sunny here in Strathard - who'd a thunk it!???!

mccraigmccraig08:04:04

what's up with the bike @carr0t ? i seem to have trashed my fork and my bike will be off to the mechanic for diagnosis next week

danm08:04:07

@mccraigmccraig I don't know 😉 It's making a regular 'tick' sound once per wheel rotation. But only when I have significant weight on the bike (i.e. if my 100kg ass is sat on it it happens, but not if I'm stood next to it pressing on it or have it on the stand). It's not the seat stem, because it happens if I'm stood up on the pedals. It's not the pedals, because it happens when I'm freewheeling. It's not the pads on the disks, because it happens when I'm actively braking to slow down. I'm out of ideas. Possibly one of the hub bearings is on the way out, the back wheel does have slight play in the hub

dominicm08:04:21

@carr0t that tick isn't normal? Oops.

mccraigmccraig08:04:17

ha, those kinda sounds drive me mental

danm08:04:28

A certain amount of 'bearing rotation' sounds are normal, but you'd expect that to be a fairly consistent tickticktickticktick, not only once per rotation and louder/more obvious than the bearing sounds

danm08:04:25

Also said mechanic recently posted pics on the Facebook group for my cycle club of 3 different bikes he's serviced recently that had cracks in the rim around at least one spoke. Mancs roads are horrendous for potholes right now, and I ain't light, so for peace of mind i'd like him to check it over

mccraigmccraig08:04:44

i managed to split a rim and tear a spoke half-out last year... but i've still got rim-brakes so not that surprising i guess

alexlynham09:04:43

ooh baldr looks nice

dominicm09:04:07

You should see the ones in Nuneaton. Absolute horror. We've lost 3 car tyres in the last year.

alexlynham09:04:07

and yeah lost track of the number of pinch punctures manchester potholes have dealt me

alexlynham09:04:28

it's a shitshow when you have bike lanes inside bus lanes

danm09:04:40

100-120 psi means I don't get many pinch punctures 😉

danm09:04:00

A lot of glass shards through the tyre though, especially in Chorlton

danm09:04:16

Less now I've got tyres with some kevlar in them

yogidevbear09:04:38

Think I may struggle to focus in this heat 😴

danm09:04:51

It's gone a bit grey here, was quite nice

maleghast10:04:13

If y'all had to pick between Pushy and Accoutant, which would you go for and why - please assume Bidi would be your routing lib of choice, as it is my routing lib of choice...

maleghast10:04:00

I am veering towards Pushy and want to be warned off if there is an "in practice" reason that I can't possibly detect without trying them both - something I do not have time to do.

maleghast10:04:46

Clearly any case that supports "Accountant is just much better" is also interesting, as long as it's not simply ideological / religious. 😉

danm10:04:14

So, out of interest, are most folks here actually writing cljs rather than clj?

dominicm10:04:01

We had issues with accountant, that are now resolved. Pushy did not have that issue iirc.

dominicm10:04:35

i think they're both much of a muchness

dominicm10:04:21

I think pushy had something else that was a bother to us. I'd recommend accountant for now I think @maleghast

dominicm10:04:29

but overall, they're both fundamentally the same.

maleghast10:04:21

Thanks @dominicm - that's a good enough endorsement for me... 🙂

maleghast10:04:05

@carr0t - I am using clj / cljs top to bottom for the project(s) I am working on now, so there's about an equal amount of each over any given week.

dominicm10:04:21

@carr0t we're doing both on most projects at JUXT too

mccraigmccraig10:04:06

@carr0t cljs + clj - cljs makes up about ⅓ of the total codebase

otfrom10:04:10

we do both at Mastodon. I do mostly meetings, but clojure when I get a chance to code.

otfrom10:04:51

anyone used geotools at all w/clojure?

otfrom10:04:24

(there are some old wrappers about but wondering if anyone had any experience with it)

danm10:04:46

Everything we do is backend. Interaction with clients is through XML/JSON REST APIs or objects in S3, so we're pure clj

otfrom10:04:31

what libraries are you using for your REST, xml, and json?

maleghast10:04:34

@otfrom - If you find someone who is using geotools I would be VERY interested in getting in on that conversation...

danm10:04:53

Cheshire for JSON. Our XML docs are out of another system which we then apply some modifications/transforms to, so we've got a lib we've written that basically understands the structure of those docs and uses clojure.data.xml though it is horrible in some places and it'd be nice to do something better. Where we've got REST APIs they're very simple and we're just using Ring+Compojure

mccraigmccraig10:04:56

@otfrom just use postGIS already

mccraigmccraig10:04:42

(that was my conclusion for all the mapping stuff i was doing a couple of years ago)

danm10:04:50

Most of our clients are actually more interested in being event driven. So we build the doc, write it to S3, and have S3 set up to notify to an SNS the clients can subscribe to. Their "API" is just "Receive notification, get object"

otfrom10:04:01

@mccraigmccraig yeah, I don't really need GIS tho. I just need to do a check on a file

otfrom10:04:05

I'm not serving up maps

Rachel Westmacott10:04:26

@carr0t mostly Clj, but with a few internal (for now) UIs built in Cljs (using Reagent). We also have some R and Ruby but much less new code is written in those.

alexlynham12:04:59

> anyone used geotools at all w/clojure? @otfrom 👋

alexlynham12:04:33

on the JSON side of things (to split convos) that new metosin jsonista library beat nippy in the perf testing I was doing the other day

alexlynham12:04:57

suspect that for much larger entities nippy would pull back ahead but idk, most tests of these things are quite arbitrary

alexlynham12:04:44

on the geotools side, what do you need to know?

alexlynham12:04:05

iirc (it was a while ago) I ended up just using the java lib more-or-less directly

otfrom12:04:32

@alex.lynham we just need it to do some reading of some shapefiles. We need to pull out some properties and do some easy bits with geometry (given 2 ids we can match, can we say point a is in polygon b)

otfrom12:04:32

I think you are right about it being pretty much all interop

danm12:04:38

nippy does serialisation as well doesn't it? Can it do direct output as a json string?

danm12:04:52

We're only using it for serialisation, certainly. In the few places we need that

danm12:04:11

The jsonista lib did look nice. Maybe we'll try it in one of our newer microservices 😉

alexlynham13:04:10

yeah I tried nippy serializing to erm, bytearrays maybe? I forget, but yeah it does do json. IIRC cheshire and jsonista both beat it on JSON in my contrived test (ymmv etc etc etc)

alexlynham13:04:32

@otfrom yeah sounds like you can do it with pure interop. You might get some weird file handler errors tho, I seem to remember that for whatever reason they needed manually closing in lots of weird edge cases because the (with-open ...) formulation didn't work

alexlynham13:04:13

so ended up having these sequences where I was popping a #(.close %) style anon fn on the end of a set of xfrms

alexlynham13:04:27

but maybe that bug is gone now 🙂

alexlynham13:04:50

anybody else at the kafka thing in london on monday btw?

otfrom13:04:06

@alex.lynham sounds like we should be OK as we're using it in a batch process (process termination should solve the open/close issue)

jasonbell13:04:38

@alex.lynham Sadly not, toyed with the idea but there wasn't enough pull for me to go considering a lot will get repeated at Strata I think.

jasonbell14:04:55

@alex.lynham O'Reilly's Big Data Conference on 23/24 May

alexlynham14:04:59

spenny though

jasonbell14:04:12

Yeah I enjoy it, notebooks full of notes. 🙂

jasonbell14:04:30

And for added ego stroking, I'm talking.

alexlynham14:04:52

in exalted company here what with @carr0t getting his spotlight moment on monday

jasonbell14:04:39

I only do talks to get heckled at by @thomas and @yogidevbear 🙂

💯 4
thomas14:04:48

I only go to talks to heckle jade @jasonbell

thomas14:04:14

or was it the other way round... I can't remember now... :thinking_face:

maleghast14:04:38

Wish I could go to Strata

yogidevbear15:04:20

I don't know what Jade is talking about 😇 (cough heckle cough)

yogidevbear15:04:02

@jasonbell Do you think you'll do another talk at ClojureX this year?

jasonbell16:04:18

I enjoy ClojureX, tis a hoot

👍 8
otfrom16:04:43

(I apologise for missing last years heckles)

yogidevbear16:04:21

I didn't have the heart to heckle during the actual talk 😉

otfrom16:04:37

sorry...

😂 12
jasonbell16:04:18

@otfrom You have 363 other days of the year to heckle.