Re: How's dot.net doing nowadays?
- From: "Ralph" <nt_consulting64@xxxxxxxxx>
- Date: Wed, 23 Jan 2008 14:12:45 -0600
"Robert Conley" <robertsconley@xxxxxxxxx> wrote in message
news:657196a0-6605-46b0-86c8-571855294b92@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On Jan 23, 12:11 pm, MM <kylix...@xxxxxxxxxxx> wrote:all of
On Wed, 23 Jan 2008 10:47:51 -0600, "Ralph"
<nt_consultin...@xxxxxxxxx> wrote:
"MM" <kylix...@xxxxxxxxxxx> wrote in message
news:217ep316uuqd5jcq8rc8daspdjsg9652aj@xxxxxxxxxx
On Tue, 22 Jan 2008 14:20:20 -0600, "Ralph"
<nt_consultin...@xxxxxxxxx> wrote:
<snipped>
So... what's the most important feature of OOP? Information hiding?
MM
That's a tough one.
That's why I asked it! (There is actually no one, single answer.)
OO itself isn't just a collection of features, it is the sum total of
single onethem working in concert. A gestalt if you will. And there isn't a
http://www.amazon.com/Refactoring-Improving-Existing-Addison-Wesley-Technology/dp/0201485672/ref=pd_bbs_sr_1?ie=UTF8&s=books&qid=1201114268&sr=8-1of those features that couldn't be replicated with a non-OOPL.
That's kinda also why I asked it...
Actually there are feature more important than others if you look at
real world systems. The ability to combined subroutines with the data
it works on is the first step, and the ability to define and implement
interfaces is next. Followed by Inheritance to reuse behavior. With
the first two I can implement just about any object oriented pattern,
algorithm, or design. Having the third would cut down on a lot of
typing.
The next level would be property procedures, the ability to check an
object variable not only for type to be to see if it is the SAME
object as what contained in another object variable, the ability to
use generics i.e. templates, constructors and destructor procedures,
constructors with parameters.
In the point of all this is to cut down the amount of coding you have
to implement any one feature. It also makes MAINTAINING existing code
a lot easier. Especially opposed to cut and paste programming. Finally
it makes fully automated testing considerably easier. Enough so you
can make the addition and use of automated tests as part of your
compile cycle instead of your release cycle.
For the maintaince benefits see Refactoring by Martin Fowler
The
For automated testing see
http://www.vbunit.com/
you can also do a google search using vb6 unit testing.
Nunit is the best unit testing library out there and using .NET it can
be used to test VB6 software. (By using the ability of .NET to access
COM objects) However I recommend finding a Vb6 only solution.
But if taken to the mat I would have to say it is the 'object' itself.
collaborationability to define an Type, write it, test it, and use it in
with other Types, without regard to what it might "actually be".
Can every program that has ever existed be (re)written using a
procedural language?
Generally Yes.
There are languages with unique features that can't be easily or at
all replicated in other languages. Lisp is the canonical example of
this. The feature that gives the most trouble is Lisp ability to
create code during runtime and execute it like if it was a procedure
written before compiling. This is not the same as function pointers.
An example of this is doing a search on a list with unknown
parameters. In Vb6 we construct a query in a string and pass it off
the database engine but Lisp can do it within the language itself.
Lisp is hardly a "Procedural Language", but in any case it doesn't make a
difference how the runtime code got there - it is all procedural from that
poin on.
We are not talking about whether another computer language can duplicate the
'features' of another language - the question is whether any program could
be re-written using a procedural language, regardless of what it was
originally written in.
The answer is Yes with no exceptions.
-ralph
.
- Follow-Ups:
- Re: How's dot.net doing nowadays?
- From: Robert Conley
- Re: How's dot.net doing nowadays?
- References:
- Re: How's dot.net doing nowadays?
- From: MM
- Re: How's dot.net doing nowadays?
- From: Steve Gerrard
- Re: How's dot.net doing nowadays?
- From: Robert Morley
- Re: How's dot.net doing nowadays?
- From: Steve Gerrard
- Re: How's dot.net doing nowadays?
- From: Robert Morley
- Re: How's dot.net doing nowadays?
- From: Steve Gerrard
- Re: How's dot.net doing nowadays?
- From: Ralph
- Re: How's dot.net doing nowadays?
- From: David McDivitt
- Re: How's dot.net doing nowadays?
- From: Ralph
- Re: How's dot.net doing nowadays?
- From: MM
- Re: How's dot.net doing nowadays?
- From: Ralph
- Re: How's dot.net doing nowadays?
- From: MM
- Re: How's dot.net doing nowadays?
- From: Robert Conley
- Re: How's dot.net doing nowadays?
- Prev by Date: Re: Error 3163 problems
- Next by Date: Re: Panics
- Previous by thread: Re: How's dot.net doing nowadays?
- Next by thread: Re: How's dot.net doing nowadays?
- Index(es):
Relevant Pages
|