This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-02-01
Channels
- # aatree (1)
- # admin-announcements (11)
- # beginners (77)
- # boot (73)
- # braid-chat (29)
- # cbus (3)
- # clara (3)
- # cljs-dev (16)
- # cljsjs (2)
- # cljsrn (68)
- # clojure (149)
- # clojure-austin (1)
- # clojure-czech (2)
- # clojure-miami (8)
- # clojure-poland (28)
- # clojure-russia (165)
- # clojure-ukraine (1)
- # clojurebridge (3)
- # clojurescript (64)
- # community-development (1)
- # core-async (27)
- # core-matrix (2)
- # cursive (38)
- # data-science (2)
- # datavis (4)
- # datomic (3)
- # dirac (78)
- # emacs (10)
- # events (1)
- # funcool (6)
- # hoplon (25)
- # immutant (2)
- # jobs (3)
- # ldnclj (34)
- # luminus (4)
- # mount (23)
- # off-topic (26)
- # om (121)
- # onyx (320)
- # other-lisps (1)
- # proton (13)
- # re-frame (33)
- # yada (3)
hmmm. actually this use of js promises in clojurescript is turning out to be a bit more complicated (e.g. how do you chain then() calls?). how do others here interop with js libraries that make use of promises?
ezmiller: you can do chaining with ->
(-> usr-promise (.then ...) (.then ...) (.then ...))
each will chain off the one before it
@mateusz-fiolka: I wrote cljs-npm leiningen template.
I realized that I could publish clojurescript npm modules to clojars instead of npm just as web browser modules are uploaded to npm.
cljs npm modules on clojars do not incur the overhead of multiple clojurescript runtimes.
@mateusz-fiolka Here’s a basic way to work with node.js & cljs: http://blog.testdouble.com/posts/2016-01-21-isomorphic-clojurescript.html
Anyone knows why the Google Clojure library wants to create an instance of a Html5History
object? Why doesn’t it use the “singleton” from js/window
?
@dnolen: planck has this issue, https://github.com/mfikes/planck/issues/218 where it seems like the cljs-readers differs from the Clojure reader wrt set
s with duplicate keys. Should issues be filed?
only if you have determined the issue has nothing to do with Planck will anything be considered
https://github.com/r0man/cljs-http jetmind , google gave me this
@noisesmith: thanks for the tip about the ->
operator for promise chaining! that’s quite elegant actually.
@jetmind: https://github.com/funcool/httpurr has a node client
you're welcome, feel free to ask any questions to me or @niwinz; we usually hang out in the #C093UFM4M channel
have regexps changed in recent history of clojurescript? seems a piece of code is breaking that used to be working alright
Clojurescript shouldn't have bearing on how regexps work, it's up to your Javascript engine.
@blissdev: some patches did land around string/replace
to make results align with Clojure so I wouldn’t be surprised if you need to tweak things
Hi… I am sure I must be doing something wrong as I only end up with these three lines in my generated JS file:
they're completely different things - thats the same as asking whether html or javascript is better
Om and React would be a better comparison
@progzilla: Om is a React wrapper; Hiccup is a templating language.
Oh I meant Reagent
@progzilla: A better question would be to compare om, reagent and rum/quiscent/other smaller projects.
agreed - reagent is easier to undestand
I would first start with this tutorial to get the basics right - https://github.com/magomimmo/modern-cljs/blob/master/doc/second-edition/tutorial-01.md
You can start with readme (https://github.com/reagent-project/reagent) + tutorials on the re-frame wiki (https://github.com/Day8/re-frame/wiki#reagent-tutorials)
This is the closest i could get on Reagent https://reagent-project.github.io/
think I started by looking at one of those todo apps and breaking it apart to see how it worked
@progzilla: yeah, that too. With this and the links I've given you should have a fairly good idea how to work with Clojurescript + reagent.
Though I would have hoped there's a more tutorial-like introduction to reagent, but I can't remember anything like that ; /
The beta version of Web Development in Clojure 2ed. is supposed to be released tomorrow, and it covers reagent and re-frame
Is there a way to programmatically tell if there were warnings or errors during a cljsbuild build?
@jaen: @lucien.knechtli Thanks guys. You're awesome
@danielcompton if i understand correctly maybe you can set a custom warning handler
I remember somebody was asking the same question some time agp