Fork me on GitHub
#beginners
<
2016-08-02
>
krchia00:08:02

@seancorfield: right - i’ll try to avoid that approach in the future (directly translating from js to cljs)

krchia00:08:35

i wonder if there any resources that show you how js code is mapped to cljs code'

seancorfield01:08:18

Unlikely — because of the above considerations. You can’t map at the code level, you have to map at the problem solution level.

kauko07:08:54

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

dominicm07:08:45

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.

krchia08:08:25

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?

krchia08:08:02

it’s definitely not idiomatic code, but it is the same output for both js and cljs versions

val_waeselynck20:08:19

@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