This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-03-09
Channels
- # aws (51)
- # beginners (57)
- # calva (10)
- # chlorine-clover (7)
- # cider (20)
- # clj-kondo (55)
- # clojure (43)
- # clojure-europe (9)
- # clojure-italy (1)
- # clojure-nl (5)
- # clojure-spec (8)
- # clojure-uk (71)
- # clojurescript (33)
- # core-async (22)
- # cursive (20)
- # datomic (3)
- # emacs (8)
- # figwheel-main (8)
- # fulcro (13)
- # garden (2)
- # graalvm (60)
- # graphql (26)
- # jobs (6)
- # joker (6)
- # kaocha (2)
- # lambdaisland (5)
- # malli (36)
- # off-topic (9)
- # portkey (15)
- # re-frame (3)
- # reagent (25)
- # remote-jobs (4)
- # spacemacs (3)
- # sql (111)
- # tree-sitter (29)
- # uncomplicate (3)
- # xtdb (2)
curious if anyone has any resources for managers on clojurescript, react, and/or SPA "value prop" type stuff? this is for technical management but not current on modern SPA stuff
😛 surely we can do a little better than that
even though I agree with you in principle that's not gonna persuade my manager much haha
https://docs.google.com/spreadsheets/d/1kBJLjN2Z1AFJM4W8S7YTn0PS_drzqtIMY5siSIZ5OWI/edit#gid=0
ooooo
this is quite fulcro focused, but generally you have an easier time selling a larger framework for stakeholders, as it does more stuff instead of you (who they have to pay for 🙂 )
10-4. much appreciated 🙂
[HIRING] I'm looking to hire a ClojureScript dev to fork an open source trading card game web-based project. Looking for fast turnaround and willing to pay accordingly. Open source script is http://Jinteki.net
the following generates "item.getAttribute is not a function" ... why?
[:li {:on-click (fn [item] (.getAttribute item "class"))} "foo"]
@mbarillier I think you need to call it on e.target
instead of e
(what you call item)
good call. "item" by itself is a react synthetic event: https://reactjs.org/docs/events.html
I’m using a npm module in shadow-cljs, which has this code in lib/index.js
-> `
return new Worker('./qrcode.worker.js');
, and there is a lib/qrcode.worker.js
, but clojurescript compiles everything into one main.js
so the browser returns a 404 error for GET 404 (Not Found)
. How do I work around this?you can try copying that file manually. if it doesn't have any dependencies it should work. shadow-cljs has no support for detecting those kinds of files.
Of course the worker has it;’s own imports (the most common scenario is that the worker file is a thin wrapper of something else):
import * as Comlink from 'comlink';
import QRCodeReader from '@zxing/library/esm/core/qrcode/QRCodeReader';
import BinaryBitmap from '@zxing/library/esm/core/BinaryBitmap';
import HybridBinarizer from '@zxing/library/esm/core/common/HybridBinarizer';
import { ImageDataLuminanceSource } from './ImageDataLuminanceSource';
related to this: https://clojurians.slack.com/archives/C03S1L9DN/p1583286732330700 , that's what I ended up doing
(defn cmp [x]
[(partial #(re/sub [:get-state %1 %2]) x)
(partial #(re/dispatch [:set-state %1 %2 %3]) x)])
(defn main-page []
(let [[get-state set-state] (cmp 'main)]
(if @(get-state 'form)
[:> grom/Box
[:> grom/Button {:label "Close" :onClick #(set-state 'form false)}]]
[:> grom/Box
[:> grom/Button {:label "New" :onClick #(set-state 'form true)}]])))
Are Fulcro and re-frame the only well-supported/used frontend frameworks in CLJS land?
Those are the most common, but you could look at the following libraries as well and probably not have too many problems: https://github.com/keechma/keechma https://github.com/tonsky/rum https://github.com/Lokeh/helix (a little newer but under active development)
It’s worth pointing out that Fulcro is really a full-stack framework, and has solutions for the entire client/server story. The projects being compared are not quite in this same space (imo).
There’s something of a spectrum ranging from “React wrapper” (Rum) < client event/subscription model (re-frame) < full-stack operation (Fulcro)
Understood. I was really only considering the frontend side of things, given that the backend of fulcro is pluggable
I really like the way Fulcro handles things. All the way from the client graph database to the co-located queries
I’m just worried of running into quirks with Fulcro, like not being able to use hooks for instance (though I know someone is working on that)
Oh wow, this must be super recent: http://book.fulcrologic.com/#_react_hooks_support
Yup. It is.