r/Clojure • • Jan 26 '18

Qlkit, a new open source Clojure/ClojureScript web framework based on graph queries

https://medium.com/@conrad_9565/lets-build-a-ui-with-qlkit-and-graph-queries-79b7b118ddac
73 Upvotes

12 comments sorted by

View all comments

Show parent comments

9

u/TacoSundae Jan 26 '18

This would appear to be a much simplified om.next . Client state is transactional with om.next style component queries and mutations (different syntax though) vs the subscription model of re-frame. With the qlkit-renderer library component render looks much like the hiccup style of reagent and re-frame.

I'm quite liking the look of it so far.

1

u/drcode Jan 26 '18

I couldn't have written a better tl;dr myself!

The OmNext query syntax is based on the Datomic pull syntax- With qlkit we, instead, had the luxury creating a query language specific for UI and client-server use cases. This makes it simpler.

1

u/TacoSundae Jan 26 '18

Are there any plans for co-located css like fulcro-css? That would seem to fall in line with your goal of self contained components.

1

u/TheLastSock Jan 26 '18

So much cool stuff. I need time to dive into this and fulcro. Is there a tldr on the difference between that approach and this one.

1

u/drcode Jan 26 '18

I contrast qlkit from OmNext in the wiki (https://github.com/forward-blockchain/qlkit/wiki) but in places where fulcro deviates from OmNext I wouldn't be able to answer that until I study fulcro more.

1

u/TheLastSock Jan 26 '18

fair enough. Im glad there are so many great options. Thank you for your contributions!

1

u/drcode Jan 27 '18

Looking at css-fulcro, I'm not sure I like the extra complexity cost of that approach... qlkit-renderer already has CSS sugar (so you can write [:span {:color :red} "Hello"] instead of [:span {:style {:color "red"} "Hello"]) and there's nothing to stop you from "colocating the CSS" by simply using inline CSS. I would have to hear more arguments on the benefits of this approach.

Also: since the code of qlkit is very simple it would be very easy to fork the library and add this feature, if it's critical to your use case.

3

u/redmorph Jan 27 '18

more arguments on the benefits of this approach

CSS features like media queries are not possible with inlined css.

very easy to fork the library and add this feature

Probably better to adjust design to allow features without forking in the long run.

1

u/drcode Jan 28 '18

good points, I'll have to think over them.