This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-07-30
Channels
- # announcements (6)
- # bangalore-clj (1)
- # beginners (169)
- # boot (8)
- # calva (20)
- # cider (32)
- # clj-kondo (78)
- # cljdoc (42)
- # cljs-dev (4)
- # clojure (126)
- # clojure-china (35)
- # clojure-dev (5)
- # clojure-europe (3)
- # clojure-italy (40)
- # clojure-nl (15)
- # clojure-portugal (1)
- # clojure-spec (4)
- # clojure-uk (67)
- # clojurescript (89)
- # community-development (2)
- # core-async (34)
- # cursive (46)
- # datomic (14)
- # dirac (1)
- # duct (8)
- # emacs (11)
- # events (5)
- # fulcro (21)
- # jackdaw (14)
- # jobs-discuss (6)
- # off-topic (37)
- # pedestal (24)
- # perun (1)
- # quil (3)
- # reagent (27)
- # reitit (1)
- # remote-jobs (1)
- # shadow-cljs (47)
- # sql (1)
- # vim (9)
- # yada (1)
is there any up to date book on cljs? or what is the recommended beginners resource? (i know how to program and a little clj, but don't understand the tooling around cljs)
Actually, begginers have may want to start from explore their learning curve. How about your knowledge and understanding of Programming Languages. Lisp is old! It is wise. And Rich Hickey gave us an incredible point of view on top of this Mystery. It’s about data and it’s journey to the desired shape. Sorry about my English. I’m still working on it. Aside from this introduction; ClojureScript Unraveled: http://funcool.github.io/clojurescript-unraveled/ Is an online book on Clojurescript. Transforming Data with ClojureScript: http://langintro.com/cljsbook/index.html Is an another great source about Clojurescript and it’s mentality on modeling and managing Data.
@U7JCZJR0W, @U883WCP5Z. I hope it helps. Do not hesitate to ask anything about Clojure/Clojurescript.
Thanks! I'm pretty comfortable with Clojure, and so can't get much value from most introductory books. What I am looking for is "the current state of ClojureScript tooling". Stuff like shadow-cljs, figwheel-main, Google Closure, that sort of thing. I guess I'll just have to dive in and build something.
@U883WCP5Z Documentation for both figwheel and shadow-cljs is pretty good these days, so you can start from there.
@U0FR82FU1 When should we use figwheel/figwheel-main instead of shadow-cljs? I'm currently using shadow-cljs.
@UCMNZLJ93 they are both build tools for cljs, shadow is more into NPM integration, so I’d say use shadow. I’m personally fine with figwheel + webpack setup
thanks @U3JJH3URY!
@U7JCZJR0W, no problem! 😇
@U0FR82FU1 what benefits do you feel figwheel + webpack setup have over shadow-cljs. I'm fine with shadow-cljs, but just curious about alternatives.
Hello guys
what is the starting point to figure out why my clojurescript code not loading into IE?
is there a way to test if my final app.js will work correctly on IE or not rather than using IE itself ?
some tool to check compatibility ?
SCRIPT5022: Minified React error #200; visit http://reactjs.org/docs/error-decoder.html?invariant=200 for the full message or use the non-minified dev environment for full errors and additional helpful warnings. i found this
anybody can help about this?
is this supposed to work on IE: (.setItem js/localStorage k v)
@abdullahibra depends on the IE version
version 10+
yeah i adjusted it and i got another errors related to save in localstorage
why i got undefined in IE console ?
and this not working for localstorage
i'm trying cljs
@thheller thank you
this code not working in IE
@thheller can you help in that?
we need to kill IE
I agree with @abdullahibra. What are we waiting ? Natural death ? 😂
'Set' is undefined in IE 11 document mode 10 , how can i support polyfill in the clojurescript ?
:rewrite-polyfills true ?
@abdullahibra it depends on the code that uses Set. CLJS doesn't so it must be some JS lib and it then depends on how you include it
Is anyone using cypress for end-to-end tests on their clojurescript apps and writing the tests in clojurescript? If you are doing that, it'd be a life-saver to know what you're doing to make that work.
what exactly doesn’t for you?
We are currently using shadow-cljs to build a node module (with all the content of the tests) and require that in each of our integration test spec files. we'd like to have hot reloading when developing on them, but cypress doesn't reload the node_modules directory.
I think we have this setup, at least you can auto run test while developing. But I’m not sure how that works exactly. Maybe @U9ES37CSZ can tell more
Some day we will start an engineering blog 🙂
we'd definitely like to write about this once we get it in a state we like, because it seems like the only thing written about this is: https://github.com/eerohele/cypress-clojurescript-demo
Hey y’all, we’ve decided to write tests in JavaScript, so unfortunately I don’t have experience with the topic
I’d say you don’t need a wrapper for that. Use node module directly.
It’s node module. We define wrappers as the idiomatic usage interface between the Host Structures and the Language itself, right ? If are not there any wrapper, I’m volunteer to write such a library.
idiomatic usage means: Clojure way. With it’s data structures and mentality. @U0FR82FU1, If I’m wrong, please correct me.
Clojure way would be to issue queries directly against a database, not having an ORM, and get back a collection of maps.
But what I meant is that you don’t need a wrapper to work with Node’s mongodb
driver for example, imo
the only thing would probably be to convert json into edn, but that’s just js->clj
other than that it’s still a good exercise
@U0FR82FU1, I think it’s a good perspective. I have to think about pros and cons of making a wrapper around a library on Clojurescript. I think this was a good Chapter on my book. But I might be wrong.
I’m writing a book in my Native Language --Turkish-- and I think it is a good idea that implement a wrapper around an library for community. I think it encourages the readers to share knowledge and making useful things. Maybe Productivity, I think.
May be a good idea use https://github.com/mfikes/cljs-bean to convert js to cljs
when we do hot-reload in clojurescript, sometimes there are bugs break the rendering, result in there's nothing left on screen. after fix the bug, it can't recover itself so I have to reload the browser. how can I avoid this?
I have an older lein+cljsbuild+reframe + cljs 1.10.520 project, and I’m scratching my head a bit on what the cljs$node_modules.js
file in the cljs dev build folder is all about. The project was loading OK, but now I’m getting an Error: Undefined nameToPath for module$Users$rgm$Projects$my-project$code$node_modules$react$react
when I start the app in the browser.
I seem to have :install-deps false
in the compiler options … are there any good tips for figuring out which dep is bringing this in?
I get an out/node_modules/react
folder (and for other npm deps) but these seem to be Closure-ized in some way