[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Debconf vs. graphical installer



Il mer, 2003-07-30 alle 18:52, Emile van Bergen ha scritto:
[...]
> > if (load(guimodule))
> >    guimodule.doall(mycallbacks)
> > else
> >    cdebconf fallback
> > 
> > I like this idea but I am very new to the installer, so take it as a
> > hint.
> 
> I really hate this idea, as it creates a programmatic interface (the
> 'mycallbacks') that must be known both in the partition module and the
> guimodule. Both do parts of the work, and are only useful in one
> context. They must be kept exactly in sync.

I think that this is true if you create callback for very simple
actions. As you may see from my example, I just called a "method"
doall(). I think that callback is just an implementation of object
interfaces. It is not something bad, it is a structured approach. You
may write a mess, creating the wrong interface, or you may keep it
clean. It is just up to you.

I think that it could work if the interface is as hi level as possible,
like in doall().

Bye,
Giuseppe



Reply to: