Click here to Skip to main content
15,885,244 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Names Pin
Wizard of Sleeves22-Apr-21 20:52
Wizard of Sleeves22-Apr-21 20:52 
GeneralRe: Names Pin
grralph123-Apr-21 0:28
grralph123-Apr-21 0:28 
GeneralRe: Names Pin
Stefan_Lang2-May-21 3:17
Stefan_Lang2-May-21 3:17 
GeneralRe: Names Pin
Daniel Will22-Apr-21 21:22
Daniel Will22-Apr-21 21:22 
GeneralRe: Names Pin
grralph122-Apr-21 23:59
grralph122-Apr-21 23:59 
GeneralRe: Names Pin
Member 1068017923-Apr-21 2:56
Member 1068017923-Apr-21 2:56 
GeneralRe: Names Pin
Rusty Bullet23-Apr-21 3:09
Rusty Bullet23-Apr-21 3:09 
GeneralRe: Names Pin
BernardIE531723-Apr-21 5:00
BernardIE531723-Apr-21 5:00 
I learned from this series of posts to utilize "str" for strings. I never liked using "string" since it conflicts w/ std::string. I always use "using namespace std;"

I favor descriptive names however I would rewrite doubleCalculateOffsetForWaveFunction(intScaleFactorForWaveFunction,floatWaveFunctionSeedValue)
as
Offset_forWaveFunction(scale_factor, seed_value)

I don't believe in Hungarian notation as it is merely another source of error and of course the return value is already documented. "Calculate" is redundant since we know that's what functions do. I find it helpful to distinguish prepositions in the name. "ForWaveFunction" is not needed since the variable is in context. If this method was of a class WaveFunction then all that would be needed would be Offset(scale_factor, seed_value). My local variables are always lower case. Capitals I reserve for global or public objects.

I am fascinated by naming notation conventions. I like the notation to say something about the method and variable e.g. to distinguish public methods from private e.g. camel for public and snake for private though I am conflicted as I like snake as it is easy on the eyes with no capital letters shouting at me though I am currently utilizing all capitals for statics and terminate all lambdas with "_LAMBDA". I am eager to learn of other's techniques and preferences. - Cheerio

modified 23-Apr-21 11:16am.

GeneralRe: Names Pin
grralph123-Apr-21 22:36
grralph123-Apr-21 22:36 
GeneralRe: Names Pin
Member 986208223-Apr-21 5:26
Member 986208223-Apr-21 5:26 
GeneralRe: Names Pin
grralph123-Apr-21 22:43
grralph123-Apr-21 22:43 
GeneralRe: Names Pin
Kiriander23-Apr-21 6:48
Kiriander23-Apr-21 6:48 
GeneralRe: Names Pin
grralph123-Apr-21 22:47
grralph123-Apr-21 22:47 
GeneralRe: Names Pin
SeattleC++23-Apr-21 8:35
SeattleC++23-Apr-21 8:35 
GeneralRe: Names Pin
grralph123-Apr-21 22:59
grralph123-Apr-21 22:59 
GeneralRe: Names Pin
Stefan_Lang2-May-21 3:32
Stefan_Lang2-May-21 3:32 
GeneralRe: Names Pin
SeattleC++2-May-21 5:36
SeattleC++2-May-21 5:36 
QuestionIs it just me? Pin
W Balboos, GHB22-Apr-21 1:55
W Balboos, GHB22-Apr-21 1:55 
AnswerRe: Is it just me? Pin
Richard Deeming22-Apr-21 2:09
mveRichard Deeming22-Apr-21 2:09 
GeneralRe: Is it just me? Pin
Richard MacCutchan22-Apr-21 2:38
mveRichard MacCutchan22-Apr-21 2:38 
GeneralRe: Is it just me? Pin
pkfox22-Apr-21 3:35
professionalpkfox22-Apr-21 3:35 
AnswerRe: Is it just me? Pin
CHill6022-Apr-21 2:47
mveCHill6022-Apr-21 2:47 
AnswerRe: Is it just me? Pin
grralph122-Apr-21 3:06
grralph122-Apr-21 3:06 
GeneralRe: Is it just me? Pin
W Balboos, GHB22-Apr-21 4:50
W Balboos, GHB22-Apr-21 4:50 
GeneralRe: Is it just me? Pin
grralph122-Apr-21 5:08
grralph122-Apr-21 5:08 

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.