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/

Reply via email to