This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-04-19
Channels
- # aws-lambda (4)
- # beginners (62)
- # cider (20)
- # cljs-dev (9)
- # cljsrn (13)
- # clojars (3)
- # clojure (105)
- # clojure-brasil (1)
- # clojure-denver (1)
- # clojure-finland (4)
- # clojure-italy (23)
- # clojure-norway (1)
- # clojure-spec (6)
- # clojure-uk (56)
- # clojurescript (41)
- # cursive (10)
- # datomic (25)
- # emacs (23)
- # figwheel (2)
- # fulcro (133)
- # graphql (12)
- # hoplon (32)
- # instaparse (13)
- # keechma (1)
- # lein-figwheel (1)
- # luminus (1)
- # lumo (1)
- # nyc (2)
- # off-topic (34)
- # om (2)
- # onyx (10)
- # pedestal (8)
- # portkey (1)
- # re-frame (10)
- # reagent (26)
- # ring (8)
- # shadow-cljs (77)
- # spacemacs (4)
- # sql (8)
- # tools-deps (15)
- # vim (9)
Is there a preferred example for how to structure a codebase for a clojure backend, cljs frontend web app?
What should I be looking for when I get this error: Caused by: java.lang.NoSuchMethodError: com.google.common.base.Preconditions.checkState(ZLjava/lang/String;Ljava/lang/Object;)V
is there a non-browser unit-testing tool recommended for clojurescript?
@mv most likely a dependency conflict with guava. check with lein deps :tree
and try to resolve the conflicts.
@mv If you are using datomic and experiencing such error try adding [com.google.guava/guava "24.1-jre"]
to your dependency
I made a #kee-frame channel for https://github.com/ingesolvoll/kee-frame. Don't hesitate to ask questions or make suggestions! I'm also following kee-frame messages on this channel.
what’s new @bhauman?
@robert-stuttaford working away on the figwheel as per the usual 🙂
-grin- i don’t doubt it! you’ve been doing stellar work dude
@robert-stuttaford thanks! and it seems like you've been pretty darn active yourself
super well - super busy!
What’s happening here?
(let [{:keys [:tags]} '(:tags '(:intervention))] tags) ;;=> (quote (:intervention))
(let [{:keys [:tags]} [:tags [:intervention]]] tags) ;;=> nil
I mean, the first destructuring returns something while the data structure destructured isn’t a map
so opts
will be a sequence '(:opt1 4 :opt2 5)
and apparently destructuring works for this as well.
yes, you can associatively destructure a sequential collection as if it were a map
@alexmiller then why (let [{:keys [:tags]} [:tags [:intervention]]] tags) ;;=> nil
vectors already are associative (by map of index to value) so won’t work for those
will work for sequences or lists
is there a way I can “shadow over” someone’s namespace?
ns.lib-a
(def :a/some-ns-kw)
ns.my-code
(def :a :lib.b/some-ns-ks)
ns.my-other-code
{my-code "hello"}
seems fishy. i’m wrapping a library but I don’t want my app code to have to depend on that library’s namespaced keys, so I just want to point from my own artificial namespaced kws to theirs.
I’m not sure I understand the question, but there’s no way to automatically translate them. You’d have to replace your namespaced keys with the library’s on the way in, and the other way around back out
the more i think about it I think i’m trying to mix a clj macro which is referring to a cljs ns. i think my real and entirely different question is can clj macros write code to refer to cljs namespaces. i don’t see why not.
@UA4N902JG there's a #vim channel. Probably better to ask there.
yessir. after much ado @UA4N902JG I was able to get it working simply with :Piggieback :id-of-app
via shadow-cljs, but its similar with lein
@U0W0JDY4C managed to get it working thanks to a topic in #vim 🙂