What's /prog/'s preferred naming convention for C-like languages? Personally I find CamelCase easier to type, but under_score easier to read.
Name:
Anonymous2007-05-23 5:33 ID:coKpcZ0G
>>37
1. It's stupid. If you can't tell the type of a variably by its name, you clearly need a better name.
2. It's fugly to read and type. lpszFuckMyAss.
3. It's unmaintainable. What happens when you change a variable's type or class, or a class name? It's not like your design is so limited that it can't be reused in a slightly different way, right?
"real" hungarian shows the intention for the use of the variable, not the type, which is microsoft's bastardization
Name:
Anonymous2007-05-23 6:48 ID:VWmtKPdG
"real" hungarian shows the intention for the use of the variable, not the type, which is microsoft's bastardization
Actually 'real' hungarian was invented inside MS too. It was invented in the apps department and then totally misunderstood by the OS department. I'm assuming you've read that Joel Spolsky essay too; you just don't remember it very well :P
Name:
Anonymous2007-05-23 8:24 ID:coKpcZ0G
>>42
I suppose the same kind of object would then receive different Hungarian prefixes. If so, then you don't even need Hungarian notation because the prefix will do. I just don't see how Hungarian notation wouldn't be a messy piece of shit to make code ugly and discourage small developers.
Name:
Anonymous2007-05-23 12:47 ID:qm9Vo2GC
In assembler I never used labels, but absolute addresses. I continue the tradition today, by just using numbers for names, i.e. v00000000, v00000001, v00000002, etc. I use this notation for every variable name and label. I also use goto, never use function calls, and make extensive use of global variables, because using the stack is a security risk.
Bringing /prog/ back to its people
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy