Re:The Re-Frame Guide: Front-End Architecture in Clojure
by binora on Saturday July 08, 2017 @03:43PM
(#14726884)
Been using re-frame in production since 2 months. Lost some hair in the first 3 days ( had to make some db structure decisions based on requirements) but after that it's been amazing and adding new features has become really trivial.
[ Parent
| on HN ]
Re:The Re-Frame Guide: Front-End Architecture in Clojure
by jasonkostempski on Saturday July 08, 2017 @08:15PM
(#14727792)
I know nothing about Re-Frame but something seems not quite right about a front-end framework having an affect on database structure.
Re:The Re-Frame Guide: Front-End Architecture in Clojure
by sooheon on Saturday July 08, 2017 @10:06PM
(#14728032)
Not a bad intuition to have. But with some reading you can learn that "db" refers to the in-app, in memory (or local storage) database, which is designed to hold all your application state, which allows it to be clearly transacted against and referenced from anywhere in your app.
You start writing pure functions which take the current "app-db" as an argument, and return what the "app-db" should be. If React is `v=f(s)` (view is a function of state), re-frame is `s=f(s,e)` (state is a function of the previous state, and events)
Re:The Re-Frame Guide: Front-End Architecture in Clojure
by bpicolo on Sunday July 09, 2017 @12:18AM
(#14728341)
re-frame still has v=f(s). It just has more than just a view layer.
Re:The Re-Frame Guide: Front-End Architecture in Clojure
by owebmaster on Saturday July 08, 2017 @09:36PM
(#14727976)
You know nothing about software architecture if you think that you can't optimize a software performance/responsiveness changing the way you store/normalize/retrieve data.
Re:The Re-Frame Guide: Front-End Architecture in Clojure
by jasonkostempski on Sunday July 09, 2017 @01:05PM
(#14730656)
I know that I wouldn't want the choice of a fly-by-night front-end framework influencing how that's done with a back-end database. But, looks like I made the wrong assumption about the db structure that was influenced, I guess we have front-end databases now, which is an interesting idea I will be exploring furtherer.