phil64 Posted March 14, 2004 Share Posted March 14, 2004 Hi OSC developers team, and thanks to you all. You've done a terrific job, and the product is very valuable. I've seen MS3 should increase the use of classes to make osC code more robust. This seems a very good idea. I have a proposal to ease the customization efforts, leveraging the use of classes. And I wondered whether it should be posted here or in the development forum... The idea is separate "FOUNDATION" and "CUSTOM" classes. 1. Definition -------------- 11. Foundation classes are the core of the OSC project, and never modified for customization purpose. They should be able to be replaced whenever needed (e.g. new releases), without affecting the customizations. They are handled by the development team. 12. Custom classes extend the foundation classes, to modify their behaviour and/or add new functionalities. They are handled by users. 2. Naming convention ------------------------- Foundation classes could be named osCF_[Class], and custom classes osC_[Class], as designed in the specs. 3. Use in the code --------------------- To avoid as much as possible changes in the code, foundation classes should never be called directly. Instead, the custom classes should always be used. Changes in the custom classes would automatically be acknowledged in the code, with no harm to the foundation classes. Almost every custom class is created as an empty shell, child of the parent foundation class. Of course, it is possible to use completely new custom classes, with no reference to any existing foundation class. A complete set of empty custom classes, mirroring the foundation classes, is always yielded in new releases, so that the code works. 4. Location ------------- Foundation classes could be kept in a separate directory. Custom classes could be kept in the existing includes/classes directory. This architecture should ease the installation of new releases. Hope this helps. All the best in your projects. Phil. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.