Fork me on GitHub
#clojure-uk
<
2017-05-05
>
dominicm06:05:27

Didn't even think of paralleling transducers this way

agile_geek07:05:05

@thomas it could be worse...try XML in Java!

thomas07:05:23

isn't there at least a (more) standard way of dealing with XML in java... and not 10 different libs to use?

agile_geek08:05:02

Pretty std way to deal with JSON too - most people use Jackson

agile_geek08:05:05

and there are 10 different XML libs per genre for XML (SAX vs DOM parsers) but ppl have standardised on a few. BTW Clojure is just as guilty of proliferation of libs (if not more so) - Cheshire, clj-json, data.json?

agile_geek08:05:19

Not to mention ring-json

dominicm08:05:43

What's wrong with proliferation of libs?

thomas08:05:33

nothing wrong perse... but I am having trouble finding one that does what I want.

thomas08:05:17

and I use jackson as well at the moment... but I can't just parse the JSON it seems... need to give it an java class to put things in. I did something like this a few years ago and back then I could just do a parse on a JSON string and get a bunch of jsonObject/jsonArrays back. haven' been able to find that option (yet)

agile_geek08:05:13

I've seen projects paralysed by a choice...but this is always a ppl problem

thomas09:05:48

my complaint isn't so much that there are (too) many libs... just that dealing with JSON in java is a pain. I just want a map/vector with stuff in it, seems much simpler to me

glenjamin09:05:51

not that JSONObject looks especially nice to work with

glenjamin09:05:04

but better than having to make up a bunch of data classes i guess

agile_geek09:05:51

Yeah I've used JSONObject before...it's not too painful

thomas11:05:31

I got it working now... just a lot of hassle to get there in the first place....

yogidevbear11:05:35

And just to throw a spanner in the works: https://github.com/google/gson

dominicm13:05:48

Competition is good, no?

thomas13:05:23

@dominicm what is the advantage of have 3 different postmen coming past your house each day?

agile_geek13:05:33

Yes and no. As I mentioned above, in real world, large projects too much choice can lead to churn.

thomas13:05:53

I am using gson at the moment btw.

dominicm13:05:29

Bit of a false equivalence with postmen.

thomas13:05:35

but at the moment I can't get Spring to do what I want it to do... even though docs say it should work... 😡

thomas13:05:37

@dominicm true... I was playing devils advocate a bit... (but not far from the truth here in NL, we get several each week)

seancorfield23:05:06

I’ll be back in the UK from the 10th to the 21st… in case, you know… 🍻

seancorfield23:05:49

(my father is at death’s door and I’m Joint Executor so…)