This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-09-16
Channels
- # alda (1)
- # aws-lambda (1)
- # bangalore-clj (1)
- # beginners (70)
- # boot (24)
- # cider (1)
- # cljs-dev (167)
- # cljsjs (8)
- # cljsrn (17)
- # clojure (224)
- # clojure-android (7)
- # clojure-austin (8)
- # clojure-russia (17)
- # clojure-spec (120)
- # clojure-uk (46)
- # clojurescript (68)
- # community-development (198)
- # conf-proposals (1)
- # core-async (7)
- # cursive (6)
- # datomic (27)
- # dirac (19)
- # events (9)
- # hoplon (2)
- # jobs (1)
- # luminus (9)
- # off-topic (1)
- # om (281)
- # om-next (5)
- # onyx (50)
- # pedestal (1)
- # re-frame (19)
- # reagent (11)
- # ring-swagger (14)
- # slack-help (2)
- # spacemacs (1)
- # untangled (72)
- # yada (30)
@agile_geek @thomas Congrats Thomas, I continue to be mortified by what’s going on back at home - watching from over here in Manila it’s like watching a slow-motion train wreck… 😞
@martintrojer I don’t have a Euro bank account, but would it be a good idea to go to USD, do you think?
@maleghast buy gold
and thank you @maleghast
@martintrojer I am made nervous by @kevin42’s point, which I have also heard.
My savings are still in AUD, thankfully, but I’ll be needing to transfer them here next year when we want to move houses.
Though I’m not sure I have any confidence in the Australian economy either - there’s no brexit-style madness there, just a lot of shortsighted governments and lack of any sort of investment in anything but digging fossil fuels out of the ground
Anyone got a favourite command-line parsing tool that isn’t tools.cli? My main use case is I want something that can take the same parameter multiple times, which just doesn’t fit the tools.cli model as far as I can tell.
e.g. I want to have something like my-prog -input foo.txt -category foo -input bar.txt -category bar -input baz.txt -category baz
Not sure that tools.cli lets you have multiple values for a key. I could do my-prog -inputs foo.txt,bar.txt
of course
I’m not sure it’s going to be very user-friendly to have to match the inputs positionally though. (Not that it’s going to be very user friendly anyway… :)
I’ll probably just write something quick and dirty - it should be pretty easy - just always keen to look for a library rather than reinventing the wheel
yeah - I’m thinking something that returns [ [:input “foo.txt”] [:category “foo”] [:input “bar.txt”] [:category “bar”] ]
and so on would be easy enough
ah, your not just after multiple entries for one param, but for params to kind of refer to each other
of course tools.cli is like it is, because that’s a GNU standard. Maybe I should look at how people recommend handling this sort of param while being GNU-standards compliant
(though post #brexit I should of course be ignoring standards inflicted on us by foreigners)
hmm, actually GNU allows it "Options may be supplied in any order, or appear multiple times. The interpretation is left up to the particular application program."
ah, you can do it with tools.cli, it’s just a bit obscure:
:assoc-fn A function that receives the current option map, the current
option :id, and the current parsed option value, and returns
a new option map.
This may be used to create non-idempotent options, like
setting a verbosity level by specifying an option multiple
times. ("-vvv" -> 3)
["-v" "--verbose"
:default 0
:assoc-fn (fn [m k _] (update-in m [k] inc))]
I’ll just have to mandate that for every :input there must be a :category -it’d be enough to validate that the total number of inputs and categories must match
My main interest was being able to specify multiple inputs - I’ve had that problem before, it’s good to know that there’s a mechanism other than just making them comma separated and parsing them by hand
Not this year 😞 A bit too close to our due date, and I’m out of leave / training leave already. Will be at XT16 though
man the xt16 hype is crazy
think about us speakers
I mean, who'll write my slides?
same as @korny here.. no EuroClojure this year (as I’ll be busy moving to my new and super exciting Clojure job, so it is worth missing it this time I reckon) but XT16 here we come!
I'm going to be there - I've managed to persuade my fiance she'd like a break in Bratislava, so going to do a couple of days euroclojure-ing and then a couple making up for the fact I've been antisocial...and probably come back to the hotel after a few glasses of wine!
Not been to a Clojure conference before so really looking forward to attending two in a row - and hopefully meet some of you