This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-11-14
Channels
- # beginners (33)
- # boot (38)
- # clara (21)
- # cljs-dev (1)
- # cljsjs (2)
- # cljsrn (12)
- # clojure (230)
- # clojure-argentina (1)
- # clojure-brasil (3)
- # clojure-dusseldorf (4)
- # clojure-france (9)
- # clojure-italy (1)
- # clojure-russia (123)
- # clojure-spec (46)
- # clojure-turkiye (1)
- # clojure-uk (60)
- # clojurescript (83)
- # core-async (6)
- # cursive (10)
- # datascript (19)
- # datomic (28)
- # defnpodcast (1)
- # emacs (7)
- # figwheel (7)
- # fulcro (29)
- # leiningen (29)
- # lumo (9)
- # off-topic (14)
- # om (1)
- # onyx (25)
- # pedestal (1)
- # protorepl (3)
- # re-frame (10)
- # reagent (41)
- # ring-swagger (11)
- # shadow-cljs (10)
- # testing (5)
- # unrepl (3)
- # vim (3)
I don't see a reason why it wouldn't work, but I don't recommend it
two reasons: I feel that component is overengineered for frontend use, and ClojureScript is inherently async (you need to build up state as data comes in)
I think it imposes the wrong structure on an async app
@pesterhazy thanks for the feedback. I dont have much frontend experience, which is why I am asking. However when I see the current template my skin shivers from the spaguetti I see in a near future 😕
IMO better to build up some spaghetti, then refactor
you have no way of knowing what exactly you'll need - only the path your development takes you can tell
chances of guessing the right abstraction up front are not great
based on that argument the opposite is also true 😉. I mean the current templates already have an abstraction up front. https://clojurians.slack.com/archives/C0E1SN0NM/p1510665326000061
i made an app-context builder which is async and cljs compatible @pesterhazy @carocad https://github.com/employeerepublic/deferst
(i only made it cljs compatible recently though, so it hasn't seen heavy cljs use yet - it's had very heavy clj use and will be getting a lot of cljs use soon)
@mccraigmccraig thanks for the recommendation. I will check it out