This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
- # aleph (2)
- # announcements (7)
- # beginners (74)
- # clj-kondo (23)
- # cljdoc (3)
- # cljsrn (3)
- # clojure (42)
- # clojure-android (1)
- # clojure-uk (4)
- # clojuredesign-podcast (10)
- # clojurescript (4)
- # figwheel-main (19)
- # fulcro (19)
- # hoplon (4)
- # jobs (5)
- # juxt (8)
- # off-topic (5)
- # pathom (40)
- # perun (3)
- # shadow-cljs (56)
don’t mean to be obnoxious with silly questions, but saw this googling around and curious what people find to be standout about fulcro vs other fullstack setups (I’m used to reagent/re-frame personally)
specifically I’m wondering if there is a page somewhere outlining which libs are being used for what?
I would say the stand out would be the compose-able nature of the parts. I don't think of reagent/re-frame as being full-stack - they rely on there being a REST back-end. Fulcro also uses Ring.
Hey all, I am new to fulcro but one question that I haven't found a solid answer for is like why not do
prim/factory inside of defsc? I don't clearly see the benefit of this separation yet. I am new so I may have missed reading some material. Thanks!
If you think in terms of Java defsc is basically a class.
factory returns a method that when called will give you an instance of that class. Instead of an object you are getting a react entity instance (or whatever its called).
That thinking helps, thanks! I was also thinking if
defsc would be used in the header file like in cpp?
no such thing as a “header file”.
defsc is a macro that emits the code to make a js class.
Probably - declare/define class/instance. You deal with other instances in the render method - but only the child ones.
@mattsfrey The thing that got me really interested in fulcro was https://www.youtube.com/watch?v=yyVKf2U8YVg - I don’t think I’ve ever seen anything even close to as impressive for building fullstack applications in Clojure. You can do great stuff with re-frame, but it has no server side component at all and is based around a significantly different model.
I’m working on a (reusable) tool to help with refactoring (like the move from F2 to F3). I should be able to automate most of the porting, and output warning messages for the bits you have to do by hand. https://github.com/awkay/porting-tool
(would leverage https://github.com/xsc/rewrite-clj, but sadly it seems to currently only work with clj-only, no CLJC)
Hi, do you know of anything in the JS eco-system that have features similar to Fulcro, like views that declare the data they consume? I won't be able to make my coworkers use Clojure, but I still hope to drive them to better patterns on the front end.