7 ms·
That interface is certainly inconvenient to use, and potentially quite dangerous without a clearParameters(). It's not at all a rebuttal of the article, though
by ekiru 17y ago
That interface is certainly inconvenient to use, and potentially quite dangerous without a clearParameters().
It's not at all a rebuttal of the article, though. The article points out that the number of unit tests a design requires is larger for more complicated designs. An interface like yours would require no fewer tests than another interface exposing the same functionality using conventional function calls.