This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-08-02
Channels
- # admin-announcements (3)
- # architecture (5)
- # beginners (10)
- # boot (223)
- # cider (13)
- # cljsjs (2)
- # cljsrn (50)
- # clojure (208)
- # clojure-austin (16)
- # clojure-belgium (1)
- # clojure-india (1)
- # clojure-poland (13)
- # clojure-russia (130)
- # clojure-spec (27)
- # clojure-uk (144)
- # clojurescript (135)
- # css (2)
- # cursive (10)
- # datavis (1)
- # datomic (29)
- # dirac (9)
- # funcool (2)
- # hoplon (41)
- # jobs (3)
- # leiningen (6)
- # om (37)
- # onyx (20)
- # pedestal (1)
- # planck (1)
- # proton (4)
- # re-frame (45)
- # reagent (17)
- # rethinkdb (16)
- # ring-swagger (19)
- # schema (5)
- # specter (93)
- # sql (16)
- # test-check (33)
- # untangled (7)
@seancorfield: right - i’ll try to avoid that approach in the future (directly translating from js to cljs)
Unlikely — because of the above considerations. You can’t map at the code level, you have to map at the problem solution level.
It can take a while to get into the FP mindset, don't be discouraged. 🙂 What helped me (coming from a js background) was that before I started doing clojure, I'd experimented with RxJS
From a js background, I was used to using transpilers which mapped 1-to-1 with js (Babel and Coffeescript for example) Clojurescript is totally different.
i’m not sure if the community at large could use this, but i have a lot of code samples where i’ve basically translated js stuff into cljs versions that could be good examples; it was a lot of pain for me to learn like this and i - think - it might be helpful for others?
it’s definitely not idiomatic code, but it is the same output for both js and cljs versions
examples : https://github.com/xtrntr/cljs-d3/tree/master/src/cljs/cljs_d3 https://github.com/xtrntr/cljs-2048
https://kanaka.github.io/clojurescript/web/synonym.html there is some bits here too
@krchia: I made such a comparison in a presentation for the Paris.js Javascript meetup, maybe it'll help: http://slides.com/valwaeselynck/clojurescript-parisjs#/16