Click here to Skip to main content
15,899,825 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.

 
GeneralCoding Standards Pin
Matt U.13-Feb-14 3:19
Matt U.13-Feb-14 3:19 
GeneralRe: Coding Standards Pin
Ennis Ray Lynch, Jr.13-Feb-14 3:25
Ennis Ray Lynch, Jr.13-Feb-14 3:25 
GeneralRe: Coding Standards Pin
Matt U.13-Feb-14 3:29
Matt U.13-Feb-14 3:29 
GeneralRe: Coding Standards Pin
Kirk Wood14-Feb-14 15:40
Kirk Wood14-Feb-14 15:40 
GeneralRe: Coding Standards Pin
Argonia13-Feb-14 3:25
professionalArgonia13-Feb-14 3:25 
GeneralRe: Coding Standards Pin
Matt U.13-Feb-14 3:32
Matt U.13-Feb-14 3:32 
GeneralRe: Coding Standards Pin
Marco Bertschi13-Feb-14 3:34
protectorMarco Bertschi13-Feb-14 3:34 
GeneralRe: Coding Standards Pin
Argonia13-Feb-14 3:45
professionalArgonia13-Feb-14 3:45 
I use the declaration of the variables at the beginning of the method in my c++ coding, the code is read more easily and its more tidy, especially when you use complex stl structures and interators to them. One more reason is reuse of the variables which served their main purpose - for example a string used for XPath, or string used for middle string result or something like that.
In my c# code i dont use that rule... i get yelled for doing it and putting prefixes on the variables showing their type Dead | X|
Microsoft ... the only place where VARIANT_TRUE != true

GeneralRe: Coding Standards Pin
jschell13-Feb-14 9:09
jschell13-Feb-14 9:09 
GeneralRe: Coding Standards Pin
John Nurick14-Feb-14 1:25
John Nurick14-Feb-14 1:25 
GeneralRe: Coding Standards Pin
jschell14-Feb-14 10:15
jschell14-Feb-14 10:15 
GeneralRe: Coding Standards Pin
Gerry Schmitz14-Feb-14 10:15
mveGerry Schmitz14-Feb-14 10:15 
GeneralRe: Coding Standards Pin
jschell17-Feb-14 11:47
jschell17-Feb-14 11:47 
GeneralRe: Coding Standards Pin
Shameel13-Feb-14 3:35
professionalShameel13-Feb-14 3:35 
GeneralRe: Coding Standards Pin
Kornfeld Eliyahu Peter13-Feb-14 3:40
professionalKornfeld Eliyahu Peter13-Feb-14 3:40 
JokeRe: Coding Standards Pin
Richard Deeming13-Feb-14 3:43
mveRichard Deeming13-Feb-14 3:43 
GeneralRe: Coding Standards Pin
Matt U.13-Feb-14 4:30
Matt U.13-Feb-14 4:30 
GeneralRe: Coding Standards Pin
Jonathan C Dickinson13-Feb-14 21:44
Jonathan C Dickinson13-Feb-14 21:44 
GeneralRe: Coding Standards Pin
Richard Deeming14-Feb-14 0:27
mveRichard Deeming14-Feb-14 0:27 
GeneralRe: Coding Standards PinPopular
Pete O'Hanlon13-Feb-14 3:45
mvePete O'Hanlon13-Feb-14 3:45 
GeneralRe: Coding Standards Pin
MarkTJohnson13-Feb-14 3:50
professionalMarkTJohnson13-Feb-14 3:50 
GeneralRe: Coding Standards Pin
HobbyProggy13-Feb-14 3:58
professionalHobbyProggy13-Feb-14 3:58 
GeneralRe: Coding Standards Pin
wout de zeeuw13-Feb-14 3:58
wout de zeeuw13-Feb-14 3:58 
GeneralRe: Coding Standards Pin
Matt U.13-Feb-14 4:32
Matt U.13-Feb-14 4:32 
GeneralRe: Coding Standards Pin
Gregory Gadow13-Feb-14 4:16
Gregory Gadow13-Feb-14 4:16 

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.


Straw Poll

Were you affected by the geomagnetic storms this past weekend?
Communication disruptions, electrified pipes, random unexplained blue-screens in Windows - the list of effects is terrifying.
  Results   477 votes