The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024


[Message Prev][Message Next][Thread Prev][Thread Next][Message Index][Thread Index]

RE: Re[2]: [OT] Coding style nazis


  • Subject: RE: Re[2]: [OT] Coding style nazis
  • From: "Ian D. Wlloughby" <ian@xxxxxxxxxxxxxxxxxx>
  • Date: Thu, 8 Jul 2004 22:43:07 +0100


No that's wrong you forgot to start it in column 7!!!!
Get back and fill in that coding sheet properly :-)

What you really wanted was:-

GO  LA  R12,48(R10)
SVC 47
XR  R15,R15
BR  R14

:-)

Ian

-----Original Message-----
From: Pete Shew [mailto:ukha_d@xxxxxxx]
Sent: 08 July 2004 22:28
To: UKHA
Subject: Re[2]: [ukha_d] [OT] Coding style nazis

IDENTIFICATION DIVISION.
PROGRAM-ID.  Test
AUTHOR.  Pete

ENVIRONMENT DIVISION.
INPUT-OUTPUT SECTION.
FILE-CONTROL.
......


*********** REPLY SEPARATOR  ***********

On 08/07/2004 at 21:12 Stuart Grimshaw wrote:

>On Thu, 08 Jul 2004 20:50:03 +0100, Calum Morrell <calum@xxxxxxx>
>wrote:
>> 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?
>> >
>> They're both wrong ...
>>
>> for (my $x=0;$x<@_;$x+=2) {
>>      somestuff;
>>      somestuff;
>>      somestuff;
>>      somestuff;
>>      somestuff;
>> }
>>
>> although the first brace could easily be on a line on it's own as
>> well .. it's just easier to read large code blocks as the end
brace
>> matches with the start "for", so optically it makes
sense. Program in

>> Python for a while to get used to it.
>
>Calum's right, most coding standards I've ever seen use this form.
>
>As long as everyone in the department uses the same standard, and new
>employees are indoctrinated when they start, it doesn't really matter.
>I've also yet to work in a place that does that :-)
>
>--
>-S
>
>
>
>
>
>Yahoo! Groups Links
>
>
>






UKHA_D Main Index | UKHA_D Thread Index | UKHA_D Home | Archives Home

Comments to the Webmaster are always welcomed, please use this contact form . Note that as this site is a mailing list archive, the Webmaster has no control over the contents of the messages. Comments about message content should be directed to the relevant mailing list.