40 lines
931 B
Plaintext
40 lines
931 B
Plaintext
Shared coding conventions allow teams to collaborate effectively. Typing operation codes, keywords, specification codes, compiler directives and built-in functions in upper case makes them more immediately recognizable as such, thereby making the code easier to read.
|
|
|
|
|
|
== Noncompliant Code Example
|
|
|
|
----
|
|
c test12 plist
|
|
c parm asdf01
|
|
c parm asdf02
|
|
c parm @pdq
|
|
----
|
|
|
|
----
|
|
/free
|
|
if x = *blank;
|
|
read a;
|
|
endif;
|
|
/end-free
|
|
----
|
|
|
|
|
|
== Compliant Solution
|
|
|
|
----
|
|
C test12 PLIST
|
|
C PARM asdf01
|
|
C PARM asdf02
|
|
C PARM @pdq
|
|
----
|
|
|
|
----
|
|
/free
|
|
IF x = *BLANK;
|
|
READ a;
|
|
ENDIF;
|
|
/end-free
|
|
----
|
|
|
|
|