I prefer and use lower case statements/functions/labels, etc and variables in 
uppercase. Purely to be consistent, all existing code is coded in the "style" - 
layout, format, case of the original. Nothing worse than seeing different 
"standards" in the one program. ;)

It makes good sense for someone coding in .NET to use something they're 
familiar with. However, if it is maintained by "traditional U2" programmers it 
can case some serious issues on some U2/MV platforms (or simply won't work 'as 
expected')...YMMV...

Issues with mixed/lowercase:

- lack of cross-platform consistent support for mixed-case. All platforms 
support uppercase everything...keeps it simple. 
- backward compatibility to earlier U2 release - old UV releases have limited 
mix-case support. 
- some platforms variables names are case-sensitive (a nightmare to debug, if 
variable Abc and ABc is different)
- third-party IDE/editor support. Sometimes, mixed case just won't work (code 
folding, syntax colouring, auto-indenting, code-completion, etc)...usually 
nothing you can't "hand fix".

Although all uppercase is "less readable and less pretty" (to an extent) it is 
easier to maintain as a single standard. As you will always come across people 
deadest against any such change. And if you want to maintain a consistent 
standard all your code is already 100% in uppercase, it is best to leave it as 
is. :)


-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Charles Stevenson
Sent: Thursday, 25 June 2009 4:39 AM
To: U2 Users List
Subject: [U2] Mixed Case UV Basic Programming Standards.

I don't like the way I use mixed case, so it tends to evolve.  Not good, 
because consistency in programming style throughout an application makes 
for easier maintenance, & maintainability is the god of software quality.

So I am wondering how others use mixed case.
Do you capitalize/lower/mix case for  commands? Operators? Variables? 
Equates? etc.
How do you use/not use special characters in variable names?
users

************** IMPORTANT MESSAGE *****************************       
This e-mail message is intended only for the addressee(s) and contains 
information which may be
confidential. 
If you are not the intended recipient please advise the sender by return email, 
do not use or
disclose the contents, and delete the message and any attachments from your 
system. Unless
specifically indicated, this email does not constitute formal advice or 
commitment by the sender
or the Commonwealth Bank of Australia (ABN 48 123 123 124) or its subsidiaries. 
We can be contacted through our web site: commbank.com.au. 
If you no longer wish to receive commercial electronic messages from us, please 
reply to this
e-mail by typing Unsubscribe in the subject line. 
**************************************************************



_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users

Reply via email to