3 ms·
I came here to make the same point about statically typed languages. My previous job mostly involved writing web servers/services in Python. A lot of the exis
by rockostrich 9y ago
I came here to make the same point about statically typed languages. My previous job mostly involved writing web servers/services in Python. A lot of the existing unit tests in our codebase were solely there to check for type safety (one of the developers that had been there for most of the lifetime of the codebase over engineered a bit with OOP in Python). Now at my current job, we use Scala. I still prefer Python for scripting, but it is very nice to be able to write code and have the compiler do most of the work when it comes to making sure everything fits nicely together.
- freedomben 9y agoThis has been exactly my experience after working for years in Ruby and returning to Java & Golang. It truly does take me longer to write code without my precious Ruby, but that time is more than made up for by not having to write tests for every single possible code path, purely to check for type safety. I've also experienced an unexpected benefit in that it is a lot easier to read other people's code since types are explicit and easy to see.