Click here to Skip to main content
15,887,947 members

Survey Results

Do you write CLS-compliant code?   [Edit]

Survey period: 2 May 2005 to 8 May 2005

Writing CLS-compliant means, among other things, no underscores in variable names, no unsigned integers and case insensivity in naming. Do you bother?

OptionVotes% 
Yes, always18415.26
When I can or where it makes sense28123.30
Rarely1018.37
No33427.69
I don't write .NET code30625.37



 
GeneralC++ Application without loading .NET Pin
tfElep8-May-05 16:09
tfElep8-May-05 16:09 
Generalunderscore in type identifiers Pin
weirdnwise7-May-05 20:44
weirdnwise7-May-05 20:44 
GeneralNotation Pin
Peter Mares6-May-05 1:21
Peter Mares6-May-05 1:21 
Generalcls Pin
Shog95-May-05 14:18
sitebuilderShog95-May-05 14:18 
GeneralRe: cls Pin
Peter Mares6-May-05 1:15
Peter Mares6-May-05 1:15 
GeneralNever heard of it Pin
Gammill3-May-05 13:54
Gammill3-May-05 13:54 
GeneralRe: Never heard of it Pin
DavidNohejl4-May-05 0:21
DavidNohejl4-May-05 0:21 
GeneralHongarian Notation? Pin
Bob Stanneveld2-May-05 22:07
Bob Stanneveld2-May-05 22:07 
GeneralRe: Hongarian Notation? Pin
RichardS3-May-05 0:40
RichardS3-May-05 0:40 
GeneralRe: Hongarian Notation? Pin
Kevin McFarlane3-May-05 2:05
Kevin McFarlane3-May-05 2:05 
GeneralRe: Hongarian Notation? Pin
Bob Stanneveld3-May-05 4:53
Bob Stanneveld3-May-05 4:53 
GeneralRe: Hongarian Notation? Pin
Kevin McFarlane3-May-05 11:10
Kevin McFarlane3-May-05 11:10 
GeneralRe: Hongarian Notation? Pin
Chris Maunder4-May-05 17:18
cofounderChris Maunder4-May-05 17:18 
GeneralRe: Hongarian Notation? Pin
Bob Stanneveld5-May-05 1:48
Bob Stanneveld5-May-05 1:48 
GeneralRe: Hongarian Notation? Pin
Alvaro Mendez3-May-05 9:33
Alvaro Mendez3-May-05 9:33 
GeneralRe: Hongarian Notation? Pin
Kevin McFarlane3-May-05 11:18
Kevin McFarlane3-May-05 11:18 
GeneralRe: Hongarian Notation? Pin
Alvaro Mendez4-May-05 11:33
Alvaro Mendez4-May-05 11:33 
GeneralRe: Hongarian Notation? Pin
generic_user_id5-May-05 8:47
generic_user_id5-May-05 8:47 
GeneralRe: Hongarian Notation? Pin
Toby Opferman3-May-05 20:35
Toby Opferman3-May-05 20:35 
GeneralRe: Hongarian Notation? Pin
Bob Stanneveld3-May-05 22:11
Bob Stanneveld3-May-05 22:11 
Toby Opferman wrote:
I generally do not follow "hungarian notation" in it's strictest sense

I don't believe anybody does that, because then you'll have to prefix you function names with the parameters and return type! There goes the intended readability..


Toby Opferman wrote:
it's also good to have a good descriptive name.

That certainly is a good practice. I've seen to many student that write code like:
<br />
int a, b, c<br />
/* large function body */<br />

Not only will nobody know why the variables are there and what they are used for, but it just makes the code look ugly.

I also favor the prefix_ to indicate a variable that is used in more than one scope. But I make an exception for structs. These types should'nt have any member functions and therefore you can omit the scope prefix, because you don't have to distinguish between locals and member variables by the prefix, since the struct's variable name does it for you.

Toby Opferman wrote:
I saw someone post in this thread that said that they don't use it because "they will be the only ones viewing the code" so I guess they do not have a job, at least not a real one...
That certainly is a bad practice. Everyone should not test their own code and reviewing your code with others helps to improve things a lot..



I also got the blogging virus..[^]
GeneralRe: Hongarian Notation? Pin
worldspawn4-May-05 14:05
worldspawn4-May-05 14:05 
GeneralRe: Hongarian Notation? Pin
dl4gbe5-May-05 9:40
dl4gbe5-May-05 9:40 
GeneralRe: Hongarian Notation? Pin
diilbert6-May-05 11:25
diilbert6-May-05 11:25 
GeneralCasing Pin
Christian Graus2-May-05 17:12
protectorChristian Graus2-May-05 17:12 
GeneralRe: Casing Pin
Kevin McFarlane3-May-05 2:12
Kevin McFarlane3-May-05 2:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.