Sorry Brian, but I can read the second one a lot better then the
first....but that's because I am looking for uppercase words, mixed case
never looks neat to me. 


Les Sherlock Hewkin 
Project Manager - Financial Systems 
01604 592289 


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: 14 March 2007 09:16
To: u2-users@listserver.u2ug.org
Subject: Re: [U2] Error in report generation.

Mark

I WAS WAITING FOR YOU TO RESPOND THERE!
SO YOU PREFER CODE THAT SHOUTS BACK AT YOU?
THERE ARE GOOD REASONS WHY THE REST OF THE WORLD HAS SWITCHED TO MIXED
CASE CODING - IT IS GENUINELY QUICKER TO SCAN AND READ. FORTUNATELY I'VE
ONLY BEEN WITH MULTIVALUE FOR TWENTY YEARS SO I WAS ABLE TO DITCH UPPER
CASE AS SOON AS UNIVERSE CAME ALONG. PROVING WHAT YOU SAID IN YOUR EMAIL
ABOUT NOT FOLLOWING 'BUT THAT'S HOW I WAS TAUGHT' :)

I'm not being frivolous (or personal - you obviously *read* these
emails!) here.

Whether we like it or not, perception is important. Whilst we are trying
to position/encourage UniVerse, UniData et al as modern and up to date
systems with a strong history, it makes sense to write in ways that
match the expectations of new developers who are brought up with current
conventions: that includes mixed case coding, legible styles and formats
that can be genuinely expressive - like not using field numbers for
example (a REAL bugbear of mine). Not using ED helps, of course.

Before anyone jumps in - no I don't advocate rewriting existing code in
this way. But quickly scan the following two sections and see which one
reads faster. If you've been brought up around Delphi, Java, C#, VB, ASP
or any of the 'modern' languages I'm willing to bet the first will be
considerably quicker.

Loop
  ReadNext Id From MYLIST Else 
    Fin = @True
  End
Until Fin Do
  ReadU CustomerRec From CUSTOMERS, Id Then
     GoSub ProcessRecord
  End
Repeat

LOOP
  READNEXT ID FROM MYLIST ELSE
   FIN = @TRUE
  END
UNTIL FIN DO
  READU CUSTOMERREC FROM CUSTOMERS, ID THEN
     GOSUB PROCESS.RECORD
  END
REPEAT


Brian
-------
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/

<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=UTF-8">
</head>
<body>
<P style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt"><SPAN 
style="FONT-SIZE: 8.2pt; FONT-FAMILY: 'MS Sans Serif'">This e-mail and any 
attachments are confidential and intended solely for the use of the addressee 
only. If you have received this message in error, you must not copy, distribute 
or disclose the contents; please notify the sender immediately and delete the 
message. </SPAN></P>
<P style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt"><SPAN 
style="FONT-SIZE: 8.2pt; FONT-FAMILY: 'MS Sans Serif'">This message is 
attributed to the sender and may not necessarily reflect the view of Travis 
Perkins plc or its subsidiaries (Travis Perkins). Agreements binding Travis 
Perkins may not be concluded by means of e-mail communication. </SPAN></P>
<P style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt"><SPAN 
style="FONT-SIZE: 8.2pt; FONT-FAMILY: 'MS Sans Serif'">E-mail transmissions are 
not secure and Travis Perkins accepts no responsibility for changes made to 
this 
message after it was sent. Whilst steps have been taken to ensure that this 
message is virus free, Travis Perkins accepts no liability for infection and 
recommends that you scan this e-mail and any attachments. </SPAN></P>
<P style="MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0pt"><SPAN 
style="FONT-SIZE: 8.2pt; FONT-FAMILY: 'MS Sans Serif'">Part of Travis Perkins 
plc. Registered Office: Lodge Way House, Lodge Way, Harlestone Road, 
Northampton, NN5 7UG. </SPAN></P>
</BODY>
</HTML>
-------
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to