|
-
Jan 25th, 2016, 07:14 PM
#61001
Re: Post Race!
By the way, the dangling Else is a false problem in that example. Both C# and VB have a construct to bound the block. In C# it's the }, whereas in VB it's the End If. Had either one of those been used in the example, it would have been clear to which If the Else belonged.
My usual boring signature: Nothing
 
-
Jan 25th, 2016, 07:45 PM
#61002
Burn the land and boil the sea
You can't take the sky from me
~T
-
Jan 25th, 2016, 10:34 PM
#61003
Re: Post Race!
I dislike web development.
-
Jan 26th, 2016, 12:05 AM
#61004
My usual boring signature: Something
-
Jan 26th, 2016, 06:08 AM
#61005
The best argument against democracy is a five minute conversation with the average voter - Winston Churchill
Hadoop actually sounds more like the way they greet each other in Yorkshire - Inferrd
-
Jan 26th, 2016, 10:20 AM
#61006
Re: Post Race!
I'm in a bracing meeting.
My usual boring signature: Nothing
 
-
Jan 26th, 2016, 11:01 AM
#61007
Re: Post Race!
 Originally Posted by FunkyDexter
I dislike Elvis Braces
??? Whats that?
Burn the land and boil the sea
You can't take the sky from me
~T
-
Jan 26th, 2016, 11:45 AM
#61008
Re: Post Race!
Code:
It's this {
Format of {
Braces
}
}
Named because the braces look a bit like Elvis throwing one arm up in the air.
I hate them because I find them really confusing and unreadable.
Code:
I Find
{
this
{
a lot more readable
}
}
Of course, it's just a personal preference thing but I'm noticing that the Elvis Braces seem to be starting to take over.
The best argument against democracy is a five minute conversation with the average voter - Winston Churchill
Hadoop actually sounds more like the way they greet each other in Yorkshire - Inferrd
-
Jan 26th, 2016, 12:02 PM
#61009
Re: Post Race!
So what would you call this?
Code:
I'm not so
{ sure
{ about this
}
}
Burn the land and boil the sea
You can't take the sky from me
~T
-
Jan 26th, 2016, 12:33 PM
#61010
Re: Post Race!
 Originally Posted by gruff
so what would you call this?
Code:
i'm not so
{ sure
{ about this
}
}
i c wut u did thar.
"Ok, my response to that is pending a Google search" - Bucky Katt.
"There are two types of people in the world: Those who can extrapolate from incomplete data sets." - Unk.
"Before you can 'think outside the box' you need to understand where the box is."
-
Jan 26th, 2016, 12:39 PM
#61011
Re: Post Race!
I've never heard the term 'Elvis braces' before, but they appear to be standard in JS.
My usual boring signature: Nothing
 
-
Jan 26th, 2016, 01:47 PM
#61012
Re: Post Race!
Well for one, JavaScript is for the money.
For two, Java is for the show.
And for three, C++ is for the go cat go!
-
Jan 26th, 2016, 02:42 PM
#61013
Re: Post Race!
That's digging pretty deep for a youth like you.
My usual boring signature: Nothing
 
-
Jan 26th, 2016, 04:58 PM
#61014
Burn the land and boil the sea
You can't take the sky from me
~T
-
Jan 27th, 2016, 03:38 AM
#61015
Re: Post Race!
So what would you call this?
Bloody Horrible
they appear to be standard in JS
Yeah, I think that's probably why I feel like they're taking over. I'm doing more JavaScript lately than I used to (deliberate effort on my part so my woes are self inflicted ) so it's probably just my warped perception. I am seeing them more and more in TSql examples too. I think that's probably because both RedGate and MS released code formatters that pick that approach by default.
My brace preference (cue some pun from Shaggy about keeping my trousers up) is either the one I posted in 61131 or, if a code block consists of a single line, this:-
Code:
If someCondition == true
{ Single Line of code }
That way my braces line up in pairs (either vertically or horizontally ) so it's nice and easy to see the scope they define. You can, of course, leave the braces out if it's a single line of code and that works for me too. My problem with the Elvis Braces is that they're staggered so it's hard to see what belongs together.
If your feeling kinda restless
And you need a new product to sell
Well down at the end of coding street is
.Net hotel
Last edited by FunkyDexter; Jan 28th, 2016 at 03:12 AM.
The best argument against democracy is a five minute conversation with the average voter - Winston Churchill
Hadoop actually sounds more like the way they greet each other in Yorkshire - Inferrd
-
Jan 27th, 2016, 03:40 AM
#61016
The best argument against democracy is a five minute conversation with the average voter - Winston Churchill
Hadoop actually sounds more like the way they greet each other in Yorkshire - Inferrd
-
Jan 27th, 2016, 03:40 AM
#61017
The best argument against democracy is a five minute conversation with the average voter - Winston Churchill
Hadoop actually sounds more like the way they greet each other in Yorkshire - Inferrd
-
Jan 27th, 2016, 03:40 AM
#61018
The best argument against democracy is a five minute conversation with the average voter - Winston Churchill
Hadoop actually sounds more like the way they greet each other in Yorkshire - Inferrd
-
Jan 27th, 2016, 03:40 AM
#61019
The best argument against democracy is a five minute conversation with the average voter - Winston Churchill
Hadoop actually sounds more like the way they greet each other in Yorkshire - Inferrd
-
Jan 27th, 2016, 03:40 AM
#61020
The best argument against democracy is a five minute conversation with the average voter - Winston Churchill
Hadoop actually sounds more like the way they greet each other in Yorkshire - Inferrd
-
Jan 27th, 2016, 05:35 AM
#61021
-
Jan 27th, 2016, 09:09 AM
#61022
-
Jan 27th, 2016, 09:09 AM
#61023
-
Jan 27th, 2016, 10:44 AM
#61024
Re: Post Race!
Just as long as they're politically correct moarmaids.
The best argument against democracy is a five minute conversation with the average voter - Winston Churchill
Hadoop actually sounds more like the way they greet each other in Yorkshire - Inferrd
-
Jan 27th, 2016, 05:15 PM
#61025
Re: Post Race!
 Originally Posted by FunkyDexter
Just as long as they're politically correct moarmaids.
If he gets it wrong we'll just have to tweak it...
-
Jan 27th, 2016, 10:49 PM
#61026
Re: Post Race!
 Originally Posted by FunkyDexter
Just as long as they're politically correct moarmaids.
What does "politically correct" mean ? Does this mean that the mermaids have to support the right politicians ?....Maybe a Donald Trump mermaid ?
-
Jan 28th, 2016, 03:13 AM
#61027
Re: Post Race!
You wouldn't want go swimming when there was a trumping mermaid around.
The best argument against democracy is a five minute conversation with the average voter - Winston Churchill
Hadoop actually sounds more like the way they greet each other in Yorkshire - Inferrd
-
Jan 28th, 2016, 10:25 AM
#61028
My usual boring signature: Nothing
 
-
Jan 28th, 2016, 10:26 AM
#61029
Re: Post Race!
By the way, how DOES bracing have anything to do with trousers? Is 'braces' another term for suspenders over there?
My usual boring signature: Nothing
 
-
Jan 28th, 2016, 10:34 AM
#61030
Re: Post Race!
Brace yourself for this one!
-
Jan 28th, 2016, 11:26 AM
#61031
Re: Post Race!
I felt that the question was em-bracing knowledge.
My usual boring signature: Nothing
 
-
Jan 28th, 2016, 11:48 AM
#61032
Re: Post Race!
What do you call a woman with braces? A black and decker pecker wrecker!
-
Jan 28th, 2016, 11:48 AM
#61033
Re: Post Race!
That one was a little naughty
-
Jan 28th, 2016, 12:56 PM
#61034
Re: Post Race!
I believe that somebody came up with the answer, then tried to come up with a question where that answer might, just possibly, be right.
My usual boring signature: Nothing
 
-
Jan 28th, 2016, 05:20 PM
#61035
Re: Post Race!
I'm partial to half-centaurs.
This answer is wrong. You should be using TableAdapter and Dictionaries instead.
-
Jan 28th, 2016, 06:36 PM
#61036
Re: Post Race!
Which half?
Centaurs are even more messed up than mermaids. They have the complete torsos of both humans and horses. Which set of internal organs are being used? The human heart and lungs probably wouldn't be sufficient for the horse, and it's hard to say about the digestive tract. So, how does the plumbing work on those things?
My usual boring signature: Nothing
 
-
Jan 28th, 2016, 06:56 PM
#61037
-
Jan 28th, 2016, 09:07 PM
#61038
My usual boring signature: Nothing
 
-
Jan 28th, 2016, 09:08 PM
#61039
My usual boring signature: Nothing
 
-
Jan 29th, 2016, 05:48 AM
#61040
Re: Post Race!
Is 'braces' another term for suspenders over there?
Not unless suspenders is another term for braces over there. Ladies use suspenders to keep there stockings up. Men use braces to keep their trousers up. Suspenders are a lot more fun than braces.
The best argument against democracy is a five minute conversation with the average voter - Winston Churchill
Hadoop actually sounds more like the way they greet each other in Yorkshire - Inferrd
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|