3 ms·
hey great tutorial! really easy to go through, super helpful. My only suggestion : it would be great to have a small reference/cheatsheet/table to convert equi
by euphemize 13y ago
hey great tutorial! really easy to go through, super helpful.
My only suggestion : it would be great to have a small reference/cheatsheet/table to convert equivalent data structures and other syntactic details from closure to other languages. I found myself scrolling back up a lot to remember what "def" meant (coming from python this was confusing), whether "vector" was a dict or a list, etc. It interrupted the reading for a few seconds every time until "ah ha!" I found it.
I remember spending about 50% of my time learning Mongo syntax just checking out their mysql <-> mongo syntax table - I assume most people checking out your tutorial will have experience with some previous form of programming (like me).
- elwell 13y agoI think most FP's will wince at the notion of a 1:1 comparison with any imperative language.
- masklinn 13y agoHe's not really asking for a 1:1 comparison though, just a mapping of common constructs (and a note when a construct makes no sense) in order to get his bearings.
- ryanatkn 13y agocljs <-> js http://himera.herokuapp.com/synonym.html http://himera.herokuapp.com/synonym.html
- masklinn 13y agoA bit outdated though e.g. for the first one, since 0.0.2060 cljs has grown (enable-console-print!) which sets print-fn to a wrapper around console.log. As a result, one can use all the usual clojure printing functions[0] and the output will be sent to the browser console. [0] http://clojure.org/other_functions#Other%20Useful%20Functions%20and%20Macros-Printing http://clojure.org/other_functions#Other%20Useful%20Function...
- elwell 13y ago(not= "Clojure" "ClojureScript")
- nonrecursive 13y agoGreat suggestion. Thank you!