[gmpi] Re: low level API - Abstract Factory summary

  • From: Jeff McClintock <jeffmcc@xxxxxxxxxx>
  • To: gmpi@xxxxxxxxxxxxx
  • Date: Thu, 10 Feb 2005 10:59:12 +1300

> That's the OO masturbation I was talking about.  Why on earth is
> everything a class?

We are not solving a new problem (talking to a plugin). The problem's already been solved, many times over. Choosing an existing solution is quicker, less buggy, and less risky than re-inventing our own.

Re-inventing our own version of COM will take time. We may take a shortcut we regret later. We will end up with something functionally identical, but different.

Would we waste time writing a GMPI string class because someone here didn't trust the STL guys? (cue post titled "STL is crap").

What I'm saying is, there are much more important things to do here. COM is very simple, one class with 3 functions, with the convention of using a certain ID format (GUIID).

I understand it's difficult to accept a new concept that's just 'thrown' at you. And that it seems safer to re-implement it yourself so as to completely understand it. But we're talking about the technique adopted by Mozilla (the cross-platform open source browser). They had the same discussion we're having. They're competent, knowledgeable people. They chose COM, they didn't waste time and energy reinventing it.

Fears that GUIDs are not unique are unfounded. How many GMPI plugins are there going to be anyhow?, there would have to be many billion before we ever came remotely close to a GUID clash.
Compare that to the chance of two newbie coders using the same URI. Anyhow, does every plugin coder have his own domain name?


Best Regards,
Jeff





----------------------------------------------------------------------
Generalized Music Plugin Interface (GMPI) public discussion list
Participation in this list is contingent upon your abiding by the
following rules:  Please stay on topic.  You are responsible for your own
words.  Please respect your fellow subscribers.  Please do not
redistribute anyone else's words without their permission.

Archive: //www.freelists.org/archives/gmpi
Email gmpi-request@xxxxxxxxxxxxx w/ subject "unsubscribe" to unsubscribe

Other related posts: