Re: Best way of calling multiple classes?



Michael Fesser wrote:
.oO(Jerry Stuckle)

__autoload is good - but it requires extra processing over and above a require_once, and pretty much everything has to reside in the same directory.

My __autoload() invokes a special class loader method, which allows to
store all my classes and interfaces in subdirectories. The class loader
is able to recursively search through the tree structure if necessary.
The exact location of each found class is cached in an index file, so
the overhead for loading a class is quite small.

Micha

Not bad. But it also adds complexity and overhead.

Don't get me wrong - I like __autoload. But I also like to keep things simple. Make for much easier troubleshooting in six months.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@xxxxxxxxxxxxx
==================
.



Relevant Pages

  • Re: HardDrive backed ArrayList
    ... opalpa@xxxxxxxxx opalinski from opalpaweb sez: ... If you store them in a directory tree, ... subdirectories you can keep it reasonable. ... files (no matter how you store them) is the time it takes to ...
    (comp.lang.java.programmer)
  • Re: IDispatch definition in C#
    ... it implies that I store all standard COM interface ... Second, since I can store references to .NET interfaces, this ... provider of a COM interface service from a COM to a non-COM service, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Open Source Diabetes Management Software Project
    ... Michael Sand wrote: ... saves time and is more accurate than manually entering the numbers. ... With specific interfaces you may even be able to store your additional ...
    (alt.support.diabetes)
  • Re: Distinquishing between interfaces and classes *before* loading?
    ... >> I've got a simple class loader where I'd like to pass interfaces ... > the hard work for you, such as Apache BCEL, and the GNU bytecode library. ... Thanks, Chris. ...
    (comp.lang.java.programmer)
  • Re: HardDrive backed ArrayList
    ... If you store them in a directory tree, ... subdirectories you can keep it reasonable. ... don't have the open overhead. ...
    (comp.lang.java.programmer)