Re: Moving to *Avahi* over howl



On Thu, 2005-09-15 at 20:07 -0700, Alex Graveley wrote:
> Does anyone have any sort of convincing argument as to why an API 
> abstraction in this case is *needed*?
> 
> ("I like abstractions" is not an argument.)
> 
Here are some arguments:

1. So I don't have to have a series of #ifdef statements to support
various implementations. 

2. So we can swap out the preferred implementation.

3. So we can integrate it into the normal glib way of doing things
(signals, gobjects, etc.) regardless of which implementation is used.

The counter-argument is of course "why don't we just pick one". Then
obviously you don't need to abstract the API unless the chosen API
doesn't fit in well with normal GNOME code (point 3).

One of the main reasons I accepted the patch for bonjour support when I
already had howl support was because it makes more sense, when running
the MacOS X port of GNOME, to use the "native" library. So that's one
reason why not.

The other reason I see for supporting multiple implementations is that
it isn't yet clear what is the best way to go. If it was clear I don't
think this thread would have started [1].

 - Callum

[1] I predict that whichever implementation is first supported by the
wrapper will quickly become the default because it has the nice
abstraction and no one is afraid to use an abstraction, thereby removing
any need for an abstraction because we have effectively made our choice.
This is of course pure cynicism and not an argument for any particular
course of action.






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