Naming Conventions: Avoiding Conflict 
Author Message
 Naming Conventions: Avoiding Conflict

Il cervello cattivo di Ronald S. Cook produceva il seguente:

Quote:

> At some point, most of us will likely want to create an Employee web form
> (or similar) and an associated similarly named class.

> Well, if you create your web form Employee.aspx it will create a class named
> (by default) "Public Class Employee" underneath.  Now, if you then go to
> create a class (Employee.vb), it will do the same thing and you will have a
> conflict.

> What naming convention does Microsoft recommend to avoid this conflict?

> I certainly don't want to name my form EmployeeWindow or something {*filter*}
> like that.

> I have considered changing my underlying class names to frmEmployee and
> clsEmployee but Microsoft is now preaching against the use of Hungarian
> notation.

That's all utter bullsh*t, don't listen to it. Just go and use the
Hungarian notation.
Sometimes they just have some really crappy ideas - other example: "We'll
go back now to the time before Win 95 and start using ini files again, only
this time they'll be much more complicated because they're in Xml." Same
bullsh*t here. Just ignore it if they have one of these really crapppy
ideas again.

--
Tenchi (remove 'spam.be.gone' for emails)

My VB.net Download-Manager (Version 1.12.1400)
Homepage: http://www.*-*-*.com/
Mailing list: http://www.*-*-*.com/



Tue, 08 Feb 2005 20:19:35 GMT  
 Naming Conventions: Avoiding Conflict
Actually, I like the XML idea. Having your end-users edit the register was
always a bit scary. They either would refuse to do it (a good stance on the
issue IMO) or they would break their PC trying to do it. I've continued to
use INI files because they are easy to backup, easy to edit, etc.

XML is a bit more complex I admit, but its also a bit more robust than the
INI file. I'm just hopping someone comes up with a good editor for these
files to make it easer to edit them.

Marc


Quote:
> Il cervello cattivo di Ronald S. Cook produceva il seguente:

> > At some point, most of us will likely want to create an Employee web
form
> > (or similar) and an associated similarly named class.

> > Well, if you create your web form Employee.aspx it will create a class
named
> > (by default) "Public Class Employee" underneath.  Now, if you then go to
> > create a class (Employee.vb), it will do the same thing and you will
have a
> > conflict.

> > What naming convention does Microsoft recommend to avoid this conflict?

> > I certainly don't want to name my form EmployeeWindow or something {*filter*}
> > like that.

> > I have considered changing my underlying class names to frmEmployee and
> > clsEmployee but Microsoft is now preaching against the use of Hungarian
> > notation.

> That's all utter bullsh*t, don't listen to it. Just go and use the
> Hungarian notation.
> Sometimes they just have some really crappy ideas - other example: "We'll
> go back now to the time before Win 95 and start using ini files again,
only
> this time they'll be much more complicated because they're in Xml." Same
> bullsh*t here. Just ignore it if they have one of these really crapppy
> ideas again.

> --
> Tenchi (remove 'spam.be.gone' for emails)

> My VB.net Download-Manager (Version 1.12.1400)
> Homepage: http://www.*-*-*.com/
> Mailing list: http://www.*-*-*.com/



Tue, 08 Feb 2005 20:37:07 GMT  
 Naming Conventions: Avoiding Conflict
Il cervello cattivo di "Marc LaFleur" produceva il seguente:

Quote:

> Actually, I like the XML idea. Having your end-users edit the register was
> always a bit scary. They either would refuse to do it (a good stance on the
> issue IMO) or they would break their PC trying to do it.

Well, one of the points of the registry is to keep Joe Average from messing
with the program's settings, so that the program can always work as it's
supposed to.
If your program requires your users to manually mess with the registry so
that it can run properly, then something is *seriously* wrong with your
program.

--
Tenchi (remove 'spam.be.gone' for emails)

My VB.net Download-Manager (Version 1.12.1400)
Homepage: http://home.arcor.de/minako.aino/DownloadWonder/
Mailing list: http://de.groups.yahoo.com/group/dw-net/



Tue, 08 Feb 2005 23:54:50 GMT  
 Naming Conventions: Avoiding Conflict
That is easy to say but in the real world, sometimes someone needs to edit
the registry. Sure, it may be because of a bug in the software but that
doesn't change anything. You still need to fix the entry so the customer is
back up and running.


Quote:
> Il cervello cattivo di "Marc LaFleur" produceva il seguente:

> > Actually, I like the XML idea. Having your end-users edit the register
was
> > always a bit scary. They either would refuse to do it (a good stance on
the
> > issue IMO) or they would break their PC trying to do it.

> Well, one of the points of the registry is to keep Joe Average from
messing
> with the program's settings, so that the program can always work as it's
> supposed to.
> If your program requires your users to manually mess with the registry so
> that it can run properly, then something is *seriously* wrong with your
> program.

> --
> Tenchi (remove 'spam.be.gone' for emails)

> My VB.net Download-Manager (Version 1.12.1400)
> Homepage: http://home.arcor.de/minako.aino/DownloadWonder/
> Mailing list: http://de.groups.yahoo.com/group/dw-net/



Wed, 09 Feb 2005 01:53:57 GMT  
 Naming Conventions: Avoiding Conflict
Il cervello cattivo di "Marc LaFleur" produceva il seguente:

Quote:

> That is easy to say but in the real world, sometimes someone needs to edit
> the registry. Sure, it may be because of a bug in the software but that
> doesn't change anything. You still need to fix the entry so the customer is
> back up and running.

Sounds like this is a frequent thing your users are doing - editing the
registry because of bugs in your programs. How about working the bugs out
instead of shouting, "Hey cool! Let's use Xml configuration files, so our
users can more easily cope with bugs, and since there are plenty in our
program, that's a sure plus!"

--
Tenchi (remove 'spam.be.gone' for emails)

My VB.net Download-Manager (Version 1.12.1400)
Homepage: http://home.arcor.de/minako.aino/DownloadWonder/
Mailing list: http://de.groups.yahoo.com/group/dw-net/



Thu, 10 Feb 2005 03:02:01 GMT  
 
 [ 9 post ] 

 Relevant Pages 

1. how to avoid the write conflict...

2. Avoiding version conflicts

3. How to detect, that item is locked (avoid version conflict)

4. Avoid record conflict

5. Indexes - Primary key naming conventions

6. Universal Naming Convention.....

7. Naming Conventions?

8. Naming Conventions?

9. Naming Conventions (pascal, camel, etc)

10. Naming Conventions -- Opinions please...

11. New Naming Convention

12. Naming conventions

 

 
Powered by phpBB® Forum Software