User Tools

Site Tools


sudoc:su_prog_rules

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Last revisionBoth sides next revision
sudoc:su_prog_rules [2019/07/30 21:46] seisunixsudoc:su_prog_rules [2019/07/30 21:50] seisunix
Line 33: Line 33:
 ===== Avoid using global variables ===== ===== Avoid using global variables =====
 If you need to pass a variable to a subroutine then pass it as an argument to the subroutine, do not define it as a global variable. If you need to pass a variable to a subroutine then pass it as an argument to the subroutine, do not define it as a global variable.
 +
 +===== Document your code thoroughly =====
 +Make sure there are Notes: in the Self Documentation.
 +Document each declared variable. Put technical information describing the algorithm being used. Remember that "future you" will not remember the things that "present you" knows.
  
 ===== Develop from existing code ==== ===== Develop from existing code ====
Line 375: Line 379:
  
 </code>  </code> 
- 
sudoc/su_prog_rules.txt · Last modified: 2019/07/30 21:55 by seisunix