News for hackers. Stuff that matters.
Re:Why I'm Productive in Clojure (2013) by kimi on Sunday October 22, 2017 @02:16PM (#15528123)
Dynamically, but there are some libraries out there that are working to bring static analysis on steroids to spec-enabled code. And as spec is opt-in, you can spec just how much (or little) you find useful.
Re:Why I'm Productive in Clojure (2013) by ngrilly on Sunday October 22, 2017 @04:17PM (#15528708)
Interesting. Any link?
Re:Why I'm Productive in Clojure (2013) by kimi on Monday October 23, 2017 @01:42AM (#15530969)
Sure: https://github.com/arohner/spectrum

I think the main advantage of a type system (e.g. Java's) is that it avoids a lot of stupid mistakes; and therefore does help refactoring because most "stupid" changes will simply not compile (rename a function but forget it's used in 3 other places? boom)

Static analysis with Spec might be a great booster because it gets you the expressiveness of Spec to static code reasoning.

Re:Why I'm Productive in Clojure (2013) by ngrilly on Wednesday October 25, 2017 @05:03AM (#15548544)
Thanks for the link.

I've used static and dynamic languages. When using a dynamic language, I usually don't miss static language features, except when refactoring and/or maintaining a large code base. It's the reason why I'm interested by Flow and TypeScript (in the JS ecosystem), mypy (in the Python ecosystem) and even static languages like Go. It's also the reason why I'm a bit reluctant to invest in Clojure, despite being interested by the language.