3 ms·
I've read and enjoyed quite a few of Fowler's articles. The things I've taken from his writings have been concretely valuable so far too. I'm not experienced en
by jammygit 8y ago
I've read and enjoyed quite a few of Fowler's articles. The things I've taken from his writings have been concretely valuable so far too. I'm not experienced enough though to evaluate how his ideas stand up in big or complicated projects.
Can anybody comment?
- danmaz74 8y agoI can't comment on other articles, but I would be careful with some suggestions about mocking everything in automated tests. I've seen a couple of totally botched projects because of that approach.
- jammygit 8y agoHow did the mocks do the damage? Lack of integration tests, wasted time, or something else?
- billsix 8y agoIt results in tautological tests.
- softawre 8y agoNot really. I mean, you're still testing that the compiler works and that the memory works. ;)
- danmaz74 8y agoYes, the biggest problem was the lack of integration* tests: you can get a false confidence that everything is working, but you only know that the individual cogs are built to spec, not that the machine is working. Second problem was that refactoring became much harder, because the tests were deeply tied to the implementation (are methods X, Y and Z called with such and such arguments?). * using the definition of "integration" as "integrating components of the project", not "integrating with external services" (which is the definition I personally prefer).