clojure-uk

A place for people in the UK, near the UK, visiting the UK, planning to visit the UK or just vaguely interested to randomly chat about things (often vi and emacs, occasionally clojure). More general the #ldnclj
dharrigan 2020-10-20T06:10:16.216900Z

Good Morning!

dominicm 2020-10-20T07:19:27.217100Z

Morning ๐ŸŒ„

codeasone 2020-10-20T07:22:52.217300Z

Morning

alexlynham 2020-10-20T07:24:35.217400Z

morning

2020-10-20T07:41:06.218500Z

Arnold Clark certainly did use it quite a lot, though I think they may have moved away from it now

thomas 2020-10-20T09:01:45.218900Z

mogge

djm 2020-10-20T09:08:27.219100Z

๐Ÿ‘‹

alexlynham 2020-10-20T09:11:42.219200Z

morning

alexlynham 2020-10-20T09:11:49.219300Z

oh wait i already morning'd

mccraigmccraig 2020-10-20T09:41:32.219500Z

mรฅning

mccraigmccraig 2020-10-20T09:42:16.220Z

UTG protocol permits multiple mornings i think @alex.lynham

alexlynham 2020-10-20T09:43:03.220100Z

phew

2020-10-20T09:44:13.220300Z

morning morning

Mike C 2020-10-20T10:08:14.220500Z

morning

thomas 2020-10-20T11:05:34.221Z

UTG is idempotent! the RFC says so! (I just decided)

2020-10-20T11:15:22.222200Z

idempotent across what kind of timescales? I typically wish a good people a Good Morrow around 4 times a year; Does that mean I have achieved full coverage?

dominicm 2020-10-20T11:25:58.222700Z

Is the second one ignored?

thomas 2020-10-20T11:50:06.223400Z

you can call it as often as you want and it always has the same result.

dominicm 2020-10-20T11:55:46.224800Z

That's not strictly true. Saying morning at 8:24am triggers different responses from saying it at 10:11am.

2020-10-20T12:08:06.225Z

React question;

2020-10-20T12:09:02.225100Z

I've got a table component that does an http fetch and then formats the results; I've just realised that I need to access these results from a new component on the same page

2020-10-20T12:09:27.225300Z

should I fillet out the http/fetch into a third invisable component? I'm not sure how well that would work in React:

2020-10-20T12:10:33.226Z

React feels a bit more like WIN32 api, everything has to be a window

alexlynham 2020-10-20T12:10:49.226200Z

i don't suppose you have redux or something available where there's a state atom?

1๐Ÿ‘
2020-10-20T12:11:22.226400Z

no I don't. That would be the proper solution though, wouldn't it

2020-10-20T12:12:24.226600Z

probably overkill at this point though; I might just bump the State Variable into the topmost view and hope for the best

2020-10-20T12:12:53.227Z

and ponder introducing redux in the medium term

thomas 2020-10-20T12:34:00.227300Z

Different response might still have the same result.

thomas 2020-10-20T12:34:16.227500Z

(I'm just making this up as we go along)

alexlynham 2020-10-20T12:35:19.227700Z

idk, i think react is fundamentally quite flawed WRT state mgmt and redux is a better model

alexlynham 2020-10-20T12:35:22.227900Z

plus better devtools

danielneal 2020-10-20T20:14:54.230300Z

you can put the state variable in the topmost view and pass it down using react context which avoids having to pass it through intermediate components

danielneal 2020-10-20T20:15:28.231300Z

recoiljs is something modern react ish in this space that might be interesting to look at too if you're contemplating redux