|
|
|
|
|
by kyralis
2210 days ago
|
|
You're talking yourself in circles. Your final sentence contradicts the remainder of your point. Testing is limited when you do not have the ability to fully control state, and understanding can be limited when information is hidden. The impacts of this are determined by the information being hidden, its relationship to the function's behavior, and the documentation of that behavior relative to the calling context. Limitations on the ability to fully control state are orthogonal to the method of information hiding (opaque function parameters, internal object state, etc). This is not an OOP/functional discussion, this is a discussion about the tradeoffs inherent in information hiding. And let's be perfectly clear here: These are tradeoffs, not black and white clear wins in either direction. |
|
It's been a useful discussion though so I appreciate everyone's input.