• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

doxygen or something like it?

scootermaster

Platinum Member
I've got a bunch of code, and I actually enjoy commenting more than actual code, but it's not, uh, "formatted" to anything.

Are there other standards/softwares out there other than doxygen that can do pretty things with your comments? I figure I should learn one, but I'm not sure which (if there's more than one).


 
Originally posted by: MrChad
I use JavaDoc for my Java code and XML-based comments for my C# code.

Ah.

Shoulda mentioned that it's in C++.

I've done some digging, and it pretty much looks like it's just doxygen.

Is there a specific format for the XML comments?
 
Originally posted by: scootermaster
Originally posted by: MrChad
I use JavaDoc for my Java code and XML-based comments for my C# code.

Ah.

Shoulda mentioned that it's in C++.

I've done some digging, and it pretty much looks like it's just doxygen.

Is there a specific format for the XML comments?

It's just Microsoft's response to JavaDoc. There is a specific format and specific tags to use.

http://msdn.microsoft.com/msdnmag/issues/02/06/XMLC/
 
if this codebase is huge and you find doxygen takes hours to finish, then these notes may help you

88888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888
file:///J:/dl/pte/general-P-R/Doxygen/performance_issues/Doxygen%20Speed%20Issues%20_ts%20martin%20sweitzer.htm

SEARCH_INCLUDES = NO made a big difference. With it set to
NO, the documentation takes ~40 minutes to build. With it set to YES,
Doxygen ran for 8 hours before exhausting memory and stopping.
-----------------------------------------------------

I tried first setting SEARCH_INCLUDES to NO and then removing *.h from
the set of input files. Either change significantly reduced the time
taken but at the expense of documentation produced.
********************************************************************************************

SHOW_DIRECTORIES - setting this to NO reduces
generation time by two thirds.
--------------
Jake Colman reported 39.31 mins with SHOW_DIRECTORIES = NO
and 57.32 mins with it enabled. 18.01 min difference.

significant difference if your project takes hours to DG.
88888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888

I also tried wrapping a shell script around dot, as I mentioned, and only
actually calling dot for graphs of 100 or fewer nodes. This works splendidly.
The 15.5 hour running time was reduced to 45min. If any of you have a tough
time with a long Doxygen job that is using dot, give it a try.

-Karl
******************************************************************

From: Karl Pfleger <kpfleger@cs...>.stanford.edu>
Re: how to avoid running dot for really big diagrams
2003-03-28 18:42

> I wouldn"t expect this to do anything other than scale down the image. I
> wouldn"t think this would save any time running dot. I tried this but 5.5
> hours into my trial run it doesn"t seem to be helping.

So it turns out it did actually help. Reducing dot"s width and height from
1024 to 512 for both reduced running time from 15.5 hours to 7 hours. Still,
not nearly as good as 45min from not running dot on the 100+ node graphs.
-Karl
 
Haha that is true, but if you want to be safe, do something like:

//no params overload (any arty, fixed level randomization) : used for peerless boss only
public static Item Peerless()
{
return Peerless(0.01>Utility.RandomDouble() ? 3 : 0.1>Utility.RandomDouble() ? 2 : 1,0);
}

Perfectly commented and spaced. But a new programmer wont know WTF that even does. 😛
 
Originally posted by: Atheus
commenting your code makes you easily replaceable 😉

If you're a codemonkey.

I'm anything but. 😀

Edit:Clearly, as evidenced my the fact I couldn't get the above smilie to work. But really...the day I get a job as a software engineer is the day I...uhh...give up?
 
Back
Top