Click here to Skip to main content
12,447,242 members (58,798 online)

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.26184 votes, 15.26%
When I can or where it makes sense28123.30281 votes, 23.30%
Rarely1018.37101 votes, 8.37%
No33427.69334 votes, 27.69%
I don't write .NET code30625.37306 votes, 25.37%



 
GeneralC++ Application without loading .NET Pin
tfElep8-May-05 16:09
membertfElep8-May-05 16:09 
Generalunderscore in type identifiers Pin
weirdnwise7-May-05 20:44
memberweirdnwise7-May-05 20:44 
GeneralNotation Pin
Peter Mares6-May-05 1:21
memberPeter Mares6-May-05 1:21 
During the last couple of years, I have worked on various code bases, some of which used Hongarian notation, some of which used a bastardised attempt at Hongarian, and some which had pure CamelCasing.

I must say, that with time, one stops caring, as long as the code is solid and logic well documented. However, I must admit, that if I have a choice, I will always employ a subset of Hongarian, and prefix member variables with a m_, ints with a n etc...

However, I have also bastardised Hongarian notation to suit my purposes, with a variation where class names are acronym-ised and prefixed to variable names (not pointers), such as:

class CMyCoolObjectThatDoesNothing
{
}
..
CMyCoolObjectThatDoesNothing mcotdnVar;

// then again, I do have Intellisense, so typing these things is not a problem for me Wink | ;)

On the subject of pointer variables, I always prefix with a p and then follow with a description of the object...

Anyway, the point I'm trying to make is that notation is important, but is also localised to the team or teams that will work with the code. If you work on an OSS project, I feel it would be good to have a standard notation that all contributors adhere to...

Just my 2 South African cents Big Grin | :-D


controlSHIFT
[WinShareSpy] [Glossary Manager] [AfterThought Backup Lite]

All good things were meant to be improved
Generalcls Pin
Shog95-May-05 14:18
memberShog95-May-05 14:18 
GeneralRe: cls Pin
Peter Mares6-May-05 1:15
memberPeter Mares6-May-05 1:15 
GeneralNever heard of it Pin
Gammill3-May-05 13:54
memberGammill3-May-05 13:54 
GeneralRe: Never heard of it Pin
dnh4-May-05 0:21
memberdnh4-May-05 0:21 
GeneralHongarian Notation? PinPopular
Bob Stanneveld2-May-05 22:07
memberBob Stanneveld2-May-05 22:07 
GeneralRe: Hongarian Notation? Pin
RichardS3-May-05 0:40
memberRichardS3-May-05 0:40 
GeneralRe: Hongarian Notation? Pin
Kevin McFarlane3-May-05 2:05
memberKevin McFarlane3-May-05 2:05 
GeneralRe: Hongarian Notation? Pin
Bob Stanneveld3-May-05 4:53
memberBob Stanneveld3-May-05 4:53 
GeneralRe: Hongarian Notation? Pin
Kevin McFarlane3-May-05 11:10
memberKevin McFarlane3-May-05 11:10 
GeneralRe: Hongarian Notation? Pin
Chris Maunder4-May-05 17:18
adminChris Maunder4-May-05 17:18 
GeneralRe: Hongarian Notation? Pin
Bob Stanneveld5-May-05 1:48
memberBob Stanneveld5-May-05 1:48 
GeneralRe: Hongarian Notation? Pin
Alvaro Mendez3-May-05 9:33
memberAlvaro Mendez3-May-05 9:33 
GeneralRe: Hongarian Notation? Pin
Kevin McFarlane3-May-05 11:18
memberKevin McFarlane3-May-05 11:18 
GeneralRe: Hongarian Notation? Pin
Alvaro Mendez4-May-05 11:33
memberAlvaro Mendez4-May-05 11:33 
GeneralRe: Hongarian Notation? Pin
Diederik van Houten5-May-05 8:47
memberDiederik van Houten5-May-05 8:47 
GeneralRe: Hongarian Notation? Pin
Toby Opferman3-May-05 20:35
memberToby Opferman3-May-05 20:35 
GeneralRe: Hongarian Notation? Pin
Bob Stanneveld3-May-05 22:11
memberBob Stanneveld3-May-05 22:11 
GeneralRe: Hongarian Notation? Pin
worldspawn4-May-05 14:05
memberworldspawn4-May-05 14:05 
GeneralRe: Hongarian Notation? Pin
dl4gbe5-May-05 9:40
memberdl4gbe5-May-05 9:40 
GeneralRe: Hongarian Notation? Pin
diilbert6-May-05 11:25
memberdiilbert6-May-05 11:25 
GeneralCasing Pin
Christian Graus2-May-05 17:12
memberChristian Graus2-May-05 17:12 
GeneralRe: Casing Pin
Kevin McFarlane3-May-05 2:12
memberKevin McFarlane3-May-05 2:12 
GeneralRe: Casing Pin
Anonymous3-May-05 12:57
sussAnonymous3-May-05 12:57 
GeneralRe: Casing Pin
Kevin McFarlane4-May-05 7:58
memberKevin McFarlane4-May-05 7:58 
GeneralRe: Casing Pin
Ray Cassick5-May-05 14:29
memberRay Cassick5-May-05 14:29 
GeneralRe: Casing Pin
Christian Graus8-May-05 12:45
memberChristian Graus8-May-05 12:45 
GeneralDot Net code Pin
Anonymous2-May-05 4:53
sussAnonymous2-May-05 4:53 
GeneralRe: Dot Net code Pin
Paul Watson2-May-05 10:17
staffPaul Watson2-May-05 10:17 
GeneralRe: Dot Net code Pin
Anonymous2-May-05 11:32
sussAnonymous2-May-05 11:32 
GeneralRe: Dot Net code Pin
Shog92-May-05 13:44
memberShog92-May-05 13:44 
GeneralRe: Dot Net code Pin
Bamaco23-May-05 0:02
memberBamaco23-May-05 0:02 
GeneralFxCop anybody? Pin
Nemanja Trifunovic2-May-05 4:08
memberNemanja Trifunovic2-May-05 4:08 
GeneralRe: FxCop anybody? Pin
Paul Watson2-May-05 10:17
staffPaul Watson2-May-05 10:17 
GeneralRe: FxCop anybody? Pin
Alvaro Mendez3-May-05 9:35
memberAlvaro Mendez3-May-05 9:35 
GeneralRe: FxCop anybody? Pin
Nemanja Trifunovic3-May-05 9:49
memberNemanja Trifunovic3-May-05 9:49 
GeneralRe: FxCop anybody? Pin
Chris Maunder4-May-05 17:26
adminChris Maunder4-May-05 17:26 
GeneralRe: FxCop anybody? Pin
Jeff Martin10-May-05 3:15
memberJeff Martin10-May-05 3:15 
Generalsince when is naming conventions part of cls??? Pin
<div style='color:#6699cc; '>MadHatter ¢</div>1-May-05 18:22
member
MadHatter ¢
1-May-05 18:22 
GeneralRe: since when is naming conventions part of cls??? Pin
Nishant S1-May-05 18:57
staffNishant S1-May-05 18:57 
GeneralRe: since when is naming conventions part of cls??? Pin
<div style='color:#6699cc; '>MadHatter ¢</div>2-May-05 14:40
member
MadHatter ¢
2-May-05 14:40 
GeneralRe: since when is naming conventions part of cls??? Pin
Chris Maunder1-May-05 21:03
adminChris Maunder1-May-05 21:03 
GeneralHmmm... Pin
Kochise2-May-05 2:35
memberKochise2-May-05 2:35 
GeneralRe: since when is naming conventions part of cls??? Pin
Chris Meech2-May-05 3:01
memberChris Meech2-May-05 3:01 
GeneralRe: since when is naming conventions part of cls??? Pin
S-M-O-K-E-R4-May-05 7:41
memberS-M-O-K-E-R4-May-05 7:41 
GeneralBut why... Pin
Navin2-May-05 6:37
memberNavin2-May-05 6:37 
GeneralRe: But why... Pin
Chris Maunder2-May-05 13:23
adminChris Maunder2-May-05 13:23 
GeneralRe: But why... Pin
Navin3-May-05 8:59
memberNavin3-May-05 8:59 

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.


Advertise | Privacy | Mobile
Web02 | 2.8.160811.3 | Last Updated 10 Aug 2007
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid