Fork me on GitHub
#fulcro
<
2019-07-27
>
mattsfrey00:07:38

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)

mattsfrey00:07:58

compojure/ring on the backend

mattsfrey00:07:51

specifically I’m wondering if there is a page somewhere outlining which libs are being used for what?

cjmurphy01:07:08

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!

cjmurphy05:07:56

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?

tony.kay06:07:47

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)

cjmurphy05:07:01

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

cjmurphy05:07:04

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

✔️ 4
shaun-mahood06:07:07

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

tony.kay06:07:08

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

tony.kay06:07:29

(would leverage https://github.com/xsc/rewrite-clj, 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.

4
pvillegas1211:07:38

Look at relay and falcor

hmaurer16:07:00

GraphQL in general, with either Relay or Apollo