This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-08-18
Channels
- # announcements (2)
- # beginners (95)
- # cider (2)
- # cljdoc (5)
- # cljs-dev (11)
- # cljsrn (2)
- # clojure (12)
- # clojure-spec (11)
- # clojure-uk (3)
- # clojurescript (27)
- # code-reviews (4)
- # cursive (9)
- # data-science (1)
- # datomic (1)
- # emacs (7)
- # fulcro (13)
- # graalvm (28)
- # graphql (6)
- # nrepl (6)
- # off-topic (13)
- # re-frame (3)
- # rewrite-clj (2)
- # shadow-cljs (29)
- # spacemacs (1)
- # sql (4)
- # tools-deps (8)
- # vim (20)
- # yada (7)
Sorry if this type of question should go to the beginner channel. But I’m trying to figure out how to contribute to documentation and support for full stack clj + cljs apps. I’m wondering if someone has a good resource to point me to. Or, if I can contribute in any way, where would be the place to start? I’m trying to get a clear mental model about how to make an application with an om next front end, integrated with a datomic backend on AWS. I feel like this would make a good book that hasn’t been published yet.
Given that requiring local .js files is experimental in shadow-cljs (https://shadow-cljs.github.io/docs/UsersGuide.html#classpath-js), what are the best practices when wanting to mix js files and clojurescript files in a project? Like... if possible, should clojure code all export and no JS imports, and then have JS glue code, or npm packages import is OKAY but local file .js imports should be avoided, or none of these?
@thomasskinner76 no best practice since CLJS without shadow-cljs doesn't support easily mixing .js files into the project. if it is just your project and not a library it is fine to use the direct interop in shadow-cljs.
CLJS has some support for mixing Js files in via :libs
but that is limited to one way and those files won't have full access to CLJS code
Hello guys
if i have flow of some pages and want to disable back from this specific page
or is there another approach to do this rather than disable history
how might be an alternative for this?
could i make the back button to not get back to previous page but to the home page?
have you checked out https://google.github.io/closure-library/api/goog.History.html @abdullahibra?
Complete clojure/cljs newbie, bootstrapped a project with shadow-cljs to display latest artworks from behance
https://github.com/girishso/xilop
For some reason not able to get routing working.. tried using secretary
/`accountant`… maybe i’m missing something obvious(?).
Also, would appreciate any feedback on coding style/structure or anything that stands out to you
might wanna also post in #code-reviews
@U883WCP5Z Cool! Thanks! 🙂
@thheller I notice that :target npm-module outputs all these generated file names by translating namespace barriers to dots like "foo.bar.js". May I request a feature, that instead of dots, it just uses folder nesting for the namespaces? I think this is more intuitive, in this case I can require transpiled CLJS files the same way I would require typical JS files from a JS file.
not interested in that no. they are flattened to signify CLJS namespaces and dealing with relative paths in node is super annoying so it makes my life easier
This would also mean that my source directory where my js and cljs files are mixed in folders, can mimic the output directory structure
how can I get the full qualified name in macro?
for example I have (some-macro r/render)
, I want get reagent.core/render
in the macro.
@doglooksgood syntax quote should work, using back tick `
(some-macro `r/render)
@thomasskinner76 I think (:name (cljs.analyzer.api/resolve &env sym))
works. I'm very sorry I think I have asked once few years before, and David Nolen already told me once.😭
does anyone have a preference between : re-natal https://github.com/drapanjanas/re-natal and expo https://expo.io/features and https://docs.expo.io/versions/latest/guides/using-clojurescript/ for cross platform development?
Hi guys
how can convert this js code to clojurescript:
this is my try: