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: Consistency... Pin
Richard MacCutchan4-May-20 9:11
mveRichard MacCutchan4-May-20 9:11 
JokeRe: Consistency... Pin
kalberts4-May-20 9:43
kalberts4-May-20 9:43 
GeneralRe: Consistency... Pin
Nelek4-May-20 20:47
protectorNelek4-May-20 20:47 
JokeRe: Consistency... Pin
Cp-Coder4-May-20 10:12
Cp-Coder4-May-20 10:12 
GeneralRe: Consistency... Pin
Richard MacCutchan4-May-20 9:10
mveRichard MacCutchan4-May-20 9:10 
GeneralRe: Consistency... Pin
MarkTJohnson4-May-20 10:52
professionalMarkTJohnson4-May-20 10:52 
GeneralRe: Consistency... Pin
ZurdoDev4-May-20 9:20
professionalZurdoDev4-May-20 9:20 
GeneralRe: Consistency... Pin
kalberts4-May-20 10:39
kalberts4-May-20 10:39 
Either, you have to re-invent every wheel yourself ...
Or you'll just have to be prepared for mixed styles. If you use libraries, type/class definitions, ... whatever developed by others than yourself, you better be prepared for accepting mixed styles with regard to casing, use of underscores, indentation rules (e.g. in header files - you will see them even if you don't see the source code of that library), commenting style (/* */ comment blocks, end-of-line comments, no comments, ...), use of abbreviations in identifiers, ...

Sometimes you see conflicting styles even in a single product. The Win32 functions has a subset of functions taking all essential parameters as a single struct, headed by the struct size, so new extensions to the interface can add is parameter to the end of the struct; the size field indicates which version the caller wants to run. But most functions come in version Func, FuncEx, FuncExEx, ... FuncExExExExEx (yes, five times "Ex" has occurred!), each with its own parameter format/sequence. When your personal preference is strongly with the one style that is used the least, you end up bitching a lot "Why couldn't they always use..." when you type those Ex Ex Ex...

In Norwegian culture, "Aunt Sophie" is a well known figure. Anyone who grew up in Norway since the 1950 knows Torbjørn Egner's "Cardamom Town"[^] story (it has been translated into many languages, so you might know it from your own childhood!). In this story, aunt Sophie is constantly complaining "If just people were like me, the world would be a much better place!" "Aunt Sophie's angry song"[^] is well know to every Norwegian child. Too bad I didn't find an English version!

If you are accused of being an "Aunt Sophie", it means that you are unconditionally requiring everybody to follow your rules, your ideas of what people should think, how they should behave, and everything else, disregaring any counter argument. Being called an Aunt Sophie is certainly not meant as any sort of flattery! I would certainly not like such an accusation!

So I accept reality. There are various established styles out there. You may, in the name of "consistency" cling to your own style, come sun or come rain. Or you may go for the "When in Rome, do as the Romans" (although I know that is a very un-American approach...), adapting your own style to that of the library / subsystem / whatever your are interacting with.

But basing your entire private, political, professional or other life on the premise that everbody will think like you, behave like your, is doomed to failure.
GeneralRe: Consistency... Pin
phil.o4-May-20 10:57
professionalphil.o4-May-20 10:57 
GeneralRe: Consistency... Pin
HellsHarlot4-May-20 20:42
HellsHarlot4-May-20 20:42 
GeneralRe: Consistency... Pin
Sander Rossel4-May-20 22:16
professionalSander Rossel4-May-20 22:16 
GeneralRe: Consistency... Pin
agolddog5-May-20 3:55
agolddog5-May-20 3:55 
GeneralRe: Consistency... Pin
Col Wolf5-May-20 1:44
Col Wolf5-May-20 1:44 
GeneralRe: Consistency... Pin
agolddog5-May-20 3:53
agolddog5-May-20 3:53 
QuestionChallenging myself with Codegen - a Visitor generator Pin
honey the codewitch4-May-20 8:33
mvahoney the codewitch4-May-20 8:33 
AnswerRe: Challenging myself with Codegen - a Visitor generator Pin
Nelek4-May-20 8:55
protectorNelek4-May-20 8:55 
GeneralRe: Challenging myself with Codegen - a Visitor generator Pin
honey the codewitch4-May-20 8:58
mvahoney the codewitch4-May-20 8:58 
GeneralRe: Challenging myself with Codegen - a Visitor generator Pin
Jörgen Andersson4-May-20 9:04
professionalJörgen Andersson4-May-20 9:04 
GeneralRe: Challenging myself with Codegen - a Visitor generator Pin
honey the codewitch4-May-20 9:12
mvahoney the codewitch4-May-20 9:12 
GeneralRe: Challenging myself with Codegen - a Visitor generator Pin
Jörgen Andersson4-May-20 9:22
professionalJörgen Andersson4-May-20 9:22 
GeneralRe: Challenging myself with Codegen - a Visitor generator Pin
honey the codewitch4-May-20 9:30
mvahoney the codewitch4-May-20 9:30 
GeneralRe: Challenging myself with Codegen - a Visitor generator Pin
Nelek4-May-20 9:38
protectorNelek4-May-20 9:38 
GeneralRe: Challenging myself with Codegen - a Visitor generator Pin
honey the codewitch4-May-20 9:44
mvahoney the codewitch4-May-20 9:44 
GeneralRe: Challenging myself with Codegen - a Visitor generator Pin
Nelek4-May-20 20:45
protectorNelek4-May-20 20:45 
GeneralRe: Challenging myself with Codegen - a Visitor generator Pin
honey the codewitch4-May-20 21:04
mvahoney the codewitch4-May-20 21:04 

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.