[RESOLVED] Best practices for describing/commenting Custom Classes
Hello All,
Newish to OOP and Class programing in AS3.0, also new to the production team environment where other (wiser, more experienced) developers will be using and looking at my code and Classes on a regular basis.
So, I'm trying to develop a semi-standardized Class template to make it easier on the other team members to parse through my code. If you look at a lot of the classes that are freely available for download around the web, a lot of times you'll see a good sized chunk of comments at the top of the .AS file.
Usually these consist of copyrights and usage rights, e.g. "This class was made by jo' mamma for use in x, y, z 2020" and maybe a plain english description of what the Class is attempting to do.
Anyway, I've never put any of that info in my Class files before, because well, I've always been the only one looking at my code.
So, I wanted to get some other developer's opinions on what kind of information and syntax would be the MOST helpful to see in the comments at the top if they were opening a .AS file that they've never seen before?
Are there any "best practices" or "semi-standard templates" documented out there on the web? Even if it's not AS3.0 specific... I mean a Class is a Class regardless of language... so even if the syntax is different, I imagine the general info useful to a C+ developer would also be useful to an AS3.0 developer?
Aside from the general guidlines, I have seen this at the top of some .AS files:
What does the "@(#)" mean, exactly?