This is the mail archive of the frysk@sources.redhat.com mailing list for the frysk project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Duplicate code worries me too. Inheritance is a solution but as Cagney as mentioned- Some methods like handleAddObserver() and handleDeleteObserver() always do the same thing and never actually do any state transition.
This adds a lot of (duplicate) code without being clear what it has to
do with with the actual state machine.
before: the flat code is easier to read. Also I would much prefer that I accedentaly forget
to implement a function casing frysk to crash than accidentally pick up a function from a
parent and do incorrect handling.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |