View Single Post
Z-man Z-man is offline
Moderator
 
Z-man's Avatar
 
Join Date: Feb 2001
Location: NJ, USA
Posts: 9,628
Garage
Re: Question For The Uber Geeks

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.
__________________
2010 Cayman S - 12-2020 -
2014 MINI Cooper S Coupe - 05-17 - 05-21
1989 944S2 - 06-01 - 01-14
Carpe Viam.
<><
Old 06-15-2006, 10:16 AM
  Pelican Parts Catalog | Tech Articles | Promos & Specials    Reply With Quote #5 (permalink)