4 ms·
" I started by rolling my own over and over again, only to discover a data structure or technique that erases 50 LOC and opens up a whole new world of program r
by plinkplonk 14y ago
" I started by rolling my own over and over again, only to discover a data structure or technique that erases 50 LOC and opens up a whole new world of program reuse. I have zero idea how someone coming from Python, Java, or Ruby would handle the transition, but I imagine it would be very messy at first."
This is a good point and keeps happening to me. Otoh, there are a lot built in (and so a lot not to reproduce accidentally). clojure/core has > 500 symbols in it[1]. Is there a systematic way to learn what is 'built-in' to Clojure vs waiting till one stumbles across specific items?
[1] (count (ns-publics 'clojure.core)) --> 580
(on the version of Clojure on my machine -> 1.4.0)
- ataggart 14y agoThe cheat sheet's groupings can make finding things easier. http://clojure.org/cheatsheet http://clojure.org/cheatsheet
- snprbob86 14y agoDo the puzzles at www.4clojure.com and be sure to "follow" the top 20 or so users. Once you solve the puzzle, you're shown the solutions of those users that you follow. I learned a lot of neat tricks that way!
- piranha 14y agoI read [1] and discovered some stuff there, but it's a bit hard to find new things there when you don't have application for them. In this case [2] really helped me - I subscribed to some top-solving users and after solving a problem I learned alternative approaches. [1]: http://clojuredocs.org/quickref/Clojure%20Core http://clojuredocs.org/quickref/Clojure%20Core [2]: http://4clojure.com/ http://4clojure.com/