This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-11-07
Channels
- # aleph (11)
- # aws (8)
- # bangalore-clj (4)
- # beginners (32)
- # boot (48)
- # cider (2)
- # cljs-dev (57)
- # cljsrn (4)
- # clojars (22)
- # clojure (67)
- # clojure-argentina (2)
- # clojure-austin (9)
- # clojure-berlin (1)
- # clojure-brasil (15)
- # clojure-france (1)
- # clojure-italy (10)
- # clojure-russia (23)
- # clojure-spec (6)
- # clojure-uk (48)
- # clojurescript (143)
- # cursive (15)
- # datomic (30)
- # emacs (18)
- # hoplon (26)
- # instaparse (1)
- # leiningen (1)
- # om (21)
- # om-next (9)
- # parinfer (3)
- # pedestal (3)
- # planck (2)
- # re-frame (53)
- # reagent (4)
- # ring (5)
- # spacemacs (1)
- # specter (10)
- # sql (16)
- # untangled (19)
- # vim (11)
- # yada (2)
if i have something in cljs like (defn foo …)
and (defn bar [f] (f))
and I call (bar ‘foo)
how do i actually make that work?
@thedavidmeister Just pass in foo
instead of 'foo
, your symbols will get renamed anyways when doing advanced compilation with Closure Compiler
@rauh but i also want to do something with 'foo
and this is for testing, so it’s not using advanced compilation
basically, if i have foo/bar
i want to be able to have my function print "foo/bar"
and also return (foo/bar)
@thedavidmeister Then you want a macro that emits such code
what would that look like?
@gregnwosu NP, Most probably there are more ways to do that, maybe even more idiomatic ones
@gregnwosu You can use every?
, (every? identity [1 2 3])
when using sth like enlive for server side templating, what is a good CMS that goes well with it, for adding new info / data?
@dimovich What kind of thing would you use in another language? I'm not sure I really understand the question.
@dimovich are you talking about something like the Django auto admin interface or Administrate in Rails?
@sveri doesn't work since and
is a macro. Like madstap said, every?
is probably what should be used here.
Do I need different project.clj files for my frontend and backend build processes? (Say in an Om-Next React Native app via Re-Natal) (kinda new to setting up my first big Clojure/ClojureScript project) Or am I able to separate those out somehow with different Lein builds via maps?
@kauko Yea, I saw that later too, when I tried it. Was not aware that macros dont work in that spot. But (reduce (fn [acc elem] (and acc elem)) true l) does 🙂
@keatondunsford you don't need separate files. I don't have any configs at hand I could look at though
but maybe look at a template to help you get started? Luminus is good, and I think re-natal has a template.
Yeah Re-Natal has a template with re-natal init
which is great. Just trying to wrap my head around all this. Total newbie:)
I’m trying to piece together an Om.Next/Untangled/Datomic app for mobile and how tf to deploy it. 😛
Yeah exactly.