[PD-dev] how to tell when a patch is finished loading
Mathieu Bouchard
matju at artengine.ca
Sat Sep 12 20:21:57 CEST 2009
On Fri, 11 Sep 2009, Hans-Christoph Steiner wrote:
> On Sep 11, 2009, at 11:34 AM, Mathieu Bouchard wrote:
>> Please try not to duck-tape yourself in a corner.
> Indeed. I am interested in establishing an API.
aah, good!
> That's the ::loaded array.
I find it a strange turn-around of our traditional opposition when I'm
going to suggest that you could be using a longer name, but that's what it
is. "::loaded" doesn't say what kind of things are the loaded things in
question, and sometimes it's good to imply the nouns, but only when the
noun is super-obvious from context, or very vague (e.g. getStuff, getThing
and getElement may as well be called just "get").
> How it gets setup can then be easily changed without affecting things that
> use ::loaded.
Some people would advise against using the 'trace' feature, saying it's
ugly, but you don't have to listen to them. i'm not against it, and
there's no reason not to use it apart from programmers who don't want to
learn it or have other religious reasons against it (if it's not in JAVA
it must be because it's evil, etc).
The 'trace' feature can cause tremendous slowdowns, but only when you ask
it to make tremendous effort. Tracing seldom-used vars doesn't cost much
runtime.
_ _ __ ___ _____ ________ _____________ _____________________ ...
| Mathieu Bouchard, Montréal, Québec. téléphone: +1.514.383.3801
More information about the Pd-dev
mailing list