[PD-dev] initbang and friends WAS: run-up to release 0.43
Hans-Christoph Steiner
hans at at.or.at
Mon Aug 23 17:33:09 CEST 2010
On Aug 21, 2010, at 3:47 AM, Frank Barknecht wrote:
> Hi,
>
> On Fri, Aug 20, 2010 at 02:02:08PM -0400, Hans-Christoph Steiner
> wrote:
>> On Aug 20, 2010, at 5:42 AM, IOhannes m zmölnig wrote:
>> I'm saying I like the interface of having a suite of objects called
>> *bang rather than [loadbang close], etc. it makes them super easy
>> to use and remember.
>>
>> [initbang]
>> [loadbang]
>> [propertybang]
>> [closebang]
>
> The only issue I have with this is the difference between initbang and
> loadbang. In several patches posted to this list in the past I
> observed,
> that sometimes people tended to use initbang where a simple loadbang
> would be sufficient, i.e. they were doing nothing that would actually
> require initbang.(*) I assume this is because they actually didn't
> know or understand the difference.
>
> That's where a loadbang object that somehow combined initbang into it
> with an argument *may* be preferable. I don't see any reason to
> combine
> load- and closebang (or propertybang, but I don't really know that. I
> assume it will fire when Help->Properties is selected.)
>
> (*) A typical example were abstractions using initbang because their
> loadbang would not fire after dynamic patching. Here initbang is not
> the
> correct solution, but a "loadbang"-message to the dynamic patching
> canvas.
Yeah, we definitely don't want [initbang] to be used too often, I can
understand that. I just differ with how we should deal with the
problem. I think it should be handled in the documentation rather
than making the programming part more complicated.
I could see the initbang help path having a section called "When to
NOT use initbang" then it would include your example below with the
example of how to use it. The initbang help patch is in a pretty
sorry state right now... its in SVN doc/pddp if anyone wants to take
it on.
.hc
----------------------------------------------------------------------------
As we enjoy great advantages from inventions of others, we should be
glad of an opportunity to serve others by any invention of ours; and
this we should do freely and generously. - Benjamin Franklin
More information about the Pd-dev
mailing list