Re: what is \consistsend

2004-07-28 Thread Heikki Johannes Junes
On Wed, 28 Jul 2004 20:08:28 +0200 Han-Wen Nienhuys <[EMAIL PROTECTED]> wrote:

> [EMAIL PROTECTED] writes:
> > 
> > See: "Design Patterns" by Erich Gamma, Richard Helm, Ralph Johnson
> and 
> > John Vlissides ("gang of four"), Addison-Wesley, 1995.  ISBN
> 0-201-63361-2.
> > 
> > A must-have book for software designers!  (Actually, this book
> motivated a 
> > whole bunch of other books by various authors over the last couple of
> 
> > years, some of which you may also find to be interesting.)
> 
> I am a skeptic of the whole concept of "pattern."  Until someone can
> give a proper formalization of the concept, I will just solve the
> problem at hand with whatever technique I feel is appropriate.
> 
> In other words, if you can explain me why what "An observer pattern"
> is, and why it would solve the engraver broadcast/acknowledge better,
> I will consider using it. (No, I don't feel inclined to read the book).
> 
> -- 
> 
>  Han-Wen Nienhuys   |   [EMAIL PROTECTED]   |  
> http://www.xs4all.nl/~hanwen 

They are simple:
- Chain of Responsibility means just 'put the output of a function as the input
of the next function', and
- Observer Pattern means that you have several 'observators' which keep track on
their state. When a certain state is present on an observer, the observer
notifies another observer, and the another one then fetches the changed state
and reacts according to the changed state.

Design patterns are nice in the sense that they are the 'building blocks' of an
UML diagram and manage to describe data flow to some extent (as a 2D diagram).
Another family are the very commonly used resign pattern, which are to be avoided ;)

http://www.dcc.unicamp.br/~oliva/fun/prog/resign-patterns

-- 
  Heikki Junes


___
lilypond-devel mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/lilypond-devel


Re: what is \consistsend

2004-07-28 Thread Han-Wen Nienhuys
[EMAIL PROTECTED] writes:
> 
> See: "Design Patterns" by Erich Gamma, Richard Helm, Ralph Johnson and 
> John Vlissides ("gang of four"), Addison-Wesley, 1995.  ISBN 0-201-63361-2.
> 
> A must-have book for software designers!  (Actually, this book motivated a 
> whole bunch of other books by various authors over the last couple of 
> years, some of which you may also find to be interesting.)

I am a skeptic of the whole concept of "pattern."  Until someone can
give a proper formalization of the concept, I will just solve the
problem at hand with whatever technique I feel is appropriate.

In other words, if you can explain me why what "An observer pattern"
is, and why it would solve the engraver broadcast/acknowledge better,
I will consider using it. (No, I don't feel inclined to read the book).

-- 

 Han-Wen Nienhuys   |   [EMAIL PROTECTED]   |   http://www.xs4all.nl/~hanwen 



___
lilypond-devel mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/lilypond-devel


Re: what is \consistsend

2004-07-28 Thread Juergen Reuter


On Tue, 27 Jul 2004, Han-Wen Nienhuys wrote:

> [EMAIL PROTECTED] writes:
> > 
> > 
> > On Mon, 26 Jul 2004, Werner LEMBERG wrote:
> > 
> > > 
> > > What is \consistsend good for?  It is nowhere documented.
> > > 
> > > 
> > 
> > IIRC (guru hackers, please correct me if I am wrong!), engravers listen to 
> > events following the design pattern of a responsibility chain rather than 
> > following an observer pattern (BTW, why?).  Consequently, the order 
> 
> If you  can tell me what those are, I can explain you.
> 

See: "Design Patterns" by Erich Gamma, Richard Helm, Ralph Johnson and 
John Vlissides ("gang of four"), Addison-Wesley, 1995.  ISBN 0-201-63361-2.

A must-have book for software designers!  (Actually, this book motivated a 
whole bunch of other books by various authors over the last couple of 
years, some of which you may also find to be interesting.)

Greetings,
Jürgen


___
lilypond-devel mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/lilypond-devel


what is \consistsend

2004-07-27 Thread Han-Wen Nienhuys
[EMAIL PROTECTED] writes:
> 
> What is \consistsend good for?  It is nowhere documented.

\consistsend has been removed from CVS.

--
 Han-Wen Nienhuys   |   [EMAIL PROTECTED]   |   http://www.xs4all.nl/~hanwen 




___
lilypond-devel mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/lilypond-devel


Re: what is \consistsend

2004-07-27 Thread Han-Wen Nienhuys
[EMAIL PROTECTED] writes:
> 
> 
> On Mon, 26 Jul 2004, Werner LEMBERG wrote:
> 
> > 
> > What is \consistsend good for?  It is nowhere documented.
> > 
> > 
> 
> IIRC (guru hackers, please correct me if I am wrong!), engravers listen to 
> events following the design pattern of a responsibility chain rather than 
> following an observer pattern (BTW, why?).  Consequently, the order 

If you  can tell me what those are, I can explain you.

> matters in which engravers are added to contexts.  I guess \consistsend 
> adds an engraver to the end of the chain, while \consists adds an engraver 
> to the head of the chain, but I may be wrong.

yup.

--
 Han-Wen Nienhuys   |   [EMAIL PROTECTED]   |   http://www.xs4all.nl/~hanwen 



___
lilypond-devel mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/lilypond-devel


Re: what is \consistsend

2004-07-27 Thread Juergen Reuter


On Mon, 26 Jul 2004, Werner LEMBERG wrote:

> 
> What is \consistsend good for?  It is nowhere documented.
> 
> 

IIRC (guru hackers, please correct me if I am wrong!), engravers listen to 
events following the design pattern of a responsibility chain rather than 
following an observer pattern (BTW, why?).  Consequently, the order 
matters in which engravers are added to contexts.  I guess \consistsend 
adds an engraver to the end of the chain, while \consists adds an engraver 
to the head of the chain, but I may be wrong.

Greetings,
Juergen

> Werner
> 
> 
> ___
> lilypond-devel mailing list
> [EMAIL PROTECTED]
> http://lists.gnu.org/mailman/listinfo/lilypond-devel
> 


___
lilypond-devel mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/lilypond-devel


what is \consistsend

2004-07-26 Thread Werner LEMBERG

What is \consistsend good for?  It is nowhere documented.


Werner


___
lilypond-devel mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/lilypond-devel