Click here to Skip to main content
15,913,115 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: Why Britain is a Cat Pin
Richard MacCutchan17-Nov-17 7:38
mveRichard MacCutchan17-Nov-17 7:38 
GeneralRe: Why Britain is a Cat Pin
Eddy Vluggen17-Nov-17 9:38
professionalEddy Vluggen17-Nov-17 9:38 
GeneralRe: Why Britain is a Cat Pin
Richard MacCutchan17-Nov-17 7:34
mveRichard MacCutchan17-Nov-17 7:34 
GeneralWe're all doomed... Pin
R. Giskard Reventlov17-Nov-17 5:37
R. Giskard Reventlov17-Nov-17 5:37 
GeneralRe: We're all doomed... Pin
A_Griffin17-Nov-17 5:40
A_Griffin17-Nov-17 5:40 
GeneralRe: We're all doomed... Pin
R. Giskard Reventlov17-Nov-17 6:02
R. Giskard Reventlov17-Nov-17 6:02 
GeneralRe: We're all doomed... Pin
Jeremy Falcon17-Nov-17 7:15
professionalJeremy Falcon17-Nov-17 7:15 
GeneralJavascript brace style - THAT discussion probably again Pin
Marc Clifton17-Nov-17 5:24
mvaMarc Clifton17-Nov-17 5:24 
So, I force myself to write Javascript with this brace style, since it seems that that's what is the "correct" style (example):
function ajaxError(data) {
        alertBad(data);
    }

But then I see this HTML5 WebSockets

and their example uses the style I'm used to in C#.

So which is the "approved / standard / whatever" style? What style do you use:

1: Javascript style as per example?
2: Braces on separate lines style?
Latest Article - Class-less Coding - Minimalist C# and Why F# and Function Programming Has Some Advantages

Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny

Artificial intelligence is the only remedy for natural stupidity. - CDP1802

GeneralRe: Javascript brace style - THAT discussion probably again Pin
Maximilien17-Nov-17 5:27
Maximilien17-Nov-17 5:27 
GeneralRe: Javascript brace style - THAT discussion probably again Pin
phil.o17-Nov-17 5:33
professionalphil.o17-Nov-17 5:33 
GeneralRe: Javascript brace style - THAT discussion probably again Pin
W Balboos, GHB17-Nov-17 5:36
W Balboos, GHB17-Nov-17 5:36 
GeneralRe: Javascript brace style - THAT discussion probably again Pin
R. Giskard Reventlov17-Nov-17 5:39
R. Giskard Reventlov17-Nov-17 5:39 
GeneralRe: Javascript brace style - THAT discussion probably again Pin
Marc Clifton17-Nov-17 5:42
mvaMarc Clifton17-Nov-17 5:42 
GeneralRe: Javascript brace style - THAT discussion probably again Pin
Slacker00717-Nov-17 5:47
professionalSlacker00717-Nov-17 5:47 
GeneralRe: Javascript brace style - THAT discussion probably again Pin
R. Giskard Reventlov17-Nov-17 6:04
R. Giskard Reventlov17-Nov-17 6:04 
GeneralRe: Javascript brace style - THAT discussion probably again Pin
Marc Clifton17-Nov-17 7:22
mvaMarc Clifton17-Nov-17 7:22 
GeneralRe: Javascript brace style - THAT discussion probably again Pin
Slacker00717-Nov-17 7:28
professionalSlacker00717-Nov-17 7:28 
GeneralRe: Javascript brace style - THAT discussion probably again Pin
TNCaver17-Nov-17 6:39
TNCaver17-Nov-17 6:39 
GeneralRe: Javascript brace style - THAT discussion probably again Pin
Mario Z17-Nov-17 5:55
professionalMario Z17-Nov-17 5:55 
GeneralRe: Javascript brace style - THAT discussion probably again Pin
Mike Hankey17-Nov-17 6:24
mveMike Hankey17-Nov-17 6:24 
GeneralRe: Javascript brace style - THAT discussion probably again Pin
Nemanja Trifunovic17-Nov-17 6:59
Nemanja Trifunovic17-Nov-17 6:59 
GeneralRe: Javascript brace style - THAT discussion probably again Pin
Marc Clifton17-Nov-17 7:43
mvaMarc Clifton17-Nov-17 7:43 
GeneralRe: Javascript brace style - THAT discussion probably again Pin
Gary Wheeler20-Nov-17 1:11
Gary Wheeler20-Nov-17 1:11 
GeneralRe: Javascript brace style - THAT discussion probably again Pin
Dan Neely20-Nov-17 2:50
Dan Neely20-Nov-17 2:50 
GeneralRe: Javascript brace style - THAT discussion probably again Pin
Gary Wheeler20-Nov-17 2:53
Gary Wheeler20-Nov-17 2:53 

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.