[ng-dhtml] directory structure
mail at dylans.org
Thu Sep 16 12:09:19 CDT 2004
Well, I had thought we decided on a directory structure a while ago, but it seems that what we really decided on was the class structure, and then the structure for unit tests:
So, any suggestions on how to organize our files? I guess to some extent, some of this is influenced by what constitutes a file... should a file be a single class, or a collection of related classes, or based on the namespace breakdown, with one file for each item following a dot down to the class level, and should those files be nested in directories, or should nesting be shallow?
In my practice, I've tended to follow the pattern of each file representing a class, or a class plus some utilities functions that are closely related to it, and each directory containing a set of related classes that collectively form a higher level construct of some sort. So for example you might have hte following subtree:
src/widgets/ (would contain base class and other stuff applicable to all default widgets)
src/widgets/window (code specific to window widgets)
or if the core widgets have a lot of files, I might add another directory or more for some of that stuff, for example
I guess from a pragmatic approach, it would be nice to indetify what should be at a top level, what should be the next level down, etc., so we have some basic informal guidelines for new things we haven't yet considered.
Let me know what you think and I'll set the structure up in svn later today.
More information about the NG-DHTML