MPE/iX - CI Programming for Stability
July 18, 2008 HP World '01 18
• Comment all parameters and their expected and default
values. Equally important for entry points since args may be
used differently and input and/or output may have been
redirected.
• Define good default parm values and allow some obvious
value for the first parm (“?”) to signify script-specific help.
Sometimes an absent first parm should imply help text needs
to be displayed.
• Choose parameter names which do not collide with the
variable names in the script/UDC.
• Use “entry points” to make scripts more structured and for
file I/O. The parameter based alternate entry approach is
superior from a flexibility perspective since it works in all
environments and is easily expanded.
Recommendations