This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-02-01
Channels
- # aleph (2)
- # aws (23)
- # bangalore-clj (1)
- # beginners (99)
- # bristol-clojurians (1)
- # cider (3)
- # circleci (1)
- # clj-kondo (8)
- # cljdoc (4)
- # clojars (1)
- # clojure (47)
- # clojure-india (1)
- # clojure-nl (2)
- # clojure-serbia (3)
- # clojure-spec (2)
- # clojure-uk (17)
- # clojuredesign-podcast (1)
- # clojurescript (20)
- # datascript (1)
- # datomic (1)
- # emacs (1)
- # fulcro (4)
- # pathom (18)
- # ring-swagger (2)
- # shadow-cljs (31)
- # spacemacs (3)
- # tools-deps (10)
- # vscode (1)
I guess self hosted just compiles to an in memory string which is then called with eval
in JS as opposed to compiled to a file with a normal app?
Yeah, self-hosted mainly means that the compiler is available in the target environment. Otherwise (ignoring :advanced
) it isn't much different.
Hello! I'm trying to learn reagent and clojurescript. I'm just wondering if there is a better way to increment the currentTime
of reagent/atom audio
element here?
(defn forward [audio seconds]
(let [currentTime (.-currentTime audio)]
(set! (.-currentTime audio) (+ currentTime seconds))))
Anyone using tailwind css able to explain they appeal? It seems like a collection of css classes. Like it feels like it would be easier to just make some sort of edn to css processor and define your own style groupings.
It's not for every project, but I find it good for cases where you have to build custom styles (i.e. not use a framework like Bulma), but you might not know the structure/styling of everything in advance. You just start composing tailwind classes. If you use reagent (or any React wrapper, I am sure) components are already encapsulated, so there is a relative DRYness even if you don't create specific CSS classes. Once your design is more mature, or if you need something not provided by tailwind (e.g. a spinner), you can always add your own CSS classes which @apply
the tailwind ones.
PostCSS is a bit fiddly, I'll give you that (plugins can crash it), but I am not sure it is bad enough to warrant writing a replacement processor.
So tailwind is just css classes? And Bulma raises the abstraction higher by being html and css? Then would it be fair to say material UI goes even higher and is that plus JavaScript?
Bulma is also just CSS classes, IIRC. They are higher-level, though, representing finished components, and the composability of bulma classes is much more limited than Tailwind's.
You basically have to have the docs open and follow the examples to see how you can compose bulma classes. It's not obvious.
I haven't used material ui (not a fan of material design in general), but I would not like to be forced by my CSS framework to bring in JS. I think that (behaviour as driven by JS) should be a separate concern from styling, and I prefer to do it in cljs, of course.