Fork me on GitHub
#clojure-uk
<
2017-09-21
>
thomas07:09:50

moin moin morning

thomas07:09:24

@mccraigmccraig considering you posted that very late at night I suspect you failed šŸ˜‰

mccraigmccraig07:09:41

yep @thomas suddenly there were macros everywhere, and i was having to determine whether the macro environment was for clj or cljs compilation

mccraigmccraig07:09:26

fortunately the schema guys have been there before me, otherwise it would have been a much later night https://github.com/plumatic/schema/blob/master/src/clj/schema/macros.clj#L21

reborg07:09:53

Is there a real good morning? Shall we agree on UTC? ah ah šŸ™‚

mccraigmccraig07:09:01

i think it's all UGT here @reborg

reborg07:09:06

yeah, that's the way it should be. Some morning trolling UTC

mccraigmccraig07:09:22

it should really be UTG though, to properly appease the french, shouldn't it ?

otfrom08:09:28

UTS (universel temps salutation)

thomas09:09:15

tres bien bruce

jonpither10:09:27

Morning (I get to say it twice, from different continents)

jonpither10:09:37

Yup. Quick visit to the wharf then home

maleghast13:09:59

ā€˜Ello Allā€¦

maleghast13:09:11

Hi @jonpither - welcome back to Blighty

maleghast13:09:31

I am about to disappear again - school run - but will be about later.

conan16:09:48

Hullo. Anybody got a favourite cron library in clojure?

dominicm17:09:34

juxt/tick (I'm biased)

maleghast18:09:25

raises eyebrow

maleghast18:09:55

I was wondering if there was a cron-esque library kicking around that people recommendā€¦ Thanks @conan and @dominicm

dominicm19:09:08

Watch out for anything that relies on go loops to do scheduling

maleghast19:09:50

Anyone got any ideas about this: I am ingesting a CSV file, before I put the data into the SQL table it is going to live in I am converting values from their string representation to numbers Ć  la (Double/parseDouble ā€œ25ā€). Unfortunately the fields in question can__ be empty strings, and if they are empty I need to not have a NumberFormat errorā€¦ Is there a Clojuric / good way to handle this that anyone else has had in the past and that they can share?

maleghast19:09:17

Moreover the field being empty is an important distinction from say ā€œ0ā€ and I want the field to show a NULL in the SQL db, not an empty string or a ā€œplaceholderā€

dominicm19:09:43

@maleghast (some-> "25" (Double/parseDouble))

dominicm19:09:13

It's nil punning to the max

maleghast19:09:33

Hmmm

user> (some-> "" (Double/parseDouble))
java.lang.NumberFormatException: empty String

maleghast19:09:14

It seems to have the same issue

mccraigmccraig19:09:56

put a not-empty in there after the value @maleghast

dominicm19:09:10

@maleghast oops, I thought they were nil on emptiness

maleghast19:09:38

@mccraigmccraig Thx šŸ™‚ @dominicm - Nope, when you consume a CSV with clojure-csv EVERY FIELD is a string, even the empty ones.

dominicm19:09:18

I mean, if you want some other approaches: 1. Do the try/catch, nothing un-clojure about it 2. https://github.com/aphyr/dom-top is quite interesting around errors-as-values

mccraigmccraig19:09:12

letr from dom-top looks nice

mccraigmccraig19:09:43

i use the shortcut let style all the time with a promise monad, but that would be slow for cpu heavy sync ops... letr looks good for that case

maleghast19:09:05

@dominicm - Thanks I will certainly consider both of those options, but this has done a perfect job for what I need in this instance.

chrisjd21:09:17

Out of curiosity, what do people here use to plan features to implement in your projects? I'm currently using Trello as a kanban board, but right now I only have an hour or so each night to dev on my own pieces - so not really got a good feel for how it works for someone doing this hours each day. The only other alternative I'm aware of is using Jira with some variation of kanban/scrum/etc.

yogidevbear21:09:21

http://Waffle.io and github tickets make a good match

seancorfield21:09:35

@chrisjd We're wall-to-wall JIRA at work with some projects using Kanban and some using Scrum (usually maintenance vs new build workflows). For my GitHub stuff I use http://waffle.io which is Kanban-ish.

dominicm21:09:55

We're using github projects right now, but to be honest, as I see things get out of sync, I more and more wish for waffle's automation capabilities

chrisjd22:09:12

Thanks, havenā€™t heard of waffle before!

conan23:09:53

@chrisjd clubhouse is ace and is Clojure