Multiple hoc files, single model

The basics of how to develop, test, and use models.
Post Reply
Posts: 38
Joined: Sun Oct 16, 2011 1:58 pm

Multiple hoc files, single model

Post by Qroid_montreal »

Beyond conceptual clarity, is there a motivation to split hoc code into multiple hoc files? For example, could all the hoc files found in the example here ( ... f=28&t=168) be combined without affecting the implementation of the model?
Site Admin
Posts: 5810
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine

Re: Multiple hoc files, single model

Post by ted »

In principle the answer is "yes." There are other principles, however, including most pertinently:
1. all code is garbage until proven otherwise
2. the principal task in computational modeling is establishing conceptual control, that is, being sure that there is a close match between what you think is in the computer, and what is actually in the computer
3. the only thing worse than trying to read and understand your own old code, is trying to read and understand someone else's old code
4. you're free to do what you like and see if it works
5. if you break it, you debug it
Post Reply