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 run
indsor, NSW, Australia
AFP Webworks
http://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 thin
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%;
}
My brace style of use is K&R (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 c
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 c
Yeah sorry Russ :)
I shouldnt of started this, i knew how it would end...
Chris Stratford
[EMAIL PROTECTED]
Http://www.neester.com
russ weakley wrote:
Forgive me for sounding grumpy, but I think this sort of thing can go on too
long. We are not talking about standards or best practices no
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 wrot
Forgive me for sounding grumpy, but I think this sort of thing can go on too
long. We are not talking about standards or best practices now, we are
talking about personal preferences.
Whitespace inside a declaration block is ignored - so it can be used to lay
out rules or rules sets in any way you
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
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
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, 200
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 e
This is great flamewar material, dude :).
I adhere pretty closely to the K&R 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
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...
T
Hmm.
Email programs aren't really the best for coding, some of the carriage
returns weren't rendered... but you know what I mean. :D
Cheers
James
James Ellis wrote:
Chris
We had a chat about this over at sydney.ug.php.net and position :
divided; :D The one you mention is discussed among other
Chris
We had a chat about this over at sydney.ug.php.net and position :
divided; :D The one you mention is discussed among others at
http://www.kafejo.com/komp/1tbs.htm. I prefer the BSD style as you get:
if()
{
...
}//end if
else
{
...
}//end else
And the braces are all lined up which m
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 -vs
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 Strat
18 matches
Mail list logo