These are chat archives for jdubray/sam

7th
Mar 2018
Jean-Jacques Dubray
@jdubray
Mar 07 2018 14:23
@devinivy the examples provided by Dan in his talk where he introduced futureFetcher are uninspiring. Calling an API from within a React component? what do you think of that?
devin ivy
@devinivy
Mar 07 2018 14:47
i think it will help a lot of people create less buggy application prototypes :P overall i am not a huge fan, but it is interesting. i'm sure folks will find some novel uses. i was simply noting that there may be more accurate information out there than that article.
Jean-Jacques Dubray
@jdubray
Mar 07 2018 14:50
uh? I am surprised the first sentenced on the React web site states:
image.png
On another note, I have released the stateful component implementation I was talking earlier. I have not had time to complete the rendering of the stateful component, but the SAM implementation is complete. It illustrate how you can fold the state of a component in the model and still retain a functional HTML rendering.
Here is the component implementation, which does not rely on any particular knowledge of the application.
devin ivy
@devinivy
Mar 07 2018 14:55
will check it out!
Jean-Jacques Dubray
@jdubray
Mar 07 2018 14:56
My goal was to be in the position to write something like this:
                <div class="container">
                    <div class="row">
                        <div class="col-lg-4 col-lg-offset-2 col-md-5 col-md-offset-1">
                            ${F(renderers['datepicker1'])(components.model['datepicker1'])}
                        </div>
                        <div class="col-lg-4 col-lg-offset-2 col-md-5 col-md-offset-1">
                            ${F(renderers['datepicker2'])(components.model['datepicker2'])}
                        </div>
                    </div>
                </div>
which renders two separate instances of the component.
Paolo Furini
@pfurini
Mar 07 2018 17:22
anyone here has prior experience with Firebase? I'm looking for a complete backend platform (auth, permissions, notifications, real-time syncs, file storage) mostly to build fast MVPs.. but two things scare me of Firebase: JSON document storage (I prefer a relational backend), and vendor lock-in (especially data lock-in, primarily the stored files). But I'm having a hard time in finding an alternative that does not rely on JSON based storage and that has a full storage API (I need to store a large amount of images)..
devin ivy
@devinivy
Mar 07 2018 18:41
@pfurini i haven't used it, but hoodie is an interesting alternative i've peeked at before
Paolo Furini
@pfurini
Mar 07 2018 18:48
@devinivy looked through it, but it seems rather immature and a little hacky in its current form.. and it lacks so much features compared to major players, that I fear it could take the same amount of time extending it than writing something from scratch
devin ivy
@devinivy
Mar 07 2018 18:52
yikes, it has been around for years!
i was hoping it would be fairly mature by now, but like i said i haven't ever given it a whirl.
Jean-Jacques Dubray
@jdubray
Mar 07 2018 18:52
@pfurini yes, I tried it, I wanted to build a SAM sample with it, but it's not ready for prod
devin ivy
@devinivy
Mar 07 2018 18:52
you might be looking at meteor then!
Paolo Furini
@pfurini
Mar 07 2018 18:54
@devinivy nope! no more full stack super opinionated frameworks for me! ;)
@jdubray well, that's shocking to hear! Expensive? sure.. Vendor lock-in? even more sure.. but not production ready?? Never touched a line of code with it, but it looks like firebase is used in a ton of products out there (not big ones, cause I know it's rather limiting, but medium ones I think so).. Which pain points have you experienced, if I may ask?
devin ivy
@devinivy
Mar 07 2018 19:00
@pfurini how do you plan to get "a complete backend platform (auth, permissions, notifications, real-time syncs, file storage)" without using some framework or vendor?
those goals sound a little bit at odds to me—i don't know if such a thing can exist out there!
Paolo Furini
@pfurini
Mar 07 2018 19:06
@devinivy meteor is a full stack framework, going from backend to web frontend.. firebase is a collection of APIs, built to be consumed either from client applications (web, desktop or mobile) and by the server (with a lot of restrictions, though)
I'm researching a viable alternative to firebase, that can potentially fill the same gaps (what I've listed are actually features provided by firebase) but built with open technologies and that could be hosted on premise or hosted
Paolo Furini
@pfurini
Mar 07 2018 19:12
Up until now I've found: https://github.com/kuzzleio/kuzzle (but misses file upload features, and it seems not straightforward to implement due to its architecture) and https://kinto.readthedocs.io/en/latest/index.html (it has basic file attachment capability, but it does not support large files uploading, due to not supporting chunked uploads)
Fred Daoud
@foxdonut
Mar 07 2018 19:15
@jdubray I tried to look at your code but I get go is not defined
Jean-Jacques Dubray
@jdubray
Mar 07 2018 20:53
@pfurini I was talking about hoodie!
@foxdonut sorry the sample is not complete, I don't have time now to complete it.
I should have mentioned that.
Paolo Furini
@pfurini
Mar 07 2018 20:59

@jdubray

I was talking about hoodie!

aah, I thought you were referring to my orig question re firebase! :P

Fred Daoud
@foxdonut
Mar 07 2018 21:08
@jdubray understood, no worries.
Jean-Jacques Dubray
@jdubray
Mar 07 2018 21:26
However, the SAM part is complete.
I do see value in folding the component state, my syntax may not be the prettiest but the alternative of using true stateful "components" breaks the functional HTML paradigm.
Fred Daoud
@foxdonut
Mar 07 2018 21:42
@jdubray sounds good, looking forward to seeing the completed example.
Paolo Furini
@pfurini
Mar 07 2018 22:18
another interesting alternative to Firebase or Parse: https://github.com/CloudBoost/cloudboost
it is possible to run it on premise, for production use one should build own mongodb and redis clusters (or use managed ones).. they also offer a managed version, but for MVPs and small products it's overpriced, I can build a reliable cluster using kontena and docker at a fraction of that price