This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-05-24
Channels
- # beginners (100)
- # calva (11)
- # cider (17)
- # clj-kondo (2)
- # cljdoc (66)
- # cljs-dev (54)
- # clojure (77)
- # clojure-czech (1)
- # clojure-dev (42)
- # clojure-europe (3)
- # clojure-italy (8)
- # clojure-nl (17)
- # clojure-spec (12)
- # clojure-uk (41)
- # clojurescript (68)
- # cursive (8)
- # datomic (15)
- # emacs (9)
- # expound (3)
- # fulcro (14)
- # garden (3)
- # graphql (2)
- # hoplon (2)
- # lein-figwheel (4)
- # leiningen (4)
- # off-topic (22)
- # onyx (8)
- # parinfer (2)
- # planck (1)
- # re-frame (5)
- # reagent (55)
- # reitit (3)
- # remote-jobs (8)
- # shadow-cljs (35)
- # spacemacs (23)
- # sql (3)
- # tools-deps (32)
- # unrepl (8)
- # vim (25)
- # yada (5)
What are characteristics of a project that uses Clojurescript on the client and Clojure on the server that would warrant having them in the same git repo? And perhaps less obviously, what are the best practices for such a project in terms of aliases for dependencies? Would it be reasonable to have the client-only dependencies in a single alias, the server-only dependencies in another and the (few) common deps in the global section of deps.edn? Or mush them all together globally? Are any conventions and practices established for such projects?
I think i tend to separate them so the jar I deploy to the server doesn’t get too big
Hi all, I recently ran across Svelte (https://svelte.dev/blog/svelte-3-rethinking-reactivity). I haven’t used it yet, but from the looks of it I think I might prefer something like that over React. Does anybody know of something similar in CLJS land?
You could check out hoplon. It doesn’t have the compile time aspect but it has similar ideas about reactivity
How does it compares with shadow-arborist and Svelte?
I haven’t used any of them. AFAICT arborist uses a similar model to React where it has a virtual-dom that is updated based on props passed into components.
I’ll check it out thanks; the compile-time thing is what makes it really interesting though, right? 🙂
Yeah I’m not sure either, it would be worth a try. Unfortunatly me experiments at the moment revolve around (ios/android) native things, so I guess that practically glues me to react native…
Someone recently mentioned a CLJS project inspired by Svelte but I can't remember the name. Let me try to find it.
Thanks! Him again heh 🙂 Not sure if I can justify (to myself) using that without upping my Patreon donations to him 😅
Yeah, seems to be pretty fresh.
You're welcome. I hope the project gains some traction.
Ok stuck with react for now. So then my question becomes: which framework to use in CLJS land? There seems to be quite a bit of choice. I’m a beginner here, so I don’t have experience with any. Reagent seems to be the most widely used one, but is that declining? What about om, rum, hx, what have you? How do I choose?
(btw saw this thread via shadow-arborist readme; maybe having some virtual dom things isn’t that bad an idea after all… https://twitter.com/dan_abramov/status/1120971795425832961)
start with reagent, graduate to re-frame... for a harder to understand, more opinionated framework, use Fulcro
(just to clarify: I do have experience with react and redux, so those architecture patterns are very familiar to me)
@carkh “harder to understand, more opinionated” doesn’t seem to be a very good sales pitch 😉
integrates nicely with pathom, has a nice fulcro-inspect chrome addon to help with development
integrates with workspaces too that's a novelty to me, have my components displayed on a single page in all their states, then having a tab per component, check it all at a glance
if you want to spend a bit of time check this tutorial series (a little bit outdated but still nice)
https://www.youtube.com/watch?v=nlT45ikSEOE&list=PLVi9lDx-4C_Rwb8LUwW4AdjAu-39PHgEE&index=1
(But I also feel overwhelmed with all the choices, so maybe I’ll take your advice to just start with reagent/re-frame and learn their pros and cons first…?)
that's a bit out of my depth, but i think fulcro can be made to work with react native.... re-natal is re-frame ported to react native
> Re-Natal is a simple command-line utility that automates most of the process of setting up a React Native app running on ClojureScript with Reagent + re-frame, Om.Next or Rum.
shadow-cljs is fine, you can mix and match anyways. use one for dev, another for deployable artifacts
Hi! I'm experimenting with :npm-deps
and I'm curious to understand if it works with browser build? I found that if I shim the process
it works, but this is a dirty hack, because we should not have the env in browser
what is everybody using for displaying emojis nice in a webpage?
Not really sure what you are asking. Emojis are just unicode characters. So you can just use the character or use the escaped version &#x<hex-code>
Yes, I mean, I can definitely see them, but they are a bit ugly and they don't look like Slack ones 😄
I am very newbie on this so I might be missing something
I don't use them often, but as mentioned above they are just unicode characters. Witch means it's simple to use and takes only a bit of bytes. But the drawback is they look different depending on browser and such. If you want them to look the same you should use something else, like loading them from svg.
it seems like I need the right font-family
@U0C8489U6 the unicode interpretations vary by OS
most tools use sprites for that reason
we use https://www.npmjs.com/package/emoji-mart in a project
Ok cool thanks a lot!
Has anyone had much luck in tagging clj.test
tests? I am using karma.conf.js
to drive a lot of my tests