Fork me on GitHub
#clojure-uk
<
2017-04-10
>
agile_geek05:04:04

Morning from a sunny Newcastle Central Station

yogidevbear06:04:12

Oh no 😞 that moment you realise it's not Sunday, but actually Monday

yogidevbear06:04:32

Morning 😄

thomas07:04:30

@agile_geek have a pleasant journey! 🚋

thomas07:04:49

@agile_geek are you sure it is a 🚂 ? I didn't go for 🚆 as I was pretty sure it isn't that.

Rachel Westmacott07:04:49

random function of the day

clojure.core/println-str
([& xs])
  println to a string, returning it

dominicm07:04:29

Interesting. A guess a combo of with-out-str and println

dominicm07:04:37

Does prn-str exist?

agile_geek07:04:27

@thomas It's the Flying Scotsman so it should be a 🚂 . Disappointingly I think it's actually an Intercity 225 even I'm not geeky enough to know the serial number

agile_geek07:04:18

@dominicm yes prn-str does exist

dominicm07:04:39

Lucky guess 😁

agile_geek07:04:56

I use pr-str and prn-str a lot but never used println-str which looks like it's synonymous with prn-str

agile_geek08:04:41

Differences between prn-str and println-str are that println-str doesn't escape characters and prn-str forces a flush

dominicm09:04:02

well, the same differences between prn and println apply, (prn "foo") prints "foo", (println "foo") prints foo

agile_geek09:04:31

Yeah they all use pr under the covers but some with *print-readably* set to nil (for the print family)

maleghast10:04:25

Morning All...

maleghast10:04:07

Who's going to be at uSwitch this evening..?

maleghast10:04:50

Also, does anyone have a strong opinion on data.csv versus clojure-csv ?

maleghast10:04:19

oh and semantic-csv

minimal10:04:20

I prefere clojure-csv but can’t remember why. there is also https://github.com/metasoarous/semantic-csv for higher level stuff

maleghast10:04:44

Yeah, I just found that one after asking about the other two...

maleghast10:04:21

Might be more powerful / flexible than I need right now, but useful to know about...

minimal10:04:10

Yeah i’ve never used it but probably have adhoc reimplemented some of what it does

maleghast10:04:16

I will have "dance" with clojure-csv and see how I get on - thanks! 🙂

dominicm11:04:35

We use data.csv, it's a small lib 😛

dominicm11:04:14

Benching it now

dominicm11:04:17

pretty good

maleghast11:04:20

@dominicm - OK, I will have a go with that too... Honestly for my needs right now I don't need bells and whistles, so if data.csv is fast and accurate then I will go with that...

dominicm11:04:30

either is good

korny11:04:24

I’m trying to remember - I know I used semantic-csv as a wrapper, and data.csv for the underlying stuff. And I know I switched from clojure-csv - but I can’t remember the reasons.

maleghast11:04:41

I am just creating a project to have a go with them, but I have a lunch meeting to dash off to as well...

maleghast11:04:46

It's all go today...

maleghast11:04:47

@korny - Cheers! I think that I will try data.csv and clojure-csv out, and I don't need the extra "sugar" that semantic-csv offers right now__ but I am going to back-pocket it for when I do!

paulspencerwilliams18:04:12

So I’m wondering whether there’s any idioms using Leiningen / Clojure similar to Maven’s *Test and *IT class suffixes to denote unit and integration tests?

seancorfield19:04:08

Not with Leiningen that I'm aware of but with Boot you can specify wild cards for namespaces to include/exclude on a given run.

paulspencerwilliams19:04:47

@seancorfield cheers, I’ve been meaning to look at boot but haven’t had chance yet