Register | Login | |||||
Main
| Memberlist
| Active users
| Calendar
| Chat
| Online users Ranks | FAQ | ACS | Stats | Color Chart | Search | Photo album |
| |
0 users currently in Programming. |
Acmlm's Board - I3 Archive - Programming - East Coast or West Coast? | New poll | | |
Pages: 1 2 | Add 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: 6433 days Last view: 6434 days |
| ||
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: 6431 days Last view: 6431 days |
| ||
I always found that the 'west coast' style with proper indentation looked better...
conditional statement { verusus conditoional statement *Xkeeper shrugs |
|||
||bass Administrator Since: 11-17-05 From: Salem, Connecticut Last post: 6432 days Last view: 6431 days |
| ||
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: 6433 days Last view: 6431 days |
| ||
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: 6754 days Last view: 6754 days |
| ||
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: 6432 days Last view: 6432 days |
| ||
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: 6431 days Last view: 6431 days |
| ||
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: 6431 days Last view: 6431 days |
| ||
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: 6626 days Last view: 6626 days |
| ||
I've learned coding in DOS editors (25 lines max.), so "West Coast" all the way. Can't stand stuff like
If x then 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: 6509 days Last view: 6509 days |
| ||
East coast all the way. West coast is fairly annoying to read for sure. | |||
Boom.dk Since: 11-18-05 From: Denmark Last post: 6449 days Last view: 6431 days |
| ||
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: 6508 days Last view: 6451 days |
| ||
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: 6521 days Last view: 6457 days |
| ||
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: 6431 days Last view: 6431 days |
| ||
West looks better to me. | |||
Black Lord + Flurry Since: 11-17-05 From: Where indians still roam... Last post: 6433 days Last view: 6434 days |
| ||
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: 6432 days Last view: 6431 days |
| ||
I tend to use both say...
But I will go with east coast, because I tend to use that more. |
|||
Disch Red Cheep-cheep Since: 12-10-05 Last post: 6711 days Last view: 6711 days |
| ||
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:
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: 6432 days Last view: 6431 days |
| ||
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: 6711 days Last view: 6711 days |
| ||
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: 6431 days Last view: 6431 days |
| ||
Originally posted by ||bassYou too eh? |
Pages: 1 2 | Add to favorites | Next newer thread | Next older thread |
Acmlm's Board - I3 Archive - Programming - East Coast or West Coast? | | |