(Link to AcmlmWiki) Offline: thank ||bass
Register | Login
Views: 13,040,846
Main | Memberlist | Active users | Calendar | Chat | Online users
Ranks | FAQ | ACS | Stats | Color Chart | Search | Photo album
05-21-24 10:14 PM
0 users currently in Programming.
Acmlm's Board - I3 Archive - Programming - East Coast or West Coast? New poll | |
Pages: 1 2Add to favorites | Next newer thread | Next older thread
Do you prefer to use east coast or west coast braces.
East Coast
 
56.0%, 14 votes
West Coast
 
44.0%, 11 votes
Multi-voting is disabled. 25 users have voted.

User Post
Black Lord +

Flurry


 





Since: 11-17-05
From: Where indians still roam...

Last post: 6303 days
Last view: 6304 days
Posted on 01-24-06 10:10 PM Link | Quote
Well, I never even realized there was a preference, but I guess I've always used East Coast brace, just wondering what everyone else used.

Ex.

East Coast

if (statement)
{

}

West Coast
if (statement) {

}
Xkeeper
Took the board down in a blaze of glory, only to reveal how truly moronical ||bass is.


 





Since: 11-17-05
From: Henderson, Nevada

Last post: 6302 days
Last view: 6302 days
Skype
Posted on 01-24-06 10:43 PM Link | Quote
I always found that the 'west coast' style with proper indentation looked better...


conditional statement {


bullshit;
more bullshit;

conditional statement 2 {

even more bullshit;

}
}

verusus
conditoional statement

{
blahblahb;
blahblahb;

conditional statement
{
whatever;
dlaksdflsjd;
}
}


*Xkeeper shrugs
||bass
Administrator








Since: 11-17-05
From: Salem, Connecticut

Last post: 6303 days
Last view: 6301 days
Posted on 01-24-06 10:44 PM Link | Quote
Definately East Coast for me.
I notice alot of older programmers (read: over 40) seem to prefer the West Coast style. I strongly dislike the West Coast style because the code looks far less organized.

The physical layout of code with the West Coast style is almost reminiscent of VB, a language I intensely dislike.

You'll also notice with East Coast style that you can immediately tell which opening brace goes with which closing brace with no effort at all. Readibility all the way.


(edited by ||bass on 01-24-06 09:45 PM)
neotransotaku

Sledge Brother
Liberated from school...until MLK day








Since: 11-17-05
From: In Hearst Field Annex...

Last post: 6304 days
Last view: 6302 days
Posted on 01-24-06 11:42 PM Link | Quote
East Coast -- i can't stand braces on the same line with an if, for, while, etc; readability is the main reason. Also, in the old days, that was prefered because space was a premium. However, with RAM averaging 1GiB, and HD setups that approach 1 TiB, who needs to save space?
Zem
Permabanned. Flaming, trolling, reregistering.


 





Since: 11-18-05

Last post: 6624 days
Last view: 6624 days
Posted on 01-25-06 03:21 AM Link | Quote
Huh.

West Coast, for no more interesting reason than that's the way I learned it and that looks better to me.
HyperHacker

Star Mario
Finally being paid to code in VB! If only I still enjoyed that. <_<
Wii #7182 6487 4198 1828


 





Since: 11-18-05
From: Canada, w00t!
My computer's specs, if anyone gives a damn.
STOP TRUNCATING THIS >8^(

Last post: 6302 days
Last view: 6302 days
Posted on 01-25-06 03:55 AM Link | Quote
East is just so much easier to read.
Kyoufu Kawa
Intends to keep Rom Hacking in one piece until the end








Since: 11-18-05
From: Catgirl Central Station

Last post: 6302 days
Last view: 6302 days
Posted on 01-25-06 12:06 PM Link | Quote
East coast, because the braces and the invisible tab-lines connecting them stand out more.

I keep reformatting -.-
interdpth

Mole
MZM rapist


 





Since: 11-18-05

Last post: 6302 days
Last view: 6301 days
Posted on 01-25-06 10:53 PM Link | Quote
I'll take either depends on how long the source file I am working with is. If it's a few lines i'll take west coast
Otherwise east coast
creaothceann

Red Goomba








Since: 11-22-05

Last post: 6497 days
Last view: 6497 days
Posted on 01-26-06 02:52 AM Link | Quote
I've learned coding in DOS editors (25 lines max.), so "West Coast" all the way. Can't stand stuff like
If x then
Begin
...
...
...
End;

Though that's only in Pascal. In C I'd probably use "East Coast".
firemaker

Cheep-cheep


 





Since: 12-13-05
From: Somewhere in a place called Berkshire

Last post: 6380 days
Last view: 6380 days
Posted on 01-26-06 03:22 AM Link | Quote
East coast all the way. West coast is fairly annoying to read for sure.
Boom.dk









Since: 11-18-05
From: Denmark

Last post: 6320 days
Last view: 6301 days
Skype
Posted on 01-26-06 03:14 PM Link | Quote
West Coast for me. It seems stupid to use 2 lines for such a statement. I dunno.
Gavin

Cheep-cheep
Vandalism is not tolerated


 





Since: 11-17-05
From: IL, USA

Last post: 6378 days
Last view: 6322 days
Posted on 01-26-06 04:33 PM Link | Quote
I would easily say East coast. For a time I blundered around with West Coast style, but then I saw the light. East coast just seems to provide a better visual orientation... keeping the brackets on the same indentation level just makes more sense spacially and logically.
MisterJones

Tooky








Since: 12-08-05
From: Mexico

Last post: 6391 days
Last view: 6328 days
Posted on 01-26-06 06:30 PM Link | Quote
East Coast. 'cuz I like it and works better with Crimson Editor's select block and Code::Blocks hide code feature.
FreeDOS +

Giant Red Koopa
Legion: freedos = fritos








Since: 11-17-05
From: Seattle

Last post: 6301 days
Last view: 6301 days
Posted on 01-27-06 02:03 PM Link | Quote
West looks better to me.
Black Lord +

Flurry


 





Since: 11-17-05
From: Where indians still roam...

Last post: 6303 days
Last view: 6304 days
Posted on 01-27-06 03:58 PM Link | Quote
Wow lots of mixed opinions... the reason why I was asking was because my C++ 2 teacher demands we use east coast... he says it was the only way. I have always used east coast, but I just thought I'd ask you all what you thought... I wasn't expecting such a close poll at all.
Randy53215

Melon Bug


 





Since: 11-17-05
From: Greenfield, Wisconsin (U.S.A)

Last post: 6302 days
Last view: 6301 days
Skype
Posted on 01-27-06 05:18 PM Link | Quote
I tend to use both say...


if ( $variable = true ) {

echo "The variable is true" ;

}
else
{

echo "The variable is false" ;

}


But I will go with east coast, because I tend to use that more.
Disch

Red Cheep-cheep


 





Since: 12-10-05

Last post: 6581 days
Last view: 6581 days
Posted on 01-27-06 05:37 PM Link | Quote

int i, j, k = 0; j = k+5;i=k*15%6+3;if(j==k) printf("print to screen %d",i);


Compressed code is ugly, hard to follow, and just all around sloppy. Honestly, what is the point of shaving 1 line off your code if it makes the code harder to read? Putting a comment here and there, or even just an empty line or two to seperate blocks of code may make the source file a whole 2k bigger (as if that's some kind of big deal or something) but it makes things more of a hassle to work with.


Back in the day I took this a step further doing things like:


if(something){
do_something;
} else {
do_something; }


because I thought "having a line with just { or } on it is wasteful". Of course if you can imageine how cluttered and hard to follow my code was... you'll see why I eventually switched.

So yeah -- "east coast" I guess. Although where do these names come from? Wouldn't the { on its own line be west coast since the { is more to the left? or do the names have some other meaning? I've never heard these terms before this thread.
||bass
Administrator








Since: 11-17-05
From: Salem, Connecticut

Last post: 6303 days
Last view: 6301 days
Posted on 01-27-06 07:46 PM Link | Quote
I'd also like to point out that, although I use East Coast style, West is appropriate if not preferable in cases of 1 line functions.

Take the example:

int getSize() {return(_size);}

Stuff like this would look silly expanded out.
Disch

Red Cheep-cheep


 





Since: 12-10-05

Last post: 6581 days
Last view: 6581 days
Posted on 01-27-06 10:40 PM Link | Quote
Agreed

Compact code also works well in other areas (like moderately large macros)
Kyoufu Kawa
Intends to keep Rom Hacking in one piece until the end








Since: 11-18-05
From: Catgirl Central Station

Last post: 6302 days
Last view: 6302 days
Posted on 01-29-06 10:37 AM Link | Quote
Originally posted by ||bass

int getSize() {return(_size);}
You too eh?
Pages: 1 2Add to favorites | Next newer thread | Next older thread
Acmlm's Board - I3 Archive - Programming - East Coast or West Coast? |


ABII

Acmlmboard 1.92.999, 9/17/2006
©2000-2006 Acmlm, Emuz, Blades, Xkeeper

Page rendered in 0.017 seconds; used 445.96 kB (max 568.22 kB)