Re: I really hate .NET especially inside Delphi



Tim Jarvis [Borland/DTG] wrote:

Nick Hodges (Borland/DTG) wrote:

David Berneda wrote:

I think he refers to the ability (like C#) for a unit to
contribute to an arbitrary namespace,

In my view, this is an inferior solution, as it makes for arbitrary
code that can be scattered all over creation. I prefer the unit
name to clearly determine what the namespace is. I realize other's
prefer the "C#-way". That's cool -- to each his own. But to get
from "Delphi does namespaces in a way different than C#" to "Delphi
for .NET sucks is a pretty large chasm that I dont' think can be
leaped.

One of the nice advantages of being able to spread namespaces over
multiple files is in multi-developer project environments, for example
we ourselves have a situation where our common controls ( TEdit,
TListBox etc etc) are all contained in one unit, and unless you are
happy to merge your checkins (fine with Starteam, subversion etc but
out of the question with Source-Safe) it's awkward to split it up for
team development.

Sometimes it simply does make sense for tightly coupled and related
classes to be contained in the same naming and reference scope, but
equally advantageous to be in it's own physical file. (most noticiable
in component suites)

Regards

Oh, and just to be clear, Delphi.NET does allow for this. So the major
flexibility point that people are talking about is covered, its just
the other way that is not covered (multiple namespaces in one file)
which IMO is not really that good an idea, in 2 years of C# coding
(which allows this feature) I have never once needed or used it.

Cheers Tim.

--
Tim Jarvis
Product Evangelist APAC Team Lead (DTG)
.



Relevant Pages

  • Re: File Descriptors
    ... Ian Bell wrote: ... >> or namespaces. ... >IMHO this is simply equivalent to multiple files in C which I personaly ... source files is through; ...
    (comp.lang.tcl)
  • Re: I really hate .NET especially inside Delphi
    ... to an arbitrary namespace, ... to clearly determine what the namespace is. ... multiple files is in multi-developer project environments, ... Product Evangelist APAC Team Lead (DTG) ...
    (borland.public.delphi.non-technical)