This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-01-25
Channels
- # aws (2)
- # bangalore-clj (2)
- # beginners (90)
- # boot (89)
- # bristol-clojurians (1)
- # cider (23)
- # cljs-dev (48)
- # cljsjs (2)
- # cljsrn (3)
- # clojure (118)
- # clojure-argentina (3)
- # clojure-austin (8)
- # clojure-czech (1)
- # clojure-dev (18)
- # clojure-ireland (1)
- # clojure-italy (4)
- # clojure-russia (6)
- # clojure-spec (75)
- # clojure-uk (224)
- # clojurescript (103)
- # core-async (28)
- # cursive (3)
- # datascript (7)
- # datomic (15)
- # dirac (30)
- # emacs (14)
- # events (3)
- # figwheel (1)
- # hispano (1)
- # hoplon (176)
- # lambdaisland (1)
- # lein-figwheel (6)
- # off-topic (21)
- # om (7)
- # onyx (2)
- # pedestal (6)
- # re-frame (4)
- # reagent (15)
- # spacemacs (67)
- # specter (13)
- # testing (9)
- # untangled (65)
- # vim (6)
- # yada (1)
I’m pretty sure I’m expecting the cors headers on the request to fetch http://localhost:3449/index.html
I had the concern about injection of references to off-site js stuck in my head and so was expecting the cors headers from figwheel for index.html. That’s not what I should expect. I had to reread cors fundamentals, tweak my api server with cors headers.
any good reference for JS interop? e.g. a side-by-side code of implementing stuff with JS and CLJS
thanks @pesterhazy, I meant something like this: http://norvig.com/python-lisp.html
oh found one, might be useful: http://himera.herokuapp.com/synonym.html
is the cljs linkedin group abandoned? my join request has been pending for quite long
Probably a stupidly easy question here. When I attempt to lein minify-assets
or as part of an uberjar
task, I get the following error: "java.lang.IllegalArgumentException: No implementation of method: :as-file of protocol: #'http://clojure.java.io/Coercions found for class: java.lang.Character"
This is what happens when you update some dependencies and try to run a year-old project as-is 😄
somebody asked me if do they need to know JS to use CLJS, and it's quite difficult to answer 😞
I would say no if they are using one of the react bindings, as they abstract pretty well away from js interop
yeah, knowing JS is probably gonna be helpful since all of the runtime API documentation is given in JS.
I've taught my classmates a good amount of clojurescript with a decent amount of success after they took one course that used a lisp.
@piotr2b I think it's a bad idea to immediately present cljs with re-frame, something like reagent is more easy to digest for those who want to test the waters
I agree @dnolen, but it's just that some people think it's possible to literally go full cljs without any sort of js
on the flip side, some people are advising es6/7/8 before diving to cljs, which I think has the same effect or no?
you can’t really safely use es6/7/8 (requires source to source compilation)- and regardless what does that have to do with Clojure
To me it makes sense from the perspective of introducing some functional concepts if you are introducing functional concepts to a JavaScript programmer (if you need a to b comparisons, you could find them easier with es6+)
JS is functional the way that Scala is functional - only if you and your team really want it to be
to me that’s value proposition of Clojure, the whole ecosystem and idioms are functional by fundamental design
does anyone have any experience with tail call optimization? Having a really hard time trying to find if there are any workable solutions out there via trampoline, macro, whatever
I have to read and parse through a very large file line by line and am concerned about stack overflow if I do it functionally using recursion
@mattsfrey any reason not to use the loop structure?
@mattsfrey loop is clojure's way of doing recurrsion since the runtime doesn't natively support tail-call optimization
loop is clojure’s way of doing TCO recursion, specifically, forcing it — it will do regular recursion just fine without loop
I suppose thats the answer for now then, I had heard rumors of es6 TCO support at some point but haven't been able to dig up anything fairly modern about that development
@akiroz yes Haskell/PureScript focus on restraining mutation even more - but I remain unconvinced it matters much
people keep saying this typed functional thing is going to take off - but when people look for types they just want Java - thus TypeScript’s popularity
That support is browser dependent though, so just use loop/recur and let the compiler figure it out for you
anybody used react-native-maps (https://github.com/airbnb/react-native-maps) with “re-natal" with some success ?
speaking of figwheel how much work would it take to add readline support. I’m looking for a project to contribute to.
@7h3kk1d I normally just use rlwrap
@anmonteiro That’s what I’ve been using too but it seems to act up sometimes.
@talexxx can you provide a concrete example?
the backslash is the way to do it normally
cljs.user=> (clojure.string/replace "ca\"t" "\"" "n")
==>"cant"
@talexxx can you provide exactly what you're doing? Because just doing "\""
seems to work?
(string/replace ""Foo and bar and things" means" #"(")" "\"")
"\"Foo and bar and things\" means”
@mfikes the #
isn't actually required for replace
, but it works the same either way
(in this case...since I want an exact match and am not doing anything regex-y)
@talexxx yep, if you call println
on that, you should see the \"
go to "