These are chat archives for jdubray/sam
We are on the same page, the last time I felt such a major step forward was when I discovered NeXTStep in 1990.
That's the most important aspect:
Personally I like how my code is shaping up currently with this stack and it feels really good to build upon.
I still would to like to see more guiding principles on where to plug APIs with React (and ng2).
It seems like you guys are having a great conversation... I'm excited to read it thoroughly when I have time later, but JJ's quote stuck out to me when I was skimming/reading:
The biggest lesson behind TLA+ (I don't want to say SAM, because SAM is merely using TLA+) is that factoring is everything, when you get the factoring of your code wrong you enter a maze that you will most likely never exit.
pre-1.0 on this library i wrote for using stateful forms with redux/react, would love input. used SAM-y ideas when designing it. in particular, it assumes there's a reducer out there that's actually accept/rejecting values rather than getting bossed-around by actions. it uses this to detect invalid form fields for free (if the value in the form doesn't match the value in app-state, you have an invalid form field). we talked about this pattern the other day in here, and it's made my life a lot easier recently.
const dateComponent1 = createComponent(nestComponent(date(Action), "store.date1")); const dateComponent2 = createComponent(nestComponent(date(Action), "store.date2"));
save()that value correctly when it's time to do so.