Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

naming conventions

Name: Anonymous 2007-05-19 22:21 ID:Hhy+e3mf

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: Anonymous 2007-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?

Name: Anonymous 2007-05-23 5:36 ID:g9QjR1tO

>>40
>>41

"real" hungarian shows the intention for the use of the variable, not the type, which is microsoft's bastardization

Name: Anonymous 2007-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: Anonymous 2007-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: Anonymous 2007-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.

Name: Anonymous 2007-05-23 13:04 ID:GIBSd/k3

>>45
i love you

Name: Anonymous 2007-05-23 13:08 ID:Y7ZGEIXa

Name: Anonymous 2007-05-23 13:31 ID:GIBSd/k3

>>47
You don't need to post link
Everyone knows Mel

Name: Anonymous 2007-05-23 15:50 ID:igQ6duVc

Mel's awesome

Name: Anonymous 2007-05-23 16:09 ID:ayOsFBND

Hehe, I wrote some machine code today.  Just a one-byte crack though, changing a JE to a JMP.

Name: Anonymous 2007-05-23 17:47 ID:3WsgGeDt

I did that once. It was awesome, I felt so HARDCORE.

Name: Anonymous 2007-05-23 22:27 ID:his2IaIv

BRIAN THOUGHT HE WAS TOTALLY HACKING THE GIBSON BUT ENDED UP FORMATTING HIS HARD DRIVE INSTEAD

Name: Anonymous 2007-05-24 4:36 ID:Lh9LFdrh

SANDCOAR

Name: Anonymous 2009-01-14 13:29

No

Name: Anonymous 2009-01-14 13:34

>>40
>>40
loooooooooooooool

Name: Sgt.Kabu宠kiman๮硂 2012-05-29 2:14

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

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List