Fork me on GitHub
#clojure-uk
<
2018-06-06
>
otfrom08:06:21

travelling from sunny Dundee to stormy London today. I'm packing my raincoat and a lightning rod

4
agile_geek08:06:15

Can I ask the Clojure community to slow down a bit…been away from professional Clojure development for 8-9 months and everything around tooling has changed (especially around Spec).

😂 8
otfrom08:06:28

what bits?

agile_geek08:06:15

Just seems like a lot of new stuff around Spec

guy08:06:23

have u seen orchestra yet?

agile_geek08:06:51

Yeah, one of many I’m referring to.

guy08:06:55

cool cool

guy08:06:59

defo worth checking out

agile_geek08:06:29

@guy just not enough hours in the day!

💯 4
guy08:06:43

i know that feeling haaha!

agile_geek10:06:42

Yeah, had a brief look at that at weekend.

alexlynham08:06:38

morning morning

dominicm09:06:34

@agile_geek the great thing about clojure is that schema is pretty much still everywhere, and there's no reason at all to use spec

💯 4
mccraigmccraig09:06:41

+1 - i can't see us moving to spec anytime soon... we've got masses of schema and no reason to move

danm09:06:51

I do like this Slack, but I wish the people on #clojure on Freenode IRC would move over here so I don't have 2 windows alerting at me...

dominicm09:06:36

but muh open source, and muh clients, and muh stuff

mccraigmccraig09:06:51

IRC is so broken it pains me every time i use it, so i just avoid it these days

maleghast09:06:18

Morning all...

maleghast09:06:26

I miss IRC...

3Jane09:06:38

Contrariwise, I bet you early in Facebook history someone somewhere said “I wish people stopped publishing stupid RSS feeds and moved to Facebook pages already.”

dominicm09:06:08

ircv3 might be huge, right 😄

dominicm09:06:16

I still think matrix is the future though.

mccraigmccraig09:06:41

@maleghast i don't miss netsplits or lack of any solid notion of identity or lack of coherent notifications

bronsa09:06:33

freenode has very few netsplits and nickserv

maleghast09:06:40

@mccraigmccraig - I agree, I don't miss the things you mention, though I felt nickserv was a "good enough" identity metric for most of the time.

maleghast09:06:34

I miss IRC mostly because Slack is just "IRC if Apple did it", and it irks me that to have the Slack level of quality I need to pay for it, in the end...

maleghast09:06:10

Also IRC kept out the non-technical dead-weight in the companies where I worked where we used it.

mccraigmccraig09:06:50

haha, "IRC is too complicated for dumb users" is perhaps the strongest argument in its favour

dominicm09:06:05

https://www.irccloud.com/ is supposed to be very good

mccraigmccraig09:06:57

i used to use irccloud - it definitely helped

maleghast09:06:54

I am going to have to check that out when I have some more time on my hands - the synopsis sounds lovely!

dominicm09:06:18

Hey, I found myself, the sole signal user

maleghast09:06:51

I am a very regular user of Signal - it's a great product

dominicm09:06:39

Except when doing a video call I can't switch to the rear camera.

maleghast09:06:24

Oh I never do video calls these days 'cos of satellite broadband at home, I've gotten used to going back to just voice.

maleghast09:06:33

(i.e. even when bandwidth is not an issue)

dominicm09:06:00

it's pretty rare for me tbh, just when Katie is away

maleghast09:06:24

Anyone in here got a quick fix for how to make two (identical) select boxes both update if one is changed in a Reagent app..? (I've just noticed that one is not changing..)

maleghast09:06:48

(I have asked in #reagent)

maleghast09:06:57

I get__ that Reagent is being smart and only updating the bit of the view that it thinks it needs to, and most of the time this Reagent / React magic is great, but in this one regard...

maleghast10:06:41

It occurs to me that I could__ give the two select controls very specific IDs (different to one another, clearly), and then have my 'change view' function force the value change on the other, un manipulated select, but that seems like a workaround, you know like I am doing something icky...

mccraigmccraig10:06:43

@maleghast by "identical" do you mean that the two select-boxes have the same state behind them ?

maleghast10:06:15

Yeah, they are select boxes that have the same options and should show the same state as one another

maleghast10:06:43

(please bear in mind that I have already pointed out that this is shitty design, but the "designer" is insisting that we have this setup)

mccraigmccraig10:06:21

so if both components are observing the same ratom reagent should update both components when the ratom is changed

maleghast10:06:22

changing one should force a view change (and that works) but in the new view the box that was not clicked on does not show the new value.

maleghast10:06:33

The view(s) in question are (still) just one big component, so they are both "watching" a single r/atom called app-state

maleghast10:06:47

that r/atom is being changed

maleghast10:06:01

however the un-clicked select is not being re-drawn

maleghast10:06:14

the clicked one is being redrawn

mccraigmccraig10:06:48

well i'm not sure what's going on in your case, but you shouldn't have to do anything special to get reagent to update the un-clicked select - as long as the ratom was dereferenced during the un-clicked select initial render then reagent should know to re-render it when the ratom changes

maleghast10:06:25

Yeah, that's what I thought...

mccraigmccraig10:06:03

it's quite unlikely to be a reagent bug - you are probably doing something somewhere which means that reagent isn't tracking the ratom derefs for your selects

maleghast10:06:08

So changing the value on the select runs a function that forces accountant to navigate. That is done and the changing of the URL and the routing changes the value of the view in the app-state and indeed also the URL params in the app-state.

maleghast10:06:35

Yeah, I am sure it's me, not Reagent 🙂

mccraigmccraig10:06:36

oh, urls as repositories of app-state... i remember that... i imagine you have a logical race-condition somewhere

maleghast10:06:58

Well, in a shock development I have got the designer to relinquish the second select - problem solved (for now!).

maleghast10:06:52

I need meaningful URLs, as the Product Lead has made it clear that the SPA aside it has to be possible to deep-link directly to a particular page (once logged in)

maleghast10:06:33

As such I have Bidi Routes and Accountant managing push-states and so forth, so that it is possible to route directly to a specific view.

maleghast10:06:28

FWIW, anything that is a parameter in the URL is parsed out and added to the app-state atom, so I am not swerving around the idea of a single app-state and using state from the URL as well as from the app-state atom, I ONLY use the app-state atom, but I do have code that pushes "things" from the URL into the app-state...