3 ms·
Than you might not have seen good OOP designs. My experience is different -- when you really apply good OOP design to software, you can reduce complexity and co
by PythonicAlpha 11y ago
Than you might not have seen good OOP designs. My experience is different -- when you really apply good OOP design to software, you can reduce complexity and come to a clearer overall design. But of course the typical 5 day Java or C++ course will not get you there. You must learn to think in OOP -- and that is a process that might take years.
- sklogic 11y agoCould you please point to a classic example of a good OOP design, where it is clear that OOP made it simpler.
- deleted 11y ago[deleted]
- sklogic 11y agoYou sound like a religious adept. Open your eyes, just see the truth, blah-blah-blah. I asked for a very simple thing - a piece of code which is easy, robust and maintainable because of its use of OOP. All of the qualities are objective and easy to measure, regardless of your philosophy. There must be at leat some examples of this. If they do not exist, then your claims that OOP eliminates complexity are nothing but religion, not backed by any evidence at all.
- deleted 11y ago[deleted]
- dang 11y agoPlease stop, both of you.
- mcphage 11y ago> I asked for a very simple thing - a piece of code which is easy, robust and maintainable because of its use of OOP. All of the qualities are objective and easy to measure, regardless of your philosophy. How is that a simple thing? What are you looking for? If I showed you a piece of code which was I said was simple, robust, and maintainable, how would you know whether it's true or not, unless you know the language, the problem it's intended to solve, and have a personal history of maintaining it? No, you're asking a question with no possible answer, and then intended to use that lack as proof in your own mind.
- sklogic 11y agoI was looking for objectively measurable parameters. Lines of code, depth of nested constructs, average number of entities per functional block, code to documentation ratio, test coverage, bug history. Anything that can be expressed in numbers and does not depend on subjective views.
- minthd 11y agoWhat books will get you there?
- deleted 11y ago[deleted]
- sklogic 11y agoAnd how exactly patterns make life easier? Most of the classic OOP patterns are nothing but workarounds for the complexities introduced by using the OOP in the first place. Without OOP these problems would not exist at all. Why people are so keen on solving problems they just created for no good reason at all?
- lambda_ronin 11y ago"For example, in the OO world you hear a good deal about "patterns". I wonder if these patterns are not sometimes evidence of case (c), the human compiler, at work. When I see patterns in my programs, I consider it a sign of trouble. The shape of a program should reflect only the problem it needs to solve. Any other regularity in the code is a sign, to me at least, that I'm using abstractions that aren't powerful enough - often that I'm generating by hand the expansions of some macro that I need to write." from http://www.paulgraham.com/icad.html http://www.paulgraham.com/icad.html