3 ms·
I've found static analysis (and related concepts e.g. type systems) to be extremely useful for safely refactoring code. Much more so than tests, which tend to j
by CodexArcanum 10y ago
I've found static analysis (and related concepts e.g. type systems) to be extremely useful for safely refactoring code. Much more so than tests, which tend to just break and require rewriting. But as you say, once the code base is mature that kind of large scale code shuffling is less likely. (Not to speak poorly of testing, I'm a big fan of that too. Why not use every tool at one's disposal to ensure quality?)
- TickleSteve 10y agotrue, though there is a difference.... SA will capture issues related to the implementation but in itself it has no knowledge of application-specific behaviour. Tests on the other hand do have application-specific knowledge and this is where their value lies.