Re: Delphi kicks C# butt
Mike Margerum writes:
Quote
>
Very true. I use OO quite a bit but it took me many years to really
grasp it to the point where I used it naturally. I was stuck writing
C+ because my brain worked procedurally after 7 years of C
programming.
I went through the same process, I had programmed professionally for 6 years
and informally off and on for the preceding 10 before I began learning OO.
But now (for a long time now) I can not imagine coding anything without
objects no matter how simple the application.
Quote
I don't think you are getting me. As I said, OO can make people more
productive by USING a framework like the VCL. I question it's
usefulness when building your OWN objects because most people are just
writing procedural code that is wrapped up in objects anyhow.
I get you, but I disagree...
Quote
I rarely see polymorphism or proper inheritance implemented by a
programmer whose code I inherit. it is mostly just badly written and
organzied objects. I'd have almost rather had them just build
procedures with local statics.
With this I can agree, I have seen some horrible things done by people who
thought they were using OO and in such cases it is no less spaghetti then
any other horrible code (arguably it can be even worse). However, on the
first part, inheritance/polymorphism are not the only justifications for
objects. Sufficient justification is simply organization of code and data.
In an application of any real size, the majority of objects will never use
inheritance or polymorphism nor ever be used in other applications.
Quote
Sometimes it easier to build applications procedurally when you don't
have the proper design up front. I find having to write and refactor
objects prohibitive when I am coding on the fly.
I don't. Even when I am just playing around with things for research or
learning, I think in terms of objects. Of course it could be done without
objects, but I just don't think of it anymore. Creating objects to represent
the things I am trying to do has become my method of thinking about and
solving programming problems.
--
Wayne Niddery - Logic Fundamentals, Inc. (
www.logicfundamentals.com)
RADBooks:
www.logicfundamentals.com/RADBooks.html
Bandwagons are like streetcars, there'll be another along in a few
minutes.