You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by Senaka Fernando <se...@gmail.com> on 2008/04/24 22:36:16 UTC

Improving docs on C++ examples

Hi all,

As a first step towards improving documentation on Qpid, and understanding
how it works, I wanted to run some examples. I first of all wanted to try
out the Java examples, but mainly due to no-documentation, I couldn't really
get through. However, I managed to successfully install and try out the C++
examples, and I'm looking forward to create documentation in this regard.
There are few questions that I would like to sort out, before getting
started.

1. Isn't it better to name examples/examples to something like examples/src
?
2. What does verfify and verify_all do? When I run it I get something like
this

Warning: not verifying python examples, /python/examples not found
== examples/fanout/verify
./verify: 84: source: not found
FAIL
== examples/direct/verify
./verify: 84: source: not found
FAIL
== examples/request-response/verify
./verify: 84: source: not found
FAIL
== examples/pub-sub/verify
./verify: 84: source: not found
FAIL

I also ran the setup.py, but nothing seem to change.

3. Where (on the wiki) should I create the docs? These are related to
"Getting started on C++ examples"

Thanks,
Senaka

Re: Improving docs on C++ examples

Posted by Jonathan Robie <jo...@redhat.com>.
Alan Conway wrote:
> If we do use separate doc format like docbook (and I can see reasons 
> for that too) then we could generate HTML or text READMEs into the 
> example directories.

+1

I think anything we want to look like an actual document should be done 
in DocBook. That's how the Red Hat tutorial is done now.

Jonathan

Re: Improving docs on C++ examples

Posted by Rajith Attapattu <ra...@gmail.com>.
+1, I suggested to Senaka that we start with adding a README for each
example.
Users are most likely to read them and would resort to readign tutorial if
they get stuck.

However we also a need the more comphrehensive documentation. And as Alan
said it is nice if we have them under svn and use a site generation tool to
get the PDF/HTML ..etc. Having it in svn will allow us to easily to version
specific documentaiton as well.

We can start this by having a tutorial for the mult languages examples.
Senaka and I are planning to do this with Jonathans help.
Configuration guides for the brokers will be tackled next unless we have
more volunteers.

Regards,

Rajith

On Fri, Apr 25, 2008 at 4:30 PM, Alan Conway <ac...@redhat.com> wrote:

> Senaka Fernando wrote:
>
>> Hi all,
>>
>> According to the present discussion, I think it would be best to wait a
>> bit
>> until Jonathan can come to an agreement about how the example
>> documentation
>> could be made use in Qpid. However, there are certain other areas in which
>> I
>> can start work on, some that Jonathan's docs don't focus.
>>
>> 1. How to run the examples. I mean the order.
>>   It is important that we describe the order in which the constitutes of
>> each example must be run, and the reason behind it. It should also detail
>> the results seen on the broker side (explanation on the trace logs), and
>> also something similar on the client side. This raises a new question. How
>> I
>> can I enable trace logs on the client side?
>>
>> 2. Some docs on the RedHat site are not quite right, and not quite
>> complete.
>> I'm not attempting to point them on this list, as I don't know the
>> legality
>> of such a statement. Thus, I would like to talk in person to anyone
>> responsible on those documentation, on behalf of Qpid, should there be any
>> need.
>>
>> 3. We need to create a README per example, at least a tiny one. People
>> wouldn't otherwise have a clue when the try it for the first time. I can
>> get
>> going on this now.
>>
>> 4. And, as Danushka stated, +1 for including these to the docs. I mean the
>> docs found inside the docs folder.
>>
>> 5. Also, I need to know where on the wiki I should start writing
>> documentation on examples. I didn't get an answer to that as yet.
>>
>>
> I like to see as much documentation as possible living with or in the code,
> as that makes it more likely to be kept up to date. We use doxygen for API
> documentation, it's quite flexible and perhaps can be used creatively to
> embed documentation in the example source such that it is also possible to
> generate a nicely formatted PDF or HTML document.
>
> If we do use separate doc format like docbook (and I can see reasons for
> that too) then we could generate HTML or text READMEs into the example
> directories.
>
> I'm not keen on putting documentation on the wiki because it is almost
> impossible to synchronize docs on the wiki with changing versions of the
> code. I think whatever format it takes, documentation sources should live in
> SVN with the code. We can of course generate HTML/PDF to be published on the
> apache site for released versions etc.
>
> Cheers,
> Alan.
>



-- 
Regards,

Rajith Attapattu
Red Hat
http://rajith.2rlabs.com/

Re: Improving docs on C++ examples

Posted by Alan Conway <ac...@redhat.com>.
Senaka Fernando wrote:
> Hi all,
> 
> According to the present discussion, I think it would be best to wait a bit
> until Jonathan can come to an agreement about how the example documentation
> could be made use in Qpid. However, there are certain other areas in which I
> can start work on, some that Jonathan's docs don't focus.
> 
> 1. How to run the examples. I mean the order.
>    It is important that we describe the order in which the constitutes of
> each example must be run, and the reason behind it. It should also detail
> the results seen on the broker side (explanation on the trace logs), and
> also something similar on the client side. This raises a new question. How I
> can I enable trace logs on the client side?
> 
> 2. Some docs on the RedHat site are not quite right, and not quite complete.
> I'm not attempting to point them on this list, as I don't know the legality
> of such a statement. Thus, I would like to talk in person to anyone
> responsible on those documentation, on behalf of Qpid, should there be any
> need.
> 
> 3. We need to create a README per example, at least a tiny one. People
> wouldn't otherwise have a clue when the try it for the first time. I can get
> going on this now.
> 
> 4. And, as Danushka stated, +1 for including these to the docs. I mean the
> docs found inside the docs folder.
> 
> 5. Also, I need to know where on the wiki I should start writing
> documentation on examples. I didn't get an answer to that as yet.
> 

I like to see as much documentation as possible living with or in the code, as 
that makes it more likely to be kept up to date. We use doxygen for API 
documentation, it's quite flexible and perhaps can be used creatively to embed 
documentation in the example source such that it is also possible to generate a 
nicely formatted PDF or HTML document.

If we do use separate doc format like docbook (and I can see reasons for that 
too) then we could generate HTML or text READMEs into the example directories.

I'm not keen on putting documentation on the wiki because it is almost 
impossible to synchronize docs on the wiki with changing versions of the code. I 
think whatever format it takes, documentation sources should live in SVN with 
the code. We can of course generate HTML/PDF to be published on the apache site 
for released versions etc.

Cheers,
Alan.

Re: Improving docs on C++ examples

Posted by Jonathan Robie <jo...@redhat.com>.
Senaka Fernando wrote:
> Hi all,
>
> According to the present discussion, I think it would be best to wait a bit
> until Jonathan can come to an agreement about how the example documentation
> could be made use in Qpid. However, there are certain other areas in which I
> can start work on, some that Jonathan's docs don't focus.
>   

Great! (Sorry I'm responding so slowly, I left Friday evening for a 
backpacking trip.)

> 1. How to run the examples. I mean the order.
>    It is important that we describe the order in which the constitutes of
> each example must be run, and the reason behind it. It should also detail
> the results seen on the broker side (explanation on the trace logs), and
> also something similar on the client side. This raises a new question. How I
> can I enable trace logs on the client side?
>   

Yes, I think READMEs on this would be really helpful.

> 2. Some docs on the RedHat site are not quite right, and not quite complete.
> I'm not attempting to point them on this list, as I don't know the legality
> of such a statement. Thus, I would like to talk in person to anyone
> responsible on those documentation, on behalf of Qpid, should there be any
> need.
>   

I'm responsible for these, I'd be glad to talk to you or you can send me 
email. I work out of the office some days and at home others, if you 
shoot me an email I can call you or tell you where to call me.

> 3. We need to create a README per example, at least a tiny one. People
> wouldn't otherwise have a clue when the try it for the first time. I can get
> going on this now.
>   

Great!

> 4. And, as Danushka stated, +1 for including these to the docs. I mean the
> docs found inside the docs folder.
>   

I agree.

> 5. Also, I need to know where on the wiki I should start writing
> documentation on examples. I didn't get an answer to that as yet.
>   

Someone else will have to answer this.

> 6. It would be better to include a 'help' message for the verify_all, and
> verify scripts. Until I asked this question on the list, I didn't have a
> clue on what arguments that could be provided.
>   

Agreed.

Jonathan

Re: Improving docs on C++ examples

Posted by Senaka Fernando <se...@gmail.com>.
Hi all,

According to the present discussion, I think it would be best to wait a bit
until Jonathan can come to an agreement about how the example documentation
could be made use in Qpid. However, there are certain other areas in which I
can start work on, some that Jonathan's docs don't focus.

1. How to run the examples. I mean the order.
   It is important that we describe the order in which the constitutes of
each example must be run, and the reason behind it. It should also detail
the results seen on the broker side (explanation on the trace logs), and
also something similar on the client side. This raises a new question. How I
can I enable trace logs on the client side?

2. Some docs on the RedHat site are not quite right, and not quite complete.
I'm not attempting to point them on this list, as I don't know the legality
of such a statement. Thus, I would like to talk in person to anyone
responsible on those documentation, on behalf of Qpid, should there be any
need.

3. We need to create a README per example, at least a tiny one. People
wouldn't otherwise have a clue when the try it for the first time. I can get
going on this now.

4. And, as Danushka stated, +1 for including these to the docs. I mean the
docs found inside the docs folder.

5. Also, I need to know where on the wiki I should start writing
documentation on examples. I didn't get an answer to that as yet.

6. It would be better to include a 'help' message for the verify_all, and
verify scripts. Until I asked this question on the list, I didn't have a
clue on what arguments that could be provided.

Thanks,
Senaka

On Sat, Apr 26, 2008 at 12:02 AM, Jonathan Robie <jo...@redhat.com>
wrote:

> Yes, I'm the guy people seem to be alluding to - I contributed the patch
> with the examples, and I also wrote the Red Hat Messaging Tutorial, to which
> I have pointed people who ask for documentation on the examples. I apologize
> for donating the examples without including documentation.
>
> I like the idea of contributing the documentation. I may need to clarify
> some things so I am sure my employer can also continue to use it in their
> documentation, once I understand what is involved (from Apache policy side)
> I will update the list.
>
> I'm in the process of updating the tutorial for final 0-10. I'd like to do
> that rewrite first, then contribute the examples (unless someone discovers a
> legal hurdle when checking the above).
>
> Jonathan
>

Re: Improving docs on C++ examples

Posted by Jonathan Robie <jo...@redhat.com>.
Yes, I'm the guy people seem to be alluding to - I contributed the patch 
with the examples, and I also wrote the Red Hat Messaging Tutorial, to 
which I have pointed people who ask for documentation on the examples. I 
apologize for donating the examples without including documentation.

I like the idea of contributing the documentation. I may need to clarify 
some things so I am sure my employer can also continue to use it in 
their documentation, once I understand what is involved (from Apache 
policy side) I will update the list.

I'm in the process of updating the tutorial for final 0-10. I'd like to 
do that rewrite first, then contribute the examples (unless someone 
discovers a legal hurdle when checking the above).

Jonathan

Re: Improving docs on C++ examples

Posted by Marnie McCormack <ma...@googlemail.com>.
Happy for the examples to be merged. Let's discuss on this list and agree
the set of classes to retain.

Docs are key - I wrote up the classes I'd added. Be good to ensure that
whatever we do next is better than that docs wise !

Bfn,
Marnie


On 4/25/08, Alan Conway <ac...@redhat.com> wrote:
>
> Danushka Menikkumbura wrote:
>
>> Gordon Sim wrote:
>>
>>> Jonathan Robie wrote:
>>>
>>>> You can find documentation for the examples in all languages here:
>>>>
>>>>
>>>> http://www.redhat.com/docs/en-US/Red_Hat_Enterprise_MRG/1.0/html/Messaging_Tutorial/
>>>>
>>>> http://www.redhat.com/docs/en-US/Red_Hat_Enterprise_MRG/1.0/pdf/Messaging_Tutorial/Messaging_Tutorial.pdf
>>>>
>>>
>>>
>>>
>>> I think we need to have documentation for the examples in the qpid
>>> project itself (alongside the source and/or in the quick-start section of
>>> the wiki). That way the documentation can evolve with the examples.
>>>
>>> +1.
>>
>> Obviously the best place to have the documentation for the examples is the
>> docs directory. We can have a set of nicely structured html docs for
>> examples explaining things like how to run, expected output, etc.
>>
>> Danushka
>>
>> +1 also. Much/most of the redhat example doc is not redhat specific, and
> could be relocated to qpid rather than rewriting from scratch. Johnathan
> Robie would be the best man to comment on that. I believe it's currently
> based on docbook which allows flexible generation of doc in various formats
> (PDF, HTML etc.), that would probably be a good approach to adopt for qpid
> also.
>
> Cheers,
> Alan.
>
>
>

Re: Improving docs on C++ examples

Posted by Alan Conway <ac...@redhat.com>.
Danushka Menikkumbura wrote:
> Gordon Sim wrote:
>> Jonathan Robie wrote:
>>> You can find documentation for the examples in all languages here:
>>>
>>> http://www.redhat.com/docs/en-US/Red_Hat_Enterprise_MRG/1.0/html/Messaging_Tutorial/ 
>>>
>>> http://www.redhat.com/docs/en-US/Red_Hat_Enterprise_MRG/1.0/pdf/Messaging_Tutorial/Messaging_Tutorial.pdf 
>>
>>
>>
>> I think we need to have documentation for the examples in the qpid 
>> project itself (alongside the source and/or in the quick-start section 
>> of the wiki). That way the documentation can evolve with the examples.
>>
> +1.
> 
> Obviously the best place to have the documentation for the examples is 
> the docs directory. We can have a set of nicely structured html docs for 
> examples explaining things like how to run, expected output, etc.
> 
> Danushka
> 
+1 also. Much/most of the redhat example doc is not redhat specific, and could 
be relocated to qpid rather than rewriting from scratch. Johnathan Robie would 
be the best man to comment on that. I believe it's currently based on docbook 
which allows flexible generation of doc in various formats (PDF, HTML etc.), 
that would probably be a good approach to adopt for qpid also.

Cheers,
Alan.



Re: Improving docs on C++ examples

Posted by Danushka Menikkumbura <da...@wso2.com>.
Gordon Sim wrote:
> Jonathan Robie wrote:
>> You can find documentation for the examples in all languages here:
>>
>> http://www.redhat.com/docs/en-US/Red_Hat_Enterprise_MRG/1.0/html/Messaging_Tutorial/ 
>>
>> http://www.redhat.com/docs/en-US/Red_Hat_Enterprise_MRG/1.0/pdf/Messaging_Tutorial/Messaging_Tutorial.pdf 
>
>
> I think we need to have documentation for the examples in the qpid 
> project itself (alongside the source and/or in the quick-start section 
> of the wiki). That way the documentation can evolve with the examples.
>
+1.

Obviously the best place to have the documentation for the examples is 
the docs directory. We can have a set of nicely structured html docs for 
examples explaining things like how to run, expected output, etc.

Danushka



Re: Improving docs on C++ examples

Posted by Gordon Sim <gs...@redhat.com>.
Jonathan Robie wrote:
> You can find documentation for the examples in all languages here:
> 
> http://www.redhat.com/docs/en-US/Red_Hat_Enterprise_MRG/1.0/html/Messaging_Tutorial/ 
> 
> http://www.redhat.com/docs/en-US/Red_Hat_Enterprise_MRG/1.0/pdf/Messaging_Tutorial/Messaging_Tutorial.pdf 

I think we need to have documentation for the examples in the qpid 
project itself (alongside the source and/or in the quick-start section 
of the wiki). That way the documentation can evolve with the examples.


Re: Improving docs on C++ examples

Posted by Jonathan Robie <jo...@redhat.com>.
Hi Senaka,

You can find documentation for the examples in all languages here:

http://www.redhat.com/docs/en-US/Red_Hat_Enterprise_MRG/1.0/html/Messaging_Tutorial/
http://www.redhat.com/docs/en-US/Red_Hat_Enterprise_MRG/1.0/pdf/Messaging_Tutorial/Messaging_Tutorial.pdf

Hope this helps!

Jonathan

Senaka Fernando wrote:
> Hi all,
>
> As a first step towards improving documentation on Qpid, and understanding
> how it works, I wanted to run some examples. I first of all wanted to try
> out the Java examples, but mainly due to no-documentation, I couldn't really
> get through. However, I managed to successfully install and try out the C++
> examples, and I'm looking forward to create documentation in this regard.
> There are few questions that I would like to sort out, before getting
> started.
>
> 1. Isn't it better to name examples/examples to something like examples/src
> ?
> 2. What does verfify and verify_all do? When I run it I get something like
> this
>
> Warning: not verifying python examples, /python/examples not found
> == examples/fanout/verify
> ./verify: 84: source: not found
> FAIL
> == examples/direct/verify
> ./verify: 84: source: not found
> FAIL
> == examples/request-response/verify
> ./verify: 84: source: not found
> FAIL
> == examples/pub-sub/verify
> ./verify: 84: source: not found
> FAIL
>
> I also ran the setup.py, but nothing seem to change.
>
> 3. Where (on the wiki) should I create the docs? These are related to
> "Getting started on C++ examples"
>
> Thanks,
> Senaka
>
>   


Re: Improving docs on C++ examples

Posted by Rajith Attapattu <ra...@gmail.com>.
n Thu, Apr 24, 2008 at 4:36 PM, Senaka Fernando <se...@gmail.com> wrote:

> Hi all,
>
> As a first step towards improving documentation on Qpid, and understanding
> how it works, I wanted to run some examples. I first of all wanted to try
> out the Java examples, but mainly due to no-documentation, I couldn't
> really
> get through. However, I managed to successfully install and try out the C++
> examples, and I'm looking forward to create documentation in this regard.
> There are few questions that I would like to sort out, before getting
> started.
>
> 1. Isn't it better to name examples/examples to something like examples/src
> ?
> 2. What does verfify and verify_all do? When I run it I get something like
> this


The verify scripts in each folder (ex direct, fanout) etc runs the examples
and compare the output with the corresponding {verify_script_name}.out and
report if there are any diffs.
The verify_all in the cpp/examples folder will run all the verify scripts
located within the cpp/examples/examples/.
If you look you could see there are verify, verify_cpp_python and
verify_python_cpp scripts in each of the foldes (direct, pubsub, fanout
..etc)
For example if we the direct folder,
verify - will run the c++ consumer and producer and compare the output with
the verify.out
verify_cpp_python - will run the c++ producer with python consumer and
compare the output with verify_cpp_python.out
verify_python_cpp - will run the python producer with the c++ consumer and
compare the output with verify_python_cpp.out

The verify_all in the java/client/examples/bin will run all the verify
scripts located in the src folders of
java/client/examples/src/main/java/org/apache/qpid/example/jmsexample
There you would see verify, verify_java_python and verify_python_java
scripts.
It works the same as described above.

If you run make check from cpp/ it should compile the examples as well.
If you run the verify_all script with $QPID_SRC as the first parameter
(where QPID_SRC points to the qpid folder in your svn checkout) it should
pick up the python examples.

Python examples are yet to be updated to the new python API so it will not
work with the c++ examples anyway.
There is currently a patch for the python examples and hopefuly I will
commit it soon after some review.

Regards,

Rajith

>
>
> Warning: not verifying python examples, /python/examples not found
> == examples/fanout/verify
> ./verify: 84: source: not found
> FAIL
> == examples/direct/verify
> ./verify: 84: source: not found
> FAIL
> == examples/request-response/verify
> ./verify: 84: source: not found
> FAIL
> == examples/pub-sub/verify
> ./verify: 84: source: not found
> FAIL
>
> I also ran the setup.py, but nothing seem to change.
>
> 3. Where (on the wiki) should I create the docs? These are related to
> "Getting started on C++ examples"
>
> Thanks,
> Senaka
>



-- 
Regards,

Rajith Attapattu
Red Hat
http://rajith.2rlabs.com/

Re: Improving docs on C++ examples

Posted by Rajith Attapattu <ra...@gmail.com>.
Marnie,

There are java examples that lies in the same location that are written to
interoperate with c++ and python examples.
I looked at the examples you pointed to.

Could we merge these examples into the current set of interoperable
examples?
i.e we can eliminate anything overlapping and add anything that is missing.
For ex FileMessageDispatcher is a nice addition.

Then lets ensure we have the same set of examples across all languages. This
provides,
a) A powerful statement about AMQP interoperability and the Qpid commitment
towards it
b) Provides a common set of examples + documentation to get a new user
going.

Regards,

Rajith

On Fri, Apr 25, 2008 at 4:21 AM, Marnie McCormack <
marnie.mccormack@googlemail.com> wrote:
> All,
>
> Great to see some movement here !
>
> On the Java examples, the documentation is here:
>
> http://cwiki.apache.org/qpid/example-classes.html
>
> What did you need that you couldn't find out Senaka ?
>
> Also, as we're on qpid-dev I'm not sure that the redhat messaging doc
links
> are appropriate here. We should really be hosting qpid docs on our own
site
> ?
>
> Thanks & Regards,
> Marnie
>
>
>
>
>
>
>
>
> On 4/24/08, Alan Conway <ac...@redhat.com> wrote:
> >
> > Senaka Fernando wrote:
> >
> >> Hi all,
> >>
> >> As a first step towards improving documentation on Qpid, and
understanding
> >> how it works, I wanted to run some examples. I first of all wanted to
try
> >> out the Java examples, but mainly due to no-documentation, I couldn't
> >> really
> >> get through. However, I managed to successfully install and try out the
> >> C++
> >> examples, and I'm looking forward to create documentation in this
regard.
> >> There are few questions that I would like to sort out, before getting
> >> started.
> >>
> >> 1. Isn't it better to name examples/examples to something like
> >> examples/src
> >>
> >
> > Yes, this area is a bit messy right now - the trick is that most of the
C++
> > build uses automake, but the examples have a plain vanilla makefile so
they
> > can be built against a qpid install as well as in an SVN checkout. The
way
> > its done right now is not ideal, I have some thoughts about cleaning it
up
> > but not much time :(
> >
> > 2. What does verfify and verify_all do? When I run it I get something
like
> >> this
> >>
> >
> > These scripts run the C++ and python examples against each other and
> > automatically verify that the output is as expected. They are also
supposed
> > to work both in SVN and against an installation. They've been turned off
in
> > the C++ build for a while due to temporary C++/python incompatibilities
> > during the migration to AMQP 0-10 so it's possible they have become
broken.
> > I plan to turn them on again next week and will sort out any problems I
> > find. These scripts are part of the developer test framework rather than
an
> > end-user tool.
> >
> > Great to see you're interested in the project,
jonathan.robie@redhat.comhas done a lot of example documentation work so I
suggest collaborating with
> > him.
> >
>



-- 
Regards,

Rajith Attapattu
Red Hat
http://rajith.2rlabs.com/

Re: Improving docs on C++ examples

Posted by Marnie McCormack <ma...@googlemail.com>.
All,

Great to see some movement here !

On the Java examples, the documentation is here:

http://cwiki.apache.org/qpid/example-classes.html

What did you need that you couldn't find out Senaka ?

Also, as we're on qpid-dev I'm not sure that the redhat messaging doc links
are appropriate here. We should really be hosting qpid docs on our own site
?

Thanks & Regards,
Marnie





On 4/24/08, Alan Conway <ac...@redhat.com> wrote:
>
> Senaka Fernando wrote:
>
>> Hi all,
>>
>> As a first step towards improving documentation on Qpid, and understanding
>> how it works, I wanted to run some examples. I first of all wanted to try
>> out the Java examples, but mainly due to no-documentation, I couldn't
>> really
>> get through. However, I managed to successfully install and try out the
>> C++
>> examples, and I'm looking forward to create documentation in this regard.
>> There are few questions that I would like to sort out, before getting
>> started.
>>
>> 1. Isn't it better to name examples/examples to something like
>> examples/src
>>
>
> Yes, this area is a bit messy right now - the trick is that most of the C++
> build uses automake, but the examples have a plain vanilla makefile so they
> can be built against a qpid install as well as in an SVN checkout. The way
> its done right now is not ideal, I have some thoughts about cleaning it up
> but not much time :(
>
> 2. What does verfify and verify_all do? When I run it I get something like
>> this
>>
>
> These scripts run the C++ and python examples against each other and
> automatically verify that the output is as expected. They are also supposed
> to work both in SVN and against an installation. They've been turned off in
> the C++ build for a while due to temporary C++/python incompatibilities
> during the migration to AMQP 0-10 so it's possible they have become broken.
> I plan to turn them on again next week and will sort out any problems I
> find. These scripts are part of the developer test framework rather than an
> end-user tool.
>
> Great to see you're interested in the project, jonathan.robie@redhat.comhas done a lot of example documentation work so I suggest collaborating with
> him.
>

Re: Improving docs on C++ examples

Posted by Alan Conway <ac...@redhat.com>.
Senaka Fernando wrote:
> Hi all,
> 
> As a first step towards improving documentation on Qpid, and understanding
> how it works, I wanted to run some examples. I first of all wanted to try
> out the Java examples, but mainly due to no-documentation, I couldn't really
> get through. However, I managed to successfully install and try out the C++
> examples, and I'm looking forward to create documentation in this regard.
> There are few questions that I would like to sort out, before getting
> started.
> 
> 1. Isn't it better to name examples/examples to something like examples/src

Yes, this area is a bit messy right now - the trick is that most of the C++ 
build uses automake, but the examples have a plain vanilla makefile so they can 
be built against a qpid install as well as in an SVN checkout. The way its done 
right now is not ideal, I have some thoughts about cleaning it up but not much 
time :(

> 2. What does verfify and verify_all do? When I run it I get something like
> this

These scripts run the C++ and python examples against each other and 
automatically verify that the output is as expected. They are also supposed to 
work both in SVN and against an installation. They've been turned off in the C++ 
build for a while due to temporary C++/python incompatibilities during the 
migration to AMQP 0-10 so it's possible they have become broken. I plan to turn 
them on again next week and will sort out any problems I find. These scripts are 
part of the developer test framework rather than an end-user tool.

Great to see you're interested in the project, jonathan.robie@redhat.com has 
done a lot of example documentation work so I suggest collaborating with him.

Re: Improving docs on C++ examples

Posted by Jonathan Robie <jo...@redhat.com>.
Senaka Fernando wrote:
> 1. Isn't it better to name examples/examples to something like examples/src
> ?
>   

Er, yes.

Jonathan