This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-04-05
Channels
- # announcements (15)
- # aws (7)
- # babashka (105)
- # beginners (35)
- # biff (5)
- # calva (48)
- # cider (5)
- # clj-kondo (25)
- # cljdoc (14)
- # clojure (84)
- # clojure-czech (2)
- # clojure-dev (6)
- # clojure-europe (58)
- # clojure-nl (6)
- # clojure-norway (19)
- # clojure-portugal (2)
- # clojure-uk (5)
- # clojurescript (23)
- # cloverage (5)
- # code-reviews (5)
- # conjure (28)
- # data-science (1)
- # datomic (53)
- # events (6)
- # exercism (7)
- # fulcro (16)
- # graalvm-mobile (2)
- # honeysql (29)
- # improve-getting-started (2)
- # kaocha (32)
- # lambdaisland (2)
- # lsp (29)
- # malli (3)
- # overtone (1)
- # pedestal (8)
- # polylith (3)
- # portal (6)
- # quil (2)
- # rdf (15)
- # releases (2)
- # rewrite-clj (14)
- # sci (9)
- # shadow-cljs (7)
- # specter (5)
- # sql (5)
- # xtdb (38)
Hey. I've opened the docs and I have an immediate question: Can biff serve a back-end for an app (RN, Android, SPA and not only web)? Are there any diagrams? For instance I tried re-frame some time ago and first thing they show is diagrams: https://day8.github.io/re-frame/a-loop/ Can biff be compared to re-frame in some way? Because from the docs I feel the same way as "oh hey, I don't know what it is but it's a Ruby app".
You could use it as a back-end for an app. You'd just need to set up the app code on your own, since Biff only comes with a template project for web--and if you're doing that anyway, setting up the back-end by hand may not be much harder than using Biff anyway. (My own approach has been to just build responsive websites that work for both desktop and mobile, though I understand in a lot of cases you do need a real app.) There's a diagram here: https://biffweb.com/docs/#code-organization though perhaps not exactly what you're looking for 🙂 Biff is a server-side framework, similar to Rails or Django. Re-frame on the other hand is a front-end framework. Re-frame is useful if you're making a regular SPA, where you have a lot of code on both the back-end and on the front-end. By using htmx, Biff lets you get some of the advantages of a SPA while still keeping the vast majority of your code on the back-end. So with Biff there isn't any need for a front-end framework like Re-frame. (Rails also takes this approach, but with https://hotwired.dev/ instead of htmx. From a distance it seems like htmx is gaining adoption among Django devs too. I'd also put Phoenix LiveView in this general category. This was a nice post about the movement: https://github.com/readme/featured/server-side-languages-for-front-end)
I was looking for a diagram of the network. What happens when 🙂 I think it may be useful not only in my case 🙂 Maybe it's trivial to understand but I remember you were talking about pushes and so on. And if that happens then why not have a diagram 🙂
pushes as in websocket pushes? in any case you're probably right; a diagram might be handy. Could include regular HTMX request/responses, and also websockets + transaction listener. I just made an issue for it: https://github.com/jacobobryant/biff/issues/112