Re: About speed
- From: "Joanna Carter [TeamB]" <joanna@xxxxxxxxxxxx>
- Date: Tue, 27 Jun 2006 10:15:29 +0100
"Dave Nottage [TeamB]" <rot13.qnivqa@xxxxxxxxxxxxxx> a écrit dans le message
de news: 44a0ecd3$1@xxxxxxxxxxxxxxxxxxxxxxxxx
| I'm interested to know which feature most would consider to be
| significant, next to generics.
Generics has to be the most significant feature which has radically changed
my code, allowing me to scrap a great deal of "typesafe" code that was mere
repetition with the type changed.
Apart from that :
Interfaces that no longer follow the COM model. This makes it impossible to
keep Win32 code that *had* to use QueryInterface, _AddRef and _Release in
order to keep track of what interfaces were supported, etc. I also found
that, in Win32, I had to create a great many more interfaces, just to avoid
mixing object and interface references. .NET 2.0 interfaces are much simpler
to manage and now I have a lot less interfaces, much to Jim Cooper's relief
:-)
Multicast Delegates. These allow me to scrap having to implement the
Observer pattern as a separate concern in every class, every time I wanted
multicast notification.
Reflection as opposed to the limited RTTI allows me to examine properties
without having to declare them as published; now I can have "RTTI" even on
private fields, methods, events, etc. The caveat is that you don't overuse
reflection as there is a speed penalty involved.
Attributes are a great way of extending the metadata available, once again,
as long as you don't overuse them.
The whole .NET framework just has so many useful classes, interfaces and
delegates that have caused me to scrap so many little utility class that I
had to write in Win32. e.g. most of my MVP framework has bitten the dust due
to the Binding class provided by the framework. If I were to continue using
my MVP as it wass, I would have been fighting how the "data-aware" framework
wanted to work.
There's more but, for me, these features alone were enough to persuade, not
only me but, my client who wanted to rewrite his large application in a much
more modular fashion and could have chosen Win32, but needed to think about
future OSs like Vista.
Joanna
--
Joanna Carter [TeamB]
Consultant Software Engineer
.
- Follow-Ups:
- Re: About speed
- From: Jolyon Smith
- Re: About speed
- From: Dave Nottage [TeamB]
- Re: About speed
- References:
- Re: About speed
- From: Árpád Soós
- Re: About speed
- From: Bryce K. Nielsen
- Re: About speed
- From: Craig Stuntz [TeamB]
- Re: About speed
- From: Bryce K. Nielsen
- Re: About speed
- From: Ingvar Nilsen
- Re: About speed
- From: Bryce K. Nielsen
- Re: About speed
- From: Ingvar Nilsen
- Re: About speed
- From: Bryce K. Nielsen
- Re: About speed
- From: Joanna Carter [TeamB]
- Re: About speed
- From: Ingvar Nilsen
- Re: About speed
- From: Robert Giesecke
- Re: About speed
- From: Barry Kelly
- Re: About speed
- From: Alex
- Re: About speed
- From: Robert Giesecke
- Re: About speed
- From: Alex
- Re: About speed
- From: Joanna Carter [TeamB]
- Re: About speed
- From: I.P. Nichols
- Re: About speed
- From: Joanna Carter [TeamB]
- Re: About speed
- From: Dave Nottage [TeamB]
- Re: About speed
- From: Joanna Carter [TeamB]
- Re: About speed
- From: Dave Nottage [TeamB]
- Re: About speed
- Prev by Date: Re: Delphi in more schools (was Microsoft here I come)
- Next by Date: Re: Truncating BCDs
- Previous by thread: Re: About speed
- Next by thread: Re: About speed
- Index(es):
Relevant Pages
|
|