I've had so much trouble over the last several days writing the XPath Generator algorithms that I started thinking. As a JavaScript expert and a C++ rookie, someone who knows IDL and can write components in JS with little trouble at all, there's really no quick page that summarizes how you write XPCOM code in different languages.
So this is a starting attempt to write such a document. The goal is to come up with a bunch of simple tasks component authors must do, and write snippets of code demonstrating each of these in IDL, C++, JavaScript, maybe Python or Perl, etc. Suggestions (and especially cross-language examples!) welcome.
I've written the document in generic XML for now, just to give me a simple framework for adding Q & A for each one. Eventually, as this document evolves, we can transform it for DevMo to adopt. I'll make sure to cite each contributor. Links to currently-existing-and-accurate documentation would be nice.
Posted by WeirdAl at February 13, 2006 8:27 PMGreat idea! :-)
Posted by: Peter at February 14, 2006 3:03 AMI'd rather you didn't mention any UUID in that idl sample. I fear people will just copy the ID you have there, and that can cause bad problems.
Posted by: christian biesinger at February 14, 2006 12:31 PM>You'll need to build the XPIDL executable. This
>will require you have checked out the
>mozilla source code
That's not true. XPIDL is part of the gecko sdk.
(From Alex: Care to e-mail me a link?)
Posted by: christian biesinger at February 14, 2006 12:32 PM