This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-05-27
Channels
- # admin-announcements (1)
- # beginners (1)
- # boot (37)
- # cbus (1)
- # cider (44)
- # cljs-dev (16)
- # cljsjs (2)
- # cljsrn (18)
- # clojure (205)
- # clojure-belgium (6)
- # clojure-china (1)
- # clojure-india (1)
- # clojure-russia (24)
- # clojure-spec (21)
- # clojure-turkiye (1)
- # clojure-uk (72)
- # clojurescript (91)
- # core-async (4)
- # cursive (12)
- # data-science (2)
- # datascript (2)
- # datomic (12)
- # emacs (6)
- # flambo (7)
- # funcool (12)
- # hoplon (24)
- # incanter (2)
- # jobs-discuss (29)
- # keechma (2)
- # lein-figwheel (2)
- # leiningen (2)
- # mount (13)
- # nyc (2)
- # om (76)
- # om-next (1)
- # onyx (38)
- # other-languages (4)
- # planck (40)
- # re-frame (33)
- # reagent (101)
- # ring-swagger (5)
- # slack-help (1)
- # untangled (7)
- # yada (14)
"ANALYSIS ERROR: Unmatched delimiter ) on file null, line null, column null" welp lein, not sure what you want from me
syntax error - you have an unbalanced parenthesis. you should use something like paredit http://danmidwood.com/content/2014/11/21/animated-paredit.html
once you’ve learned you’ll curse yourself for not learning it earlier
there’s no syntax in lisp (or it’s very minimal) so linters are not popular. there’s no syntax to check
generally you just evaluate forms inside your editor
it’s nice to have, unlike javascript where jslint is a must
I consider linters a must in general. Lightweight, make me worry less, automatically happens on save
yeah except in clojure saving you evaluate much more often than save
but try it out… good luck
in clojure you build your program interactively within your editor
or in the repl
anyway eastwood works for clojure, not for clojurescript
sec i’ll send you a link
something like that. https://www.youtube.com/watch?v=LiA56W3V3_w
Hello! I want to use cljsjs/selectize
but not like this (.selectize (js/jQuery (.getElementById js/document "#dropdown")))
Instead I want to create a fn that can generate a select, without bothering about any id
How could I do that?
Thanks in advance!
@leontalbot: make a function that wraps it?
Yes, something like (defn select [selectize-args body] ...)
@dabra : Hello I am very new to clojurescript. I have used clojure for a year , but not clojure script. Do you know if I can use vim to connect to figwheel.
Oh my god, I have javascript fatigue, and I'm not even using javascript.
where are things like "#js" and "js*" documented?
they are not on https://github.com/clojure/clojurescript/wiki/Differences-from-Clojure
and they are hard to Google 🙂
@nothingdhsp: You can connect to Figwheel with vim-fireplace. I had to apply a pending pull request to vim-fireplace to support configuring the repl environment.
@jcromartie: http://cljs.info/cheatsheet/ (not official though)
@jcromartie: this is better: https://github.com/cljsinfo/cljs-api-docs/blob/catalog/refs/syntax.md
thanks those are great
I found the cheat sheet but it didn't mention js*
and neither does the syntax ref
I wonder if it's safe to use
if it's undocumented
will it go away in the future?
what does it do? It's new to me.
@jcromartie: js*
is not safe to use, implementation detail
Thanks @dnolen
Is there anyway at the moment to make a synchronous http request in clojurescript? I need to make some http-requests before each of my tests run, and I need them to be synchronous, or at least complete before the other tests start.
At the moment Im trying to do it in the :before of the use-fixtures function.
@underplank: had you tried to use async tests? if you use cljs.test (the native one) it has this support: https://github.com/clojure/clojurescript/wiki/Testing#async-testing
I wasnt sure If I could do this in the :before block?
of use-fixtures? I guess its just a function/macro.
check the Async Fixtures on that same page, just after async tests 😉
facepalm
Hello all, trying to translate this but having a hard time from JS -> CLJS
var xScale = new Plottable.Scales.Linear();
any clues ?
I have tried so far:
(def x-scale (.Linear (.-Scales (new js/Pottable))))
but no luck :< any ideas ???@dviramontes: (def xScale (js/Plottable.Scales.Linear.))
note the .
at the end
@dviramontes: I think your original is correct
it’s not, he wants to instantiate Linear
and is instantiating Plottable
ah maybe "new" doesn't bind as tightly as I though it does in js
damn you, non-lisp!
new String.length
(error) vs (new String).length
@anmonteiro: that worked! thanks ^^
Hi, anyone know if there’s some docs on using ES6 from ClojureScript? I’m looking at the foreign-libs portion of https://www.niwi.nz/cljs-workshop/, but still have some questions.
The reason is that I’d like to use the Phoenix Framework’s channel client (written in ES6 js) from CLJS.
thanks, when you say bundle into a standalone, do you mean compile to its own js file?
ah, I’ll take a look at this: http://lukevanderhart.com/2011/09/30/using-javascript-and-clojurescript.html
i mean using browserify to bundle into a umd module so you can use it like a regular js file
Poll: would you rather have async functions prefixed with "a-" or "a" ? 👍 for "a-", 👎 for just "a"
Hmm, personally I wouldn't want an indicator in the function name. I prefer function names to explain "what" not "how"
This seems relevant: https://stuartsierra.com/2016/01/09/how-to-name-clojure-functions
I’ve got a single page, reacty app (etc) and want to provide a button allowing folks to download a CSV file of data I have locally (not on the server). Any tips?
Oh, maybe this is it: http://stackoverflow.com/a/14966131