2 ms·
After years of software design, I can say with a high level of confidence that classifying the nouns and verbs properly is a prerequisite to quality OO code (fr
by AlisdairSH 13y ago
After years of software design, I can say with a high level of confidence that classifying the nouns and verbs properly is a prerequisite to quality OO code (from both a functional AND longevity standpoint).
If you fail to do that up-front analysis, you may end up with functional code. But, the likelihood that it is readable, maintainable, extensible, etc is much lower.
This isn't to say that all good code is OO. Only that writing good OO code requires you to define the objects andt their interactions well.
- CraigJPerry 13y agoHere framing the problem around a Walk class makes for a more elegant implementation but the proscribed steps will never get you there.