This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-06-21
Channels
- # announcements (5)
- # babashka (81)
- # beginners (26)
- # calva (6)
- # cider (7)
- # clojure (26)
- # clojure-czech (1)
- # clojure-europe (19)
- # clojure-nl (4)
- # clojure-spec (5)
- # clojure-uk (21)
- # clojuredesign-podcast (2)
- # clojurescript (19)
- # conjure (6)
- # cursive (13)
- # datomic (2)
- # depstar (1)
- # editors (2)
- # graalvm (25)
- # honeysql (5)
- # jackdaw (4)
- # jobs (5)
- # lsp (8)
- # malli (13)
- # music (1)
- # polylith (3)
- # practicalli (1)
- # releases (1)
- # remote-jobs (2)
- # sci (10)
- # shadow-cljs (5)
- # sql (14)
- # tools-deps (25)
- # xtdb (65)
Not sure if this question goes here or in core-async, as the question is related to the cljs implementation of core.async: As there is only one thread in cljs, is it guaranteed that consecutive put!
will keep the order of calling on the elements of the channel? E.g. In hasslet, the websocket client, I feel this line could cause out of order messages in clojure due to the multiple threads https://github.com/weavejester/haslett/blob/master/src/haslett/client.cljs#L48 but maybe not in javascript? Or maybe in clojure either it wouldn’t cause out of order messages and I’m misunderstanding it?
Looking at <chrome-extension://oemmndcbldboiebfnladdacbdfmadadm/http://cdn.cognitect.com/presentations/2014/insidechannels.pdf> it seems I completely misunderstood it, and pending puts do actually keep ordering, I was confused with spawning multiple go blocks
NaN is a valid IEEE 754 floating point number, just don't think about it too hard
It might also be a case of a mismatched name. Perhaps it would be better as "an undefined number".
Would garden be the "default" way of writing CSS in CLJS? I see it being mentioned a lot.
@jakub.stastny.pt_serv A lot of people just use whatever mainstream tool to write their CSS (less, sass, ...)
@borkdude OK. I was using CSS modules in React. But I suppose that given the nature of garden, it has the CSS modules way of doing things included?
By that I mean that there's no need to import styles from 'mystyles.css.modules; <p className={styles.showcase}>...</p>
, because Garden being data, you simply pass variables around and you never get into naming problems (such as renaming a CSS class), because either it works and the compiler is happy, or if there's naming problem in a variable, then the compiler complains, so it can never go missed?
So CSS modules is not a thing in Garden, because it implicitly supersedes it.
There’s a few CSS-in-JS approaches for CLJS as well. I think the modules stuff generally requires build tool support, which you can set up but is annoying in my experience