General Tips for Breve Development
After a fair amount of trial and error here is a list of a few tips to help coding breve simulations.
1. Think of your simulations as a sketch use metaphors to build fast prototypes. Be willing to delete any effort.
2. Build in your documentation, rather than on. This helps you remember and plan other ideas at the same time.
3. Use object inheritance, objects with greater than seven method or function calls are difficult to maintain.
4. Initialize all variables before they are used. example +to init: var=0.0.
5. Add a logging object to trace through your code, write to the log window or file. The debugger may catch an error, and it might be in another file!
6. Breve manages real one time calculations best during object iteration. (if a>b : c.) If you need to manage a set of equations consider buffering the calculations before iteration. (+ to optimize-path: i<1000,i++... if a{i}>a{i + 1}:c+=a{i}/10000; +to iterate: if c>maximum : agent-is off_course.)
7. Document your pitfalls, and decide what options you can take in advance if things don't go as planned.
8. Collect all information and ask informed intelligent questions.
