Fork me on GitHub

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)


compojure/ring on the backend


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.

Justin Duncan05:07:57

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).

thumbsup_all 8
Justin Duncan05:07:11

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.

Justin Duncan07:07:42

Thanks for clearing that up 😄

Justin Duncan05:07:24

and the prim/factory is for the cpp file?

Justin Duncan05:07:41

definition vs implementation( i may be stretching it here)


Probably - declare/define class/instance. You deal with other instances in the render method - but only the child ones.


Lets call them uis, because they are function that end in -ui (by convention).

✔️ 4

@mattsfrey The thing that got me really interested in fulcro was - 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.


(would leverage, but sadly it seems to currently only work with clj-only, no CLJC)

Vincent Cantin08:07:13

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.


Look at relay and falcor


GraphQL in general, with either Relay or Apollo