Fork me on GitHub
#clojure-uk
<
2019-01-28
>
thomas07:01:14

mogge ๐Ÿ˜ผ

yogidevbear07:01:24

Morning ๐Ÿ˜Š

practicalli-johnny12:01:57

Hello all, I am doing a little (1,000km) bicycle ride over 9 days in September for charity (Princes Trust). If I raise enough money I will take the challenge on a Brompton (fold up bike for commuters) rather than my nice carbon road bicycle. If you would like to support the Princes Trust (and my fitness), please consider donating on my charity page (charity donations also benefit your tax position too). https://uk.virginmoneygiving.com/jr0cket

๐Ÿ‘ 5
5
alexlynham13:01:07

is it even possible on a Brompton? ๐Ÿ˜ฑ

maleghast14:01:56

Nice going @jr0cket - I don't think you are in a lot of danger of having to do that on the Brompton, but if you do it will be an amazing upside for the Prince's Trust ๐Ÿ™‚

practicalli-johnny15:01:32

@alex.lynham there is only one way to find out if it's possible to do on a Brompton.... I have done 40km a day for several months riding to work. That was over pretty flat terrain though.

3Jane15:01:02

As long as you can weave your way around potholes in Cornwall, youโ€™ll be fine ๐Ÿ˜‰

Wes Hall16:01:12

Not to distract from @jr0cket's superhuman effort above, to which I have donated, and you should too... ๐Ÿ˜‰, but I have a question for the community here...

Wes Hall16:01:01

Does anybody have any interesting/relevant/happy/angry thoughts on component/mount/integrant/ignoring all this stuff and doing it yourself?

practicalli-johnny17:01:45

I like the relevant simplicity of mount, however, for more involved apps I lean more to integrant. I really like the configuration / data structure approach of integrant (and duct).

๐Ÿ‘ 5
Wes Hall17:01:20

I quite like integrant too, I guess I am just not sure if any particular library is, "winning" or indeed, if there is a thing to win. I am noticing a fair bit of support for component in things like figwheel, and I am really not certain if that's just the tide, and I should swim with it. Paradox of choice I guess.

mccraigmccraig17:01:15

@wesley.hall of the options you presented, i prefer integrant - but it's not async compatible (i.e. if a factory returns a promise of something and you want other things to depend on that something it doesn't help you), so i ended up rolling my own - https://github.com/employeerepublic/deferst

Wes Hall17:01:55

Interesting. Thank you @mccraigmccraig, taking a look now ๐Ÿ™‚

Wes Hall18:01:33

This whole idea of lazy system initialisation is an interesting one. I am finding it rather hard to shift the notion that once, (start!) (or equivalent) successfully returns without error, that you can assume your system has successfully started. I suppose this is the reason why the likes of integrant don't have support for async component factories rather than it being an oversight, but I could definitely be wrong on that. My day job has some CLJS/Node code in production. Node, of course, being famous for it's asynchronicity, I can definitely see that some native support for this could be quite useful. Hadn't consider it before though. Thanks for sharing.

mccraigmccraig18:01:44

@wesley.hall if it's async then start! will be returning a promise of a system (or core.async equiv), so you can assume that your system is ok once that promise has called its success callback &c

mccraigmccraig18:01:48

if there is an error then you can expect that to be reported through the promises's error callback

mccraigmccraig18:01:55

(although hopefully no-one actually uses callback chains explicitly, 'cos that will drive you mad)

mccraigmccraig18:01:00

@wesley.hall our clj backend is async, as is our cljs front-end - it's quite refreshing to use the same programming model throughout the system

Wes Hall20:01:11

Thanks @mccraigmccraig I will definitely have a closer look. Few things here that you'd now got me thinking about. Appreciate it.