3 ms·
I think what replaces static typing as a safety rail in dynamic languages is testing, and the rise of dynamic languages the last 1-2 decades has been made possi
by BurningFrog 7y ago
I think what replaces static typing as a safety rail in dynamic languages is testing, and the rise of dynamic languages the last 1-2 decades has been made possible by the parallel rise of automated test suites.
Personally, I would not attempt large refactorings without a decent test suite. I consider enabling fast and safe refactoring to be the main advantage of test suites!
- pjmlp 7y agoExcept that as anyone on large enterprise projects knows, unit testing is the bullet point that comes just after having documentation ready.
- mxz3000 7y agoI have to disagree. Unit testing comes as soon as you write _any_ code. You write a new function/class? Your pull request better have unit tests for it or I'm rejecting that shit.
- pjmlp 7y agoIs the customer paying for the work hours doing code reviews? If they do, usually code reviews come after unit tests.
- BurningFrog 7y agoI don't doubt that true in many places. Writing tests is also an absolute must in many organizations. My advice to you is to look for work in organizations that are not garbage. We're out here!