This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
- # announcements (5)
- # beginners (90)
- # cider (15)
- # clara (1)
- # clj-kondo (2)
- # cljs-dev (17)
- # clojars (8)
- # clojure (132)
- # clojure-europe (14)
- # clojure-nl (5)
- # clojure-uk (57)
- # clojurescript (39)
- # code-reviews (44)
- # conjure (6)
- # core-async (6)
- # crux (3)
- # cursive (20)
- # data-science (1)
- # datomic (13)
- # fulcro (11)
- # graalvm (6)
- # graphql (6)
- # helix (10)
- # joker (2)
- # kaocha (37)
- # leiningen (24)
- # malli (15)
- # off-topic (13)
- # pathom (18)
- # pedestal (14)
- # re-frame (67)
- # reitit (5)
- # ring (13)
- # ring-swagger (4)
- # sci (41)
- # shadow-cljs (33)
- # slack-help (5)
- # spacemacs (1)
- # sql (34)
- # tools-deps (64)
- # vim (171)
Hey team, is there a recommended library / way that I could build a web repl for clojure? (i.e if I wanted to teach folks how to use clojure, and start them off with a repl I could customize)
If you’re interested in an out of the box solution for what you’re looking for, Maria is pretty good
there's also klipse http://app.klipse.tech/ but it only allows self-hosted cljs (as far I know)
https://web.archive.org/web/20171224182623/http://tryruby.org/levels/1/challenges/0 ^ i remembered this for ruby -- could be cool to have something like this for clojure!
I've only done a proof of concept to see if I could get storybook and cljs webpack playing nicely together. In case it's of interest, this is the code: https://github.com/olivergeorge/webpack-repros/tree/storybook-vs-reagent
Can someone please explain me what is the difference between :rename-prefix & rename-prefix-namespace? If I got multiple modules should I use both? If yes, then should the value for both be the same?
:rename-prefix makes all names start with that prefix so
:rename-prefix-namespace instead puts everything onto one object, so
foo.A. only use one.
@ It seems then that having :rename-prefix-namespace is more beneficial than :rename-prefix when it comes to build size.
@ Surprisingly rename-prefix-namespace impacts build size more than rename-prefix. Which should be used?
I think the major focus was on reagent outperforming react.js though, but I may be thinking of something else. Articles like this: https://yogthos.net/posts/2017-03-26-ReagentReactView.html
So do we have a #clojurescript specific conference yet? 😄 for the 22 of us that would show up?
That's because by the time we figured out how to organize one, a new organization framework came out and we had to start over
seriously though I am looking for a way to consolidate the fragmented information/best practices. hmm.
@dnolen ran a cljs masterclass through kitchen table coders http://kitchentablecoders.com/ the site states that "You can also ask us do redo them, and we'll do our best!"
I would absolutely join one of these now if they ran again. especially if they were remote. sounds like a great saturday to me
Hello, is it possible to use memfn in with -varname? e.g. if I want to extract multiple properties from an object ((juxt (memfn -a) (memfn -b)) obj) ? Doesn't seem to work, is there a short better alternative?
#(.-a %) and
#(.-b %) are the go to, though you could just combine into
(fn [o] [(.-a o) (.-b o)])
@noisesmith your first proposal doesn't work if I am already in a #() context, thus I will stick to the last one, thanks
@hannes948 the translation between the two is pretty simple, and can be exposed with
user=> '#(.-a %) (fn* [p1__1282#] (.-a p1__1282#))
that works with any reader macro -
' doesn't prevent read expansion, but it does prevent evaluation
I wonder if one can change the
memfn macro so that this is possible. the only reason seem to be that it always adds parenthesis
(. ~t (~name [email protected]) around name, even if args might be empty