Clojure is the best dynamically typed language I've ever used, but it's still dynamically typed and for me, that's a deal breaker.
I'm still really glad I learned it as the first language I bought myself while I was in college. The lessons I learned from it have helped me when programming in any language. It taught me the value if immutability and pure functions whenever reasonable. Those principles are helpful no matter what you're working with unless you need extreme performance, which is very rare.
But I do find statically typed languages much easier to use when working with other programmers and when using libraries. It's often easier to work on a project by myself when it's statically typed. There's fewer things I have to keep track of in my head when the compiler and editor can use types to help me.
That's a great question. It's hit or miss and I'd say a lot of the libraries I use don't have specs because they're older.
However, I usually build my own layer around calls to those libraries and I can add specs there - and then with generative testing I can through test the abstraction before sharing it with others.
4
u/joequin Dec 19 '18 edited Dec 19 '18
Clojure is the best dynamically typed language I've ever used, but it's still dynamically typed and for me, that's a deal breaker.
I'm still really glad I learned it as the first language I bought myself while I was in college. The lessons I learned from it have helped me when programming in any language. It taught me the value if immutability and pure functions whenever reasonable. Those principles are helpful no matter what you're working with unless you need extreme performance, which is very rare.
But I do find statically typed languages much easier to use when working with other programmers and when using libraries. It's often easier to work on a project by myself when it's statically typed. There's fewer things I have to keep track of in my head when the compiler and editor can use types to help me.