Which method of packaging our functions is the best?
- Standalone functions: These are great for developing and testing algorithms or creating something one off or standalone that can be given to others. But they could become unwieldy, if they grow too many interdependencies.
- Packages: These allow for shared package variables, which are related to some logical function, but are more loosely coupled in relation to each other or to the data stored in the package.
- Types: These allow for the consistent and homogeneous packaging of all the methods of an object with its persistent data. Methods in an object type tend to be tightly coupled with the object data as they provide the property inspectors and manipulators for them.