Re: Straw poll - naming conventions
From: Jarle Stabell (jarle_at_remove_stuff_dlogikk_spam_kills_email.com)
Date: 03/05/04
- Next message: Xavier Pacheco (Xapware): "Re: Database Independance"
- Previous message: Clay Shannon: "Re: Straw poll - naming conventions"
- In reply to: Clive Crocker: "Re: Straw poll - naming conventions"
- Next in thread: Reinier Sterkenburg: "Re: Straw poll - naming conventions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 5 Mar 2004 15:27:07 +0100
"Clive Crocker" wrote:
> It seems, from my limited exposure to C#, that coding styles revert to
early
> days of ... no prefixes on anything at all. Local variables, fields
(or
> equiv), class declaration, object instances, ... there is no rule;
people
> just write what they want. Certainly the tendancy to prefix T (or t)
for
> classes... just doesnt happen.
>
> Would you say I been generall looking at poor code examples, or is
this a
> 'MS recommendation' or just a 'tendancy' for C# coders to pick and
choose
> names at will?
Most C# coders are not that experienced yet as C# coders? ;-)
I think that naming conventions are simply not as necessary nowadays as
they once were. Modern languages have classes, namespaces, more strict
typechecking (for those languages that do this at all), so naming
conventions don't play the same role as they once did. By hardcoding the
type of things into the names of things, and whether a "thing" is a
constant, a variable or a function etc, you might lower the abstraction
level of your code without much benefit. I'm not saying naming
conventions are overall bad, I still use some, f.i. I "must" be
immediately able to tell whether a name inside a method implementation
is a local variable or method argument or instance field (fXXX) or
something else.
Cheers,
Jarle
- Next message: Xavier Pacheco (Xapware): "Re: Database Independance"
- Previous message: Clay Shannon: "Re: Straw poll - naming conventions"
- In reply to: Clive Crocker: "Re: Straw poll - naming conventions"
- Next in thread: Reinier Sterkenburg: "Re: Straw poll - naming conventions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|