|
Slacker007 wrote: Assassin's Creed: (something vikings) Valhalla
They are pre-selling it. I need a better PC for that
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
Slacker007 wrote: Assassin's Creed: (something vikings) is coming out soon and I think they want to get people back into playing the game prior to the new release.
The problem is that Assassin's Creed games are better when you haven't played one for a while.
I could only manage a few hours of Odyssey as I played it too soon after Origins (which I platinum'd - so a lot of hours).
|
|
|
|
|
Powered up my gaming machine.
Launched their Uplay client.
Logged in.
Added the 3 games to my library.
Shut down the client.
Shut down the machine.
And that's probably all I'm ever going to do with them.
But I still welcome the heads-up.
|
|
|
|
|
|
If I'm not using Camel case, which I rarely stray from, I'll use underscores without a second thought.
|
|
|
|
|
But... do you mix the styles?
Next you will say, you mix gin with water
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
I occasionally use underscores to follow low-level C++ conventions, like defining signal_t or main_t as the type for a POSIX signal or the value returned by main . And the name of a private data member ends in an underscore.
|
|
|
|
|
Greg Utas wrote: the name of a private data member ends in an underscore. You heathen. Everyone knows that private member names begin with an underscore.
Software Zen: delete this;
|
|
|
|
|
|
Everyone knows that identifiers starting with an underscore are reserved for the implementation.
Keep Calm and Carry On
|
|
|
|
|
It is reserved for those who implement things like the standard library that usually comes with your compiler. Using a beginning underscore for member names or inside a function is legal, but not recommended. But, that being said, when I write classes in the standard C++ format (all lowercase), I use a trailing underscore to distinguish member variables from local variables.
INTP
"Program testing can be used to show the presence of bugs, but never to show their absence." - Edsger Dijkstra
"I have never been lost, but I will admit to being confused for several weeks. " - Daniel Boone
|
|
|
|
|
Yes, but I relented on that issue in order to achieve a compromise on underscores. I didn't want underscores in the leading position at all, while Mr. Object wanted underscores to be prohibited unless they were in the leading position indicating scope. I use underscores in locals which for me are generally all lower case. I also use underscores in globals when the name includes an acronym: ObjectABC_Factory , for example, where ABC is the acronym.
Back story: My group has a naming convention and coding style document that is 1½ pages, and most of it recommends rather requires or prohibits. In fact, I think there's only one thing in it that is absolutely prohibited, and that's Hungarian notation. When we created this document in 2000, that was still quite a thing when doing Windows programming. The only place we allow it to be used is in argument names for callback functions, and they are recommended to use the same names as in the documentation.
For what it's worth, we've never had a conflict between our use of leading underscores and any compiler in the last 20 years, and that's spread over tens of millions of lines of C, C++, and C# code.
Software Zen: delete this;
|
|
|
|
|
Gary R. Wheeler wrote: there's only one thing in it that is absolutely prohibited, and that's Hungarian notation FTMFW! The worst shite ever dreamt up.
I found a post about leading underscores which also pointed out that the trailing _t 's that I occasionally use are reserved in POSIX standards. Yawn.
|
|
|
|
|
Is that Apps Hungarian or Systems Hungarian?
Systems Hungarian is indeed "The worst shite ever dreamt up", but Apps Hungarian I can understand even if I don't use it.
|
|
|
|
|
I had to look this up, because I didn't realize there were two variants. So thanks for prompting that!
Apps Hungarian isn't as bad, but arcane prefixed abbreviations to denote a purpose don't appeal to me. If something has a small scope, such as a loop variable, a single letter often works as a name. If it has a large scope, I'd rather see it spelled out.
|
|
|
|
|
The original Hungarian notation was actually supposed to be useful at the time. The prefix should have been a 'type' as in 'size', 'color', 'frequency', 'voltage', etc. So if you defined your variables as;
float szAnimal, szElephant
float colAnimal, colElephant
float vLethal
Then when you looked at the code, the line:
szAnimal = colElephant * 0.5
Should ring alarm bells, while:
vLethal = VoltagToKillBySize(szElephant)
is fine!
Of course, once idiots started using stupid prefixes like iCount, fWeight, pData and similar it became the spawn of the devil and was rightly banned by all sane people.
|
|
|
|
|
k5054 wrote: Everyone knows that identifiers starting with an underscore are reserved for the implementation. Let me just check that I get this right now: Identifiers not starting with an underscore is for those modules that are not yet implemented. ... Did I get it right this time=?
|
|
|
|
|
The way I understood it is that identifiers that begin with _ are private or supposedly private (for languages that don't enforce such thing) those that don't are public
I might very well be wrong
|
|
|
|
|
Nelek wrote: gin with water What's wrong with that? A dash of Angostura and you have a delicious pink gin. Which reminds me ...
|
|
|
|
|
I suppose you know the three ways of drinking whisky? With water, without water and like water.
|
|
|
|
|
To be honest... no, I didn't know it. But I will remember it Is a good one
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
Do not drink pure water! You absolutely have to dilute water with alcohol. 100% water will cause rust!
Get me coffee and no one gets hurt!
modified 4-May-20 18:28pm.
|
|
|
|
|
Marc Clifton wrote: Look, either use underscores or don't. Don't!
|
|
|
|
|
|
Interesting. I wouldn't have even cared.
Social Media - A platform that makes it easier for the crazies to find each other.
Everyone is born right handed. Only the strongest overcome it.
Fight for left-handed rights and hand equality.
|
|
|
|