|
Richard MacCutchan wrote: Your home page says you're American, that explains it. Not a must... Mine shows Germany, but I am spanish
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
Precisely! I was born and grew up far from the USA where I now reside.
Get me coffee and no one gets hurt!
|
|
|
|
|
Earlier than that. Our first coin explicitly for decimalisation was the Florin introduced in the reign of Queen Victoria worth 2s or one tenth of a pound.
|
|
|
|
|
Hardly decimal, it was worth 24 pence.
|
|
|
|
|
stare at it, blame the door for immigration/unemployment/rent costs/the weather and the general moodiness of the fish in the tank.
modified 20-Oct-19 21:02pm.
|
|
|
|
|
|
It's actually a good thing for the all of the EU,
it keeps the EU and UK parliaments quite busy, giving them less time to break other stuff.
Installing Signature...
Do not switch off your computer.
|
|
|
|
|
I am sure they can manage both.
... such stuff as dreams are made on
|
|
|
|
|
Similar taste in food too, from what I tasted.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
You haven't eaten in the UK then.
|
|
|
|
|
A pound too fishy, and an inch too far.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Pom Pey wrote: We ask Politicians ignore.
|
|
|
|
|
|
We certainly are doomed once enough people start getting their "news" and ideas from the Daily Mail...
|
|
|
|
|
Haha: it has been an awful long time since the DM was a "newspaper". It is now a purveyor of dumbed down sound bytes, fake news and Piers Morgan back-slapping pieces.
|
|
|
|
|
Well then, I'm going to Vegas before I die!
Jeremy Falcon
|
|
|
|
|
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?
|
|
|
|
|
I don't have a definitive answer on such a religious question.
Use the coding style you are familiar with.
OR
Use the coding style already in place ( follow current style).
I'd rather be phishing!
|
|
|
|
|
Whatever the style, most important is the consistency of the style. I have my own style choices for my personal projects, but then when I have to dive into shared code, I adopt whatever the style which has been chosen. It doesn't prevent me from quickly getting a method or class functionality, provided there is some consistency across the codebase. Everything else are just opinions, and, well, you know about opinions, don't you?...
"I'm neither for nor against, on the contrary." John Middle
|
|
|
|
|
Use what pleases your eyes: you are the one looking at it !
I, personally (in all brace-using languages) would use a style similar to what you call javaScript, except I would put the closing brace aligned with the beginning of the block (i.e., under the 'f' in function. Similarly, under the 'i' in an if-block. My comfort zone for visual organization.
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
Same as you; mostly because I use the format document/selection menu option in Visual Studio to tidy up code and it's left at the defaults.
|
|
|
|
|
R. Giskard Reventlov wrote: Same as you; mostly because I use the format document/selection menu option in Visual Studio to tidy up code and it's left at the defaults.
Yeah, I just tried that -- VS formatted it back to option 1.
And it's such a useful feature with the html, I guess I'll have to either figure out if it's possible to tell the formatter to use C# style, or live with it, which I've pretty much gotten used to at this point anyways.
|
|
|
|
|
Marc Clifton wrote: VS formatted it back to option 1.
you can change this in VS options
Options --> text editor --> javascript/typescript
|
|
|
|
|
|
Slacker007 wrote: you can change this in VS options
Woohoo! Saved me a google search.
|
|
|
|