This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-04-10
Channels
- # beginners (61)
- # boot (264)
- # cider (125)
- # cljs-dev (3)
- # clojure (118)
- # clojure-gamedev (3)
- # clojure-greece (1)
- # clojure-italy (1)
- # clojure-nl (2)
- # clojure-poland (3)
- # clojure-russia (38)
- # clojure-spain (2)
- # clojure-spec (17)
- # clojure-taiwan (1)
- # clojure-uk (42)
- # clojurescript (118)
- # clojutre (5)
- # cursive (24)
- # datomic (22)
- # emacs (3)
- # events (2)
- # figwheel (19)
- # funcool (1)
- # jobs-discuss (224)
- # jobs-rus (1)
- # klipse (14)
- # luminus (1)
- # lumo (49)
- # off-topic (51)
- # om (34)
- # pedestal (1)
- # perun (1)
- # planck (93)
- # powderkeg (1)
- # re-frame (15)
- # ring (4)
- # rum (9)
- # slack-help (3)
- # spacemacs (2)
- # specter (13)
- # uncomplicate (1)
- # unrepl (22)
- # untangled (10)
- # yada (36)
Morning from a sunny Newcastle Central Station
Oh no 😞 that moment you realise it's not Sunday, but actually Monday
Morning 😄
@agile_geek have a pleasant journey! 🚋
@agile_geek are you sure it is a 🚂 ? I didn't go for 🚆 as I was pretty sure it isn't that.
random function of the day
clojure.core/println-str
([& xs])
println to a string, returning it
@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
@dominicm yes prn-str
does exist
I use pr-str
and prn-str
a lot but never used println-str
which looks like it's synonymous with prn-str
Differences between prn-str
and println-str
are that println-str
doesn't escape characters and prn-str
forces a flush
well, the same differences between prn and println apply, (prn "foo")
prints "foo"
, (println "foo")
prints foo
Yeah they all use pr
under the covers but some with *print-readably*
set to nil
(for the print
family)
I prefere clojure-csv but can’t remember why. there is also https://github.com/metasoarous/semantic-csv for higher level stuff
Might be more powerful / flexible than I need right now, but useful to know about...
@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...
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.
I am just creating a project to have a go with them, but I have a lunch meeting to dash off to as well...
@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!
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?
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.
@seancorfield cheers, I’ve been meaning to look at boot but haven’t had chance yet