This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-09-03
Channels
- # bangalore-clj (1)
- # beginners (16)
- # boot (23)
- # chestnut (5)
- # cljs-dev (3)
- # cljsjs (3)
- # clojure (115)
- # clojure-conj (3)
- # clojure-italy (17)
- # clojure-russia (22)
- # clojurescript (20)
- # core-async (11)
- # events (3)
- # fulcro (91)
- # funcool (5)
- # heroku (7)
- # hoplon (5)
- # leiningen (3)
- # off-topic (2)
- # om (1)
- # onyx (9)
- # parinfer (1)
- # protorepl (2)
- # re-frame (3)
- # slack-help (2)
- # spacemacs (5)
- # unrepl (1)
@mfikes : thanks! I figured out what I was going wrong. I did (:import [http://goog.net EventType]), then I tried to do EventType/OPEN when instead, I should have been doing EventType.OPEN
in 2k17 any good resources for getting started with clojurescript? preferably in video form?
plz mention me since late
@benny any reason not to use env vars? http://12factor.net/config
or are you talking about service discovery?
yeah i ended up finding https://github.com/weavejester/environ to help bring in environment variables in a more idioamtic way
env vars work well, thanks @au-phiware
@benny I ended up writing this: https://github.com/binaryage/env-config
I'm using it for env settings https://www.w3schools.com/tags/att_global_data.asp I set the env on backend, then I generate the index.html with env data.
@blackxored Both https://purelyfunctional.tv/ and https://lambdaisland.com/ have great clojurescript videos
I’m working with a javascript framework, their examples show building a class for the database adapter, im trying to do this in cljs, how can I define a constructor for something made with deftype
?
hi! I'm using reagent to set the focus on an input component when it's mounted/updated. However, randomly it does not work. Any idea what could it be? Still the dom element is replaced after mounting?
thanks @vinai will check them up
@flyboarder the constructor is made for you
it sets all of the data elements in order
so (deftype Foo [a b c])
you can call the constructor like any other JavaScript constructor
(Foo. 1 2 3)