in reply to Re: Make Current State Known
in thread Make Current State Known

Feed forward systems like that depend on the coffee app knowing about the toast app and its constraints - you end up with everything having to know about everything.

If the apps simply publish their current status other apps in the know can find out what they need to know without the publishing app having to know anything about the subscriber app.


DWIM is Perl's answer to Gödel

Replies are listed 'Best First'.
Re^3: Make Current State Known
by saintmike (Vicar) on Feb 10, 2006 at 21:28 UTC
    Feed forward systems like that depend on the coffee app knowing about the toast app and its constraints - you end up with everything having to know about everything.
    Either
    • the coffee task knows about the toast task or
    • the toast task knows about the coffee task or
    • a centralized manager knows about both the coffee and the toast task.
    Which one is the easiest/best maintainable implementation depends on the nature of the application.

      With publisher/subscriber the toaster need only know to check the RequiredForBreakfast and TimeToCompletion attributes in the other app attributes files. It doesn't need to know anything at all else about the other apps and the other apps don't need to know about the toaster.

      When the porridge app is added both the coffe app and the toast app can adjust their timing without any code changes because they both check for the same attributes of other apps without regard to what those apps are.


      DWIM is Perl's answer to Gödel