HNHacker News
TopNewBestAskShowJobs

richcole2

2 karma · joined December 19, 2015

submissionscomments
richcole2··on Design Patterns in Clojure
Try :mssage instead of :message and see if you get a compile time error
richcole2··on Design Patterns in Clojure
Really nice writeup of patterns. What turned me off Clojure is that the dynamic typing makes it very hard to refactor. e.g. even renaming a function is really quite difficult, let alone adding function parameters. Forget extracting a function. The dynamic typing also means a typo can yield a nil that travels far from the mistake site making debugging difficult. There are hints towards better debugging in clojure, but last time I checked it was still very much a work in progress. Also lazy lists are easy to screw up, e.g. if you put a concat inside a reduce then stack go boom.

Still this is a great post because it teaches you both good Clojure and the design patterns. Since java has closures now you can take a lot of what you learn from Clojure and put it in your well typed and refactorable Java programs.