Click here to Skip to main content
15,901,426 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: Coding standards: curly bracket style Pin
OriginalGriff15-Sep-16 4:26
mveOriginalGriff15-Sep-16 4:26 
GeneralRe: Coding standards: curly bracket style Pin
PeejayAdams15-Sep-16 4:45
PeejayAdams15-Sep-16 4:45 
GeneralRe: Coding standards: curly bracket style Pin
Jörgen Andersson15-Sep-16 6:43
professionalJörgen Andersson15-Sep-16 6:43 
GeneralRe: Coding standards: curly bracket style Pin
TNCaver16-Sep-16 4:22
TNCaver16-Sep-16 4:22 
GeneralRe: Coding standards: curly bracket style Pin
PauloJuanShirt15-Sep-16 3:48
PauloJuanShirt15-Sep-16 3:48 
GeneralRe: Coding standards: curly bracket style Pin
Vark11115-Sep-16 5:20
Vark11115-Sep-16 5:20 
GeneralRe: Coding standards: curly bracket style Pin
Joe Woodbury15-Sep-16 5:54
professionalJoe Woodbury15-Sep-16 5:54 
GeneralRe: Coding standards: curly bracket style Pin
Dan Neely15-Sep-16 5:54
Dan Neely15-Sep-16 5:54 
Vark111 wrote:
Javascript - Style 2. To the point that if I see javascript written in Style 1, I don't even recognize it as valid javascript.



Good call. The javascript engine's semicolon injector behaves in ways that make it clear it doesn't regard opening braces on the next line as valid js either.

It will "helpfully" turn this:
JavaScript
//I want to do stuff 10 times
for (int i = 0; i < 10; i++)
{
    DoStuff()<br />
}

... into this:
JavaScript
//I want to do stuff 10 times
for (int i = 0; i < 10; i++);  //Javascript engines thoughts:  Do nothing loop.  This makes no sense unless the programer is an idiot, but he wrote javascript so that's a reasonable assumption.
{
    DoStuff(); //Javascript engines thoughts:  not part of a loop body, will execute only once
}

D'Oh! | :doh: D'Oh! | :doh: D'Oh! | :doh: D'Oh! | :doh:
Did you ever see history portrayed as an old man with a wise brow and pulseless heart, waging all things in the balance of reason?
Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful?
--Zachris Topelius

Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies.
-- Sarah Hoyt

GeneralRe: Coding standards: curly bracket style Pin
Vark11115-Sep-16 7:17
Vark11115-Sep-16 7:17 
GeneralRe: Coding standards: curly bracket style Pin
VirtualJack15-Sep-16 22:34
VirtualJack15-Sep-16 22:34 
GeneralRe: Coding standards: curly bracket style Pin
lopatir16-Sep-16 10:10
lopatir16-Sep-16 10:10 
GeneralRe: Coding standards: curly bracket style Pin
charlieg17-Sep-16 10:31
charlieg17-Sep-16 10:31 
GeneralRe: Coding standards: curly bracket style Pin
Robert Blair18-Sep-16 14:13
Robert Blair18-Sep-16 14:13 
GeneralRe: Coding standards: curly bracket style Pin
NOD32 user10-Nov-16 15:38
NOD32 user10-Nov-16 15:38 
GeneralRe: Coding standards: curly bracket style Pin
den2k8815-Sep-16 4:16
professionalden2k8815-Sep-16 4:16 
GeneralRe: Coding standards: curly bracket style Pin
NandaKumer15-Sep-16 5:39
NandaKumer15-Sep-16 5:39 
GeneralRe: Coding standards: curly bracket style Pin
W Balboos, GHB15-Sep-16 7:37
W Balboos, GHB15-Sep-16 7:37 
GeneralRe: Coding standards: curly bracket style Pin
Gary Wheeler16-Sep-16 0:57
Gary Wheeler16-Sep-16 0:57 
GeneralRe: Coding standards: curly bracket style Pin
TNCaver16-Sep-16 3:55
TNCaver16-Sep-16 3:55 
GeneralRe: Coding standards: curly bracket style Pin
kalberts16-Sep-16 4:19
kalberts16-Sep-16 4:19 
GeneralRe: Coding standards: curly bracket style Pin
OriginalGriff16-Sep-16 4:45
mveOriginalGriff16-Sep-16 4:45 
GeneralCCC OTD 2016-09-15 Solution Pin
OriginalGriff15-Sep-16 1:52
mveOriginalGriff15-Sep-16 1:52 
GeneralRe: CCC OTD 2016-09-15 Solution Pin
super15-Sep-16 1:59
professionalsuper15-Sep-16 1:59 
GeneralRe: CCC OTD 2016-09-15 Solution Pin
OriginalGriff15-Sep-16 2:23
mveOriginalGriff15-Sep-16 2:23 
GeneralRe: CCC OTD 2016-09-15 Solution Pin
Duncan Edwards Jones15-Sep-16 2:33
professionalDuncan Edwards Jones15-Sep-16 2:33 

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   507 votes