These are chat archives for jdubray/sam

12th
Jul 2016
Jean-Jacques Dubray
@jdubray
Jul 12 2016 00:09
I would argue it"s part of the application state, if you need that context to be accessed. If you look at the paxos protocol it would create some unwanted coupling between proposers and learners when the application state is distributed.
The next stage in UX is to be untethered from a single display, we have to start thinking what is the architecture of such system.
Jean-Jacques Dubray
@jdubray
Jul 12 2016 00:25
I'd like to add that tweaking semantics is a game that you are guaranteed to lose. Especially when it is based on a particular use case. Now, you could go back to TLA+ and see if I missed something. (which is likely), but I would advise aligning the way possible with TLA+ and paxos.
Vincent Jo
@chiwoojo
Jul 12 2016 02:53
@jdubray umm I see, that kind of makes sense that filtering or a list of filtered items doesn't need to belong to the model; I'll try to put it in the state function like my 'animate' function I think that's a good idea. I wonder though if there would be situation where I would need the filtered list to be stored in the model.. Umm
today I looked into using webpack to use css-modules to start applying styles to my application; should be fun this week :)
Vincent Jo
@chiwoojo
Jul 12 2016 03:02
I think I also want to read part of TLA+ this week, I went on their website and they had the the TLA+ book and the TLA+ hyper book, which do you recommend? Seems really cool to learn about
Jean-Jacques Dubray
@jdubray
Jul 12 2016 03:39
there is no hard rule, it's just, to answer your question, it feels more like a state representation than mutation, but that's border line. I tend to believe the model should be as small as possible.
Jean-Jacques Dubray
@jdubray
Jul 12 2016 03:44
@chiwoojo you could start with the article from Dr Lamport called Computation and State Machine
There is also a book called "specifying systems" from 2008. The subtitle is The TLA+ language for it he and SW engineers
Lari Hotari
@lhotari
Jul 12 2016 06:32
@chiwoojo @jdubray regarding TLA+, you might find this interesting: https://medium.com/salesforce-open-source/runway-intro-dc0d9578e248#.4rlxwsil1 . There is an analysis of Runway and comparison to TLA+ on the tlaplus mailing list, written by Andrew Helwar: https://groups.google.com/forum/m/#!topic/tlaplus/5Xd8kv288jE .
Jean-Jacques Dubray
@jdubray
Jul 12 2016 11:58
@lhotari thank you for the pointer, it indeed looks very close to Paxos and TLA+. I had not heard of Runway before. What do you think about adopting a programming style aligned with Paxos and TLA+? What do you think about SAM?
Vincent Jo
@chiwoojo
Jul 12 2016 16:49
thanks guys will take a look at the articles
I spent 3 hours this morning trying to get webpack to work with my SAM application that uses simple html, css, js
I still can't get the right configuration.. this is such bs
I'm trying to modularize my code and to use css loader... but man Webpack takes forever to get into
Jean-Jacques Dubray
@jdubray
Jul 12 2016 16:51
:-) that's why I don't use WebPack.
Vincent Jo
@chiwoojo
Jul 12 2016 16:51
and the debugging is crap because everything is bundled into one file
I can't use chrome easily to debug
I created sourcemap but that don't work..
I think I"m going to ditch it
what a waste of my time...
Jean-Jacques Dubray
@jdubray
Jul 12 2016 16:52
I was looking at the PRPL pattern yesterday and I was thinking that SAM is a great foundation to use that pattern because of it's "step" approach you can easily predict what you will need at every step including the initial one
Vincent Jo
@chiwoojo
Jul 12 2016 16:53
initeresting..
Jean-Jacques Dubray
@jdubray
Jul 12 2016 16:53
@chiwoojo that's what I hear from everyone using WebPack. In general you need a dedicated resource in your team. It's hard to have the whole team know about it.
Vincent Jo
@chiwoojo
Jul 12 2016 16:53
is that the presentation video?
yea, webpack is a full time job...
Jean-Jacques Dubray
@jdubray
Jul 12 2016 16:53
No PRPL is from "progressive" apps (Google)
Vincent Jo
@chiwoojo
Jul 12 2016 16:54
Is there an article or video about that?
Vincent Jo
@chiwoojo
Jul 12 2016 16:54
k
lol thx
Jean-Jacques Dubray
@jdubray
Jul 12 2016 16:54
IMHO, much easier than WebPack.
This would be another form of "state representation"
Vincent Jo
@chiwoojo
Jul 12 2016 16:55
umm okay, I'm gonna read this a little bit to see what it's about seems interesting
I would love a webpack substitute
Vincent Jo
@chiwoojo
Jul 12 2016 17:01
umm interesting.. I briefly went over it... a lot of things I don't understand but the idea seems like (also from what you said) you can push a state representation to a shell per route
is that about right?
Jean-Jacques Dubray
@jdubray
Jul 12 2016 17:03
yes, that preliminary, but that's what I see
Jean-Jacques Dubray
@jdubray
Jul 12 2016 17:45
@chiwoojo I also wanted to make sure you know about less http://lesscss.org/
Vincent Jo
@chiwoojo
Jul 12 2016 20:40
I've used sass before which is similar to less, but what I really want to do is inline styles using Css modules.. I think that would be awesome (glenmaddern.com/articles/css-modules)
Gosh I just spend another 40 mins trying to figure out webpack... I think I'm getting into the mindset of 'I want to suffer' developer mindset lol... I gotta ditch this and try something else...