Re: [WSG] Coding Standard...

2004-03-01 Thread Kay Smoljak
Michael Kear wrote: So just for the hell of it, I hit the Top Style 'stylesweeper', and bingo! Everything was nicely laid out. I love TopStyle's stylesweeper - before a site goes live, I use it to remove all extra spaces (to reduce download time). If I want to work on that file again, I

Re: [WSG] Coding Standard...

2004-02-29 Thread Tim Lucas
My brace style of use is KR (Kernighan and Ritchie -- or what you call 'goofy') but I prefer to read GNU style, then BSD style (what you called 'lined up method'). I guess it goes back to my C programming days. If wateva team I'm working with doesn't like it then it's only 2 lines of perl to

Re: [WSG] Coding Standard...

2004-02-29 Thread Nick Lo
Don't forget that it also has a lot to do with what you're using to edit the files. I use jEdit with it's folding functionality set to indent which means... div.row span.left { float: left; text-align: left; font-weight: bold; color: #fff; width: 49%; }

RE: [WSG] Coding Standard...

2004-02-29 Thread Michael Kear
://afpwebworks.com -Original Message- From: russ weakley [mailto:[EMAIL PROTECTED] Sent: Sunday, 29 February 2004 2:18 PM To: Web Standards Group Subject: Re: [WSG] Coding Standard... Forgive me for sounding grumpy, but I think this sort of thing can go on too long. We are not talking

[WSG] Coding Standard...

2004-02-28 Thread Chris Stratford
Hey Everyone, This is a great debate in Perl, C++, PHP... Its all the same with CSS too! I HATE It When People code with the curly brackets like this: div.row span.left { float: left; text-align: left; font-weight: bold; color: #fff; width: 49%; } I prefer to code like

Re: [WSG] Coding Standard...

2004-02-28 Thread Neerav
Properly lined up is better IMHO div.row span.left { float: left; text-align: left; font-weight: bold; color: #fff; width: 49%; } is much easier to work with especially when the program you're developing highlights matching open/close brackets. Chris

Re: [WSG] Coding Standard...

2004-02-28 Thread Chris Stratford
Yeah, Thats my opinion too! But every tutorial website I see (well most)... Use the IMO - "goofy" method.. I mean why have the Open bracket on the top line? It makes it so hard to find the opening, because its not inline with anything! So far its: 2:0 for, LUM -vs- GM (Lined Up Method

Re: [WSG] Coding Standard...

2004-02-28 Thread Chris Stratford
Good point james - about the team work :) i will make sure i remember that before I start any group coding... Could save a lot of time/effort... well - I dont understand why whenever I read someones code - its using the goofy method... I mean - if most people prefer the lined up method...

Re: [WSG] Coding Standard...

2004-02-28 Thread Andrew Sione Taumoefolau
This is great flamewar material, dude :). I adhere pretty closely to the KR style (opening curly bracket on the same line as the selector [or function or class definition, or conditional, or whatever]), mostly because it conserves the most space (and because I don't think I've ever used curlies

Re: [WSG] Coding Standard...

2004-02-28 Thread Sean A Corfield
On Feb 28, 2004, at 4:37 PM, Chris Stratford wrote: well - I dont understand why whenever I read someones code - its using the goofy method... I mean - if most people prefer the lined up method... Most people *who have expressed a preference here* - that is not most people :) A lot of code

Re: [WSG] Coding Standard...

2004-02-28 Thread Chris Stratford
I said MOST people, because on teh website that James sent over. They say that thy have conducted Polls etc... And found that the most common is the BSD method... :) Thats where I got it from :) Chris Stratford [EMAIL PROTECTED] Http://www.neester.com Sean A Corfield wrote: On Feb 28,

Re: [WSG] Coding Standard...

2004-02-28 Thread Sean A Corfield
On Feb 28, 2004, at 5:10 PM, Chris Stratford wrote: I said MOST people, because on teh website that James sent over. They say that thy have conducted Polls etc... It's like the cat food commercial... they used to say 8 out of 10 owners said their cats prefer Whiskas and after a while they were

Re: [WSG] Coding Standard...

2004-02-28 Thread Ben Bishop
I'll put my hand up for the goofy style. It's my preference, my habit - be it CSS rules, functions, CFScript, what have you. In a team environment, I'd use whatever style made it easier for the whole team to concentrate on the work at hand. What's next? Space or tab indentation? :) --ben If

Re: [WSG] Coding Standard...

2004-02-28 Thread Chris Stratford
LOL Yeah? Im all for TAB indentation (I set my tabs to be a width of 4 Spaces) :) Tabs are more definable, I use SOURCEEDIT... And when I turn on the SHOW WHITESPACE, all the Dots as spaces are very irritating... :P Chris Stratford [EMAIL PROTECTED] Http://www.neester.com Ben Bishop

Re: [WSG] Coding Standard...

2004-02-28 Thread Michael Donnermeyer
I agree, it's a personal preference more than anything else. I can say from the butt-load of site's I looked at, the vast majority used the goofy style. I personally choose that way when I code because it's what I'm used to and comfortable with. The one that drives me nuts is what someone