Pure-shaming. Verb. The act of pointing out that someone’s get/render life-cycle isn’t pure and make them feel bad about it.
-
-
A type system would be nicer. I prefer to be shamed by the machines.
-
Have you considered a pure-subset of typed JS? Thanks to Mark Miller, it's pretty well defined.
-
It's only a small portion of React that defines pure functions so it seems overkill, since we want to support side-effects in many places. Brendan had a neat idea to use write barriers to intercept effects in certain contexts. But I think static would be nicer.
-
I'm following the work in OCaml to track effects in the type system. So we could say that only pure or certain effects are ok. Hopefully that will trickle into JS type systems too.
-
TBF, I do think this is the worst aspect of not separating templates out into its own restrictive language. People don't have a good intuition about what a side-effect is. Leads to mistakes.
-
You got it!
End of conversation
New conversation -
-
-
It’s good when
@sebmarkbage does it, but not good when someone else does it to@sebmarkbage - 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
