Quote:
Originally posted by JanusCole
Unfortunately, the coding examples I see on the internet were mostly written by dyslexic monkeys on acid.
|
I see you've met my IT department's system programmers...
I do a little amount of coding, but it's in REXX on Z/OS (Mainframe). Mostly storage related stuff and manipulation of tables to create source code.
My own personal guidelines for coding (as learned in my impressionable college years) have been:
1. Documentation is key. Especially with languages that are 'self-documenting'
2. A procedure should have only one function.
3. The main program (whatever it's called in your language) should only contain priming of variables and calls to procedures.
4. Variables should have logical names. (skippy=12 is NOT a logical name, but Gigabytes_used=12 IS.)
5. When debugging, don't expect different results if you haven't changed anything.
-Z-man.