Fork me on GitHub
#clojure-nl
<
2020-04-30
>
thomas07:04:09

mogge... more Fulcro today

Mno07:04:43

Mornin'... more Code review today

Kevin08:04:19

How’s Fulcro?

thomas09:04:51

challenging

borkdude09:04:22

is it worth the complexity?

thomas09:04:52

Not 100% convinced yet to be honest. It does solve some really complex problems and it is very clever at doing that. It also includes everything including the kitchen sink.

thomas09:04:28

So can't adopt it by using little pieces (as far as I can tell). So it has a rather steep learning curve IMHO.

borkdude09:04:46

yeah. it's an all or nothing thing isn't it

borkdude09:04:25

I've been pondering about babashka, whether I should leave JDBC+Postgres support in (which I included last week), since it might be going to "everything including the kitchen sink" direction. Just interacting with psql and the mysql CLI by shelling out is already quite powerful for small sql things and it doesn't put extra features into bb...

thomas09:04:44

did you get (m)any request for SQL support?

borkdude09:04:50

not really, so that's why I may re-consider. most people just shell out to their respective sql CLIs

borkdude09:04:12

it was more like: wow, this works with GraalVM... super cool!

borkdude09:04:27

I'll release it behind a feature flag in the next release probably, so people who desperately need it can compile babashka for themselves

Kevin10:04:25

Fulcro uses panthom, right?

Kevin10:04:53

I’ve been wanting to take a look at fulcro. But so far I’ve been really happy with just using Re-frame + some clojure web stack

thomas10:04:55

Fulcro and Pathom work really wel together. You can use the separately if you want to though.

thomas11:04:06

So they tend to get used together a lot

Kevin11:04:17

Would you use Panthom without Fulcro?

thomas11:04:00

Probably not.

thomas11:04:11

but as far as I know you can.

tvaughan14:04:15

I'm currently building a commercial product using Fulcro, Pathom, and Datomic. I inherited a legacy code base that used rum, minimally, and was more of a proof-of-concept than something I'd be comfortable with in production. So we stopped and asked ourselves if we should continue on as-is or pivot. We pivoted:

borkdude14:04:47

(tip: when uploading a chunk of text as a file, it becomes collapsible)

👍 4
tvaughan14:04:28

Yes, you can use Fulcro without Pathom. If you're using Datomic on the backend it may not matter much if you use it or not since Fulcro has its origins in om.next which means Fulcro's protocol is a lot like Datomic's pull-syntax. Using Pathom with Datomic provides marginal benefit, but if you're using SQL on the backend then Pathom would be super helpful in parsing the client request so it can be easily turned into SQL

tvaughan14:04:35

Our rationale for switching to Fulcro

tvaughan14:04:34

This https://gitlab.com/tvaughan/fulcro-template is a Fulcro app I built for myself to learn and evaluate Fulcro.

thomas15:04:47

cool... I'll have a look at that

tvaughan15:04:11

I'm happy to answer any questions

thomas15:04:52

I can't clone the project. I have downloaded the zip now, but then it complains that stuff is missing

thomas15:04:04

no permissions on clone

tvaughan15:04:20

I have no idea how to interpret this. This says anyone can access this repo, and also says only those with access can. These two seem contradictory to me. I don't see any option to open up access any further. I'll mirror this to github

thomas15:04:07

let me have a look later

thomas15:04:13

(just on a call)

thomas15:04:32

yes that worked...

thomas16:04:47

I can't yet run the Makefiles as is...

thomas16:04:20

as I haven't set a GITLAB username etc

tvaughan16:04:59

Yeah, that's not required. This originated in a private repo. In .http://starterkit.mk you could just make the login target return true. I can't redistribute Datomic so http://datomic.mk won't work either. I'm sorry this is so rough around the edges. The only way to get this to run as-is now requires that you download and run Datomic locally. I could come up with something that builds the Datomic docker image from a Datomic zip

thomas19:04:01

don't worry, I am looking at the code at the moment... I think I know how it is supposed to work.