[Message Prev][Message
Next][Thread Prev][Thread Next][Message
Index][Thread Index]
Re: [OT] Coding style nazis
Hi Andy,
Whatever style you choose, make sure you at least go with the indenting
of blocks of code within the braces etc. Where you put the braces etc,
does not matter, just find your own style.
Try reading a large programme with no indentation at all and you will
see why.
Dave...
---
Very funny Scotty, now beam down my clothes...!!
---
http://www.v8carlton.com
http://www.embeddedcomputer.co.uk
---
UKHA wrote:
> Ok,
>
> Totally OT, but there you go.
>
> I'm looking for some decent resources that will explain why my coding
> style is "wrong", anyone have any?
>
> I'm referring to stuff like why:
>
> for (my $x=0;$x<@_;$x+=2) {
> somestuff;
> somestuff;
> somestuff;
> somestuff;
> somestuff;
> }
>
>
> is better than:
>
> for (my $x=0; $x < @_; $x+=2)
> {
> somestuff;
> somestuff;
> somestuff;
> somestuff;
> somestuff;
> }
>
>
> (assuming yahoo doesn;t make a right old pigs ear of it)
>
>
> Andy
>
UKHA_D Main Index |
UKHA_D Thread Index |
UKHA_D Home |
Archives Home
|