Doxygen

View: New views
5 Messages — Rating Filter:   Alert me  

Doxygen

by Paul Lesniewski :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Not that we have the energy to do something new, but I like the sound
of Doxygen - http://en.wikipedia.org/wiki/Doxygen

It looks to be compatible with PHPDoc with some nice additions and
might be more powerful.  I especially like the idea that you can
document function parameters in a way that makes them more likely to
be documented, updated, etc., which is a constant problem in SM.

Anyone used it before?

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
-----
squirrelmail-devel mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-devel@...
List archives: http://news.gmane.org/gmane.mail.squirrelmail.devel
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-devel

Re: Doxygen

by Fredrik Jervfors-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> Not that we have the energy to do something new, but I like the sound
> of Doxygen - http://en.wikipedia.org/wiki/Doxygen
>
> It looks to be compatible with PHPDoc with some nice additions and
> might be more powerful.  I especially like the idea that you can document
> function parameters in a way that makes them more likely to be documented,
> updated, etc., which is a constant problem in SM.
>
> Anyone used it before?

I've seen it around, but I haven't tried it myself. I don't mind if we
change, but I won't mind if we don't either. A quick look at the Wikipedia
page didn't give me any clues about why Doxygen would be better for
documenting "function parameters in a way that makes them more likely to
be documented, updated, etc." Could you please elaborate on that?

Sincerely,
Fredrik

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
-----
squirrelmail-devel mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-devel@...
List archives: http://news.gmane.org/gmane.mail.squirrelmail.devel
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-devel

Re: Doxygen

by Paul Lesniewski :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, Jun 11, 2008 at 4:48 AM, Fredrik Jervfors
<jervfors@...> wrote:

>> Not that we have the energy to do something new, but I like the sound
>> of Doxygen - http://en.wikipedia.org/wiki/Doxygen
>>
>> It looks to be compatible with PHPDoc with some nice additions and
>> might be more powerful.  I especially like the idea that you can document
>> function parameters in a way that makes them more likely to be documented,
>> updated, etc., which is a constant problem in SM.
>>
>> Anyone used it before?
>
> I've seen it around, but I haven't tried it myself. I don't mind if we
> change, but I won't mind if we don't either.

I think the nice thing is that it appears to be compatible with
PHPDoc, so technically, it's just a matter of which tool you use to
create your docs.  However, if we start using the alternate parameter
documentation syntax, we'd be committing to Doxygen.

> A quick look at the Wikipedia
> page didn't give me any clues about why Doxygen would be better for
> documenting "function parameters in a way that makes them more likely to
> be documented, updated, etc." Could you please elaborate on that?

Instead of:

/**
 * Add a variable to the session.
 * @param mixed $var the variable to register
 * @param string $name the name to refer to this variable
 * @return void
 */
function sqsession_register ($var, $name) {

You'd have the param docs more in the code - more in your face:

/**
 * Add a variable to the session.
 * @return void
 */
function sqsession_register ($var, ///< mixed $var the variable to register
                                         $name) { ///< string $name
the name to refer to this variable

Definitely a bit more ugly, but it does look like it makes it harder
to miss updating the docs.

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
-----
squirrelmail-devel mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-devel@...
List archives: http://news.gmane.org/gmane.mail.squirrelmail.devel
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-devel

Re: Doxygen

by Fredrik Jervfors-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

>>> Not that we have the energy to do something new, but I like the sound
>>>  of Doxygen - http://en.wikipedia.org/wiki/Doxygen
>>>
>>> It looks to be compatible with PHPDoc with some nice additions and
>>> might be more powerful.  I especially like the idea that you can
>>> document function parameters in a way that makes them more likely to
>>> be documented, updated, etc., which is a constant problem in SM.
>>>
>>> Anyone used it before?
>>
>> I've seen it around, but I haven't tried it myself. I don't mind if we
>> change, but I won't mind if we don't either.
>
> I think the nice thing is that it appears to be compatible with
> PHPDoc, so technically, it's just a matter of which tool you use to
> create your docs.  However, if we start using the alternate parameter
> documentation syntax, we'd be committing to Doxygen.

Nothing that a bit of scripting can't fix.

>> A quick look at the Wikipedia
>> page didn't give me any clues about why Doxygen would be better for
>> documenting "function parameters in a way that makes them more likely
>> to be documented, updated, etc." Could you please elaborate on that?
>
> Instead of:
>
> /**
>  * Add a variable to the session.
>  * @param mixed $var the variable to register
>  * @param string $name the name to refer to this variable
>  * @return void
>  */
> function sqsession_register ($var, $name) {
>
> You'd have the param docs more in the code - more in your face:
>
> /**
>  * Add a variable to the session.
>  * @return void
>  */
> function sqsession_register ($var, ///< mixed $var the variable to
> register $name) { ///< string $name the name to refer to this variable
>
> Definitely a bit more ugly, but it does look like it makes it harder
> to miss updating the docs.

Ugly indeed. Can't say I'm too keen on it, but feel free to vote me down.

Sincerely,
Fredrik

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
-----
squirrelmail-devel mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-devel@...
List archives: http://news.gmane.org/gmane.mail.squirrelmail.devel
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-devel

Re: Doxygen

by Alexandros Vellis :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tue, 10 Jun 2008 21:06:53 -0700
"Paul Lesniewski" <paul@...> wrote:

> Not that we have the energy to do something new, but I like the sound
> of Doxygen - http://en.wikipedia.org/wiki/Doxygen
>
> It looks to be compatible with PHPDoc

I think the reverse is more accurate historically. That is,
phpdocumentor is (more or less) "compatible" with doxygen-like comments.

Phpdoc seems to be closer to javadoc with regard to comment styles.
Doxygen also tends to be used in the C world.

Have you seen doxygen output? It is not necessarily better from phpdoc,
IMHO.

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
-----
squirrelmail-devel mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-devel@...
List archives: http://news.gmane.org/gmane.mail.squirrelmail.devel
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-devel