Difference between revisions of "Computing"

From Jtkwiki
Jump to navigationJump to search
Line 12: Line 12:
 
* An instance in a computing process must represent exactly one instance in the modelling domain.
 
* An instance in a computing process must represent exactly one instance in the modelling domain.
 
* Use random number generator objects where possible.
 
* Use random number generator objects where possible.
 
  
 
=== Databases ===
 
=== Databases ===

Revision as of 04:25, 16 July 2008

Programming Principles

General

  • Keep code and data strictly separate.
    • Be aware of whether your programming creates executable content.
  • When using random number generators, seed them explicitly to keep your results reproducible.

Debugging

  • Computers are deterministic machines. All bugs can be reproduced.

Object Oriented Programming

  • An instance in a computing process must represent exactly one instance in the modelling domain.
  • Use random number generator objects where possible.

Databases

  • Identification and description must be kept separate.
    • Primary keys should be generated where reasonably possible.