Re: C# coding style question
From: Sharon (talsharon_at_hotmail.com)
Date: 04/23/04
- Next message: Steve Bishop: "Re: Response Object Problem"
- Previous message: Bruno Jouhier [MVP]: "Re: try/finally with data access code"
- In reply to: Daniel O'Connell [C# MVP]: "Re: C# coding style question"
- Next in thread: Bruno Jouhier [MVP]: "Re: C# coding style question"
- Reply: Bruno Jouhier [MVP]: "Re: C# coding style question"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 23 Apr 2004 19:39:01 +0200
I agree that we all should use conventions.
But who made Dot Net convention anyway?
Who decided to remove prefixes? and why?
I like prefixes.
They make the code more clear.
They identify the scope of a field, instantly.
Ugly or not is a matter of opinion.
"Daniel O'Connell [C# MVP]" <onyxkirx@--NOSPAM--comcast.net> wrote in
message news:eDpZTzQKEHA.1312@TK2MSFTNGP12.phx.gbl...
>
> "Jon Skeet [C# MVP]" <skeet@pobox.com> wrote in message
> news:MPG.1af2dd28635bda7298a73a@msnews.microsoft.com...
> > Daniel O'Connell [C# MVP] <onyxkirx@--NOSPAM--comcast.net> wrote:
> >> Part of waht makes rotor interesting is that it was written while the
> >> platform evolved, obviously. I wonder if we were to take the classes
with
> >> a
> >> given convention and determine when they were written if a pattern
would
> >> emerge or if it is entirely based on *who* wrote it.
> >
> > I suspect it really is just a case of who wrote it. I'm pretty sure
> > I've seen a mixture of styles in MSDN too.
> I have as well, however it isn't certain as to who wrote them or when.
> A*lot* of the m_ prefixed code I see is sourced from people who either
> havn't given up C++ yet or are just starting on it. I suppose its a habit
> that is hard to break if you've been using it for years.
> I still see m_ prefixed code in MSDN mag now and then, infact I think the
> newest issue had a C# 2.0 example using the m_ prefix(which irks me to no
> end...IMHO, someone who is writing for a magazine or other publication
> should atleast try to follow the widest convention, which I think is no
> prefix at all).
>
> I am curious about the trends primarily because of the age of the source
> base and the fact that it was written while the transition between
hungarian
> and camel\Pascal casing was coming into the framework, the earliest files
in
> rotor were probably written 5 or 6 years ago and I do wonder if there are
> trends that can be seen...perhaps something like a code 'Sociology'.
> Conventions and the code written are, after all, in many cases social
> things, probably prone to the same forces that affect fashion and
> culture...just on a considerably smaller scale.
>
> I dunno, its pretty late and I'm probably rambling and not realizing it at
> this point. I think I'll end this here.
>
> >
> > --
> > Jon Skeet - <skeet@pobox.com>
> > http://www.pobox.com/~skeet
> > If replying to the group, please do not mail me too
>
>
- Next message: Steve Bishop: "Re: Response Object Problem"
- Previous message: Bruno Jouhier [MVP]: "Re: try/finally with data access code"
- In reply to: Daniel O'Connell [C# MVP]: "Re: C# coding style question"
- Next in thread: Bruno Jouhier [MVP]: "Re: C# coding style question"
- Reply: Bruno Jouhier [MVP]: "Re: C# coding style question"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|