This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-11-11
Channels
- # admin-announcements (71)
- # beginners (8)
- # boot (109)
- # cbus (5)
- # cider (27)
- # cljsrn (77)
- # clojure (65)
- # clojure-austin (5)
- # clojure-berlin (1)
- # clojure-brasil (1)
- # clojure-dev (58)
- # clojure-japan (15)
- # clojure-russia (193)
- # clojure-seattle (3)
- # clojurescript (120)
- # cursive (19)
- # data-science (1)
- # datomic (10)
- # docs (1)
- # editors-rus (17)
- # emacs (2)
- # events (1)
- # funcool (7)
- # hoplon (2)
- # jobs (1)
- # jobs-rus (16)
- # ldnclj (7)
- # leiningen (3)
- # off-topic (12)
- # om (450)
- # onyx (122)
- # re-frame (69)
- # reagent (28)
- # yada (20)
Should I use cljs.reader/read-string
or js/parseInt
to convert numeric user input after sanitization to an integer?
I would suggest the latter as read-string
can read many more things than you may want to allow/accept.
I understand we are not quite there yet, but still: What needs to be done to get an nrepl server running in node?
this will probably sound stupid (today is not my best day …) but is there something like an inserted sorted set in cljs?
turns out ClojureScript doesn’t need to do anything at all, the clojure.core.server
is generic enough
@mfikes well this is about starting REPL servers, so you won’t be able to do that on mobile
Cool. I need to put some thought into cleaner initialization of Ambly with respect to its discovery “choose device” phase.
@dnolen for tooling to work we'd need :repl/attach
. is that already supported? can't find it
unlikely to see further changes I suspect at this point but you can check in with @alexmiller
@dnolen: Sweet. Socket REPL works just fine with Ambly. I’ll write up a short blog post note on it. No surprises… good thing is that the discovery phase works fine over the socket.
Thanks to @alexmiller (or whoever was involved), that was trivial
yep I thought I would have to do something special but happily we just adopted the clojure.main approach earlier this year
ClojureScript Node.js REPL server listening on 54882 java.lang.AssertionError: Assert failed: (or (file? x) (url? x) (string? x))
there’s already examples of how to get the nREPL style stuff out of this design if that’s your cup of tea
@dnolen: I’m trying out om.next, using the quick start. Seems like I have to require om.core to use js/ReactDOM.render but the quick start examples don’t. Is it just me? (I’m almost at the point where I’ll use add-root! so I expect I won’t need om.core for long.) … and thanks for the great stuff!
Cool @shaunlebron is topping HN with Parinfer
Wow, looks neat, considerably better than having to remember paredit shortcuts. Now someone just needs to get it into Cursive : D
the Atom extension is mostly working; you can try it out right now
let me know if you run into anything
Nice. I’m a bit of a Clojure n00b, but I’m not grokking paredit, so I’ll give it a spin.
you are precisely the target audience for Parinfer then
What about slurp and barf within a single line? I guess you would still need hotkeys for that, right?
@ordnungswidrig: from the example on the project’s page it looks like inserting and deleting parens can automagically trigger a slurp/barf
Yes but not necessarily where I want it in a long line?
I was thinking about (+ a b)
=> (+ (or a 1) b)
parinfer: (+ |a b)
insert [
=> (+ (a b))
I see when I insert the )
it corrects it
I’m generating some cljs sources and got an interesting problem. Some names clash with cljs.core stuff: "WARNING: update already refers to: cljs.core/update being replaced by: …" I would like to use :refer-clojure :exclude, but how to reliably know list of symbols defined in cljs.core? so I can mention only clashing ones. Clojure’s :refer-clojure :only would solve my problem beautifully, but it does not seem to be supported under clojurescript 😞
I had decent luck with that on a project a couple weeks ago
@kevinmershon: So it would auto build it, and inject the resulting css with figwheel?
I don't think I got figwheel to watch for changes, no. I was running a second terminal with lein recompiling scss to do it if I remember correctly. Not as clean as it should be
Yeah, I guessed that was the way to use it, but definitely seems clunky. Thanks though.
Ah no, I was using lein-sass 0.3.7 not lein-scss.
I’m not super familiar with Leiningen/Figwheel yet, so I dunno what is possible, but not many front end devs write pure CSS anymore…at least not in my experience.
My best guess would be to use figwheel's :notify-command and add your sass/scss path to the watched folders
@puppybits: you could write a macro that uses slurp, e.g. https://groups.google.com/forum/#!searchin/clojurescript/slurp/clojurescript/zfnK8Wxg-bM/-V8WZ2sxWlQJ
I can’t get externs to work on my project. I want to export some functions that are on the window. how do I do that
I think we should consider this: https://ekmartin.com/2015/slack-irc/