There are a number of user interface issues that affect our view of this,
1. the navigation of snippets needs to take into account that there is limited
space on the interface. - hence long names are a bit difficult to see,
especially if the relivant information is at the right hand side. (and as an
opinion, this navigation space should always be limited against the
'editing/viewing area' of an interface.)
2. the user looking at the top level snippet dir, should in theory be able to
see what snippets they have installed very quickly.
these lead us to the 'short prefix' and having a wide base tree rather than a
shallow one with snippets inside.
if we did adopt a domain based 'naming convention', then it would involve a
number of issues:
changing all the code (not really a major concern)
having very long mgd_include_snippet lines - not very nice...
extra complexity with limited advantages when using and looking at snippetdir
trees. - even if we hid the complexity, that would introduce confusion when
writing mgd_include_statements....
looking at other conventions for this type of thing....
package naming - redhat & debian = has very little structure (eg only -dev)
etc.
package storage -
- redhat = none
- debian = /web/XXXXXX (function based top level directory)
perl modules - installed
- /usr/lib/perl5/
MIME, Mail, Apache, CGI, Weblint ....
perl modules - on server
/id/NAME/Files
all other indexing uses symbolic links (and textfile indexes)
I guess an ideal answer looking at this would be to have 'symbolic links'
implemented in midgard :) - feature suggestion for 2.0?
then interfaces could use either the functional or owner based naming tree to
display snippets. - note however that the mgd_include_snippet would have to
resolve in a similar way to the interface to make the system easy to use.
I would suggest that until midgard can offer a symlink type view of snippets,
that something more akin to this may be better..
View by function
Adminsites_MGD_Asgard/all the code...
Adminsites_HKLC_Nadmin
Adminsites_MGD_Admin
Forum_HKLC_simple
Forum_XYZ_phorum
Mail_SDRIVER_TWIG
Mail_XXX_IMP
Shopping_BBB_PHPshop
Shopping_AAA_OpenMerchant
The middle letter would have to be 'registered' centrally if it was to be
distributed (eg. with midgard).. however users are left to their own devices
when creating their own snippets, the suggestion being that the create their
own 'ID' and if any id's clash, then a simple ereg_replace on the code could
fix that.....
Anyway, I thought I'd better comment..
regards
alan
Henri Bergius <[EMAIL PROTECTED]> said:
> On Mon, 5 Feb 2001, David R Newman wrote:
> > So what do you do in countries that have sub domains, such as ac.uk,
> > co.uk, gov.uk, mod.uk, ac.nz and so on? Or large companies with
> > susidiaries or deparments with their own sub domains?
>
> Just make the path longer. For example:
>
> uk.co.bigcompany.department.team.data.article
>
> /Bergie
>
> --
> -- Henri Bergius -- +358 40 525 1334 -- [EMAIL PROTECTED] --
> http://www.iki.fi/Henri.Bergius
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
Technical Director
Linux Center (HK) Ltd.
www.hklc.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]