PDA

View Full Version : Post your utility classes!


substance
11-09-2009, 06:44 AM
I've recently had some time between projects to revisit some of my old utility/helper classes and I've grown A LOT as a developer since my first iteration. This time around I want these to be as optimized as possible and what better way to learn new methods than to compare your code with other developers?

I'll start, here's my latest sound handler:

http://code.google.com/p/mister-martinez/source/browse/#svn/trunk/Utilities/src/Sound

critiques are encouraged!

TomMalufe
11-09-2009, 02:09 PM
That looks like a mighty useful little lib. I will take a closer look at it later when I've got a few more minutes then I do right now.

But, it seems you have the same problem as I do... not a single comment to be found. I never take the time to comment, but I think it's nice to have a large description comment at the top of a class that explain how and where this class is used. I think everyone (myself included) should at least do that much. And, if you're feeling generous, it's sometimes nice to have a few comments explaining any public methods that aren't completely obvious as well.

substance
11-10-2009, 08:38 AM
Yeh, I'd really like to comment more of my code but it seems that I change things so often that it's mostly just a waste of time.

Btw most of the code in that repository is unfinished, I just started.