Atomineer Pro Documentation for Visual Studio (2005..2026) (original) (raw)

Code Documentation - Why do it?

When programming, understanding what classes and methods are for, how to use them, and how they work is critical for rapid development/maintenance and avoiding bugs due to misunderstandings. It's important to write this information down - to share this knowledge across team, as well as for programmers to recall the fine details of code they haven't touched for a long period.

Many programmers write 'self documenting' code, where clear and descriptive naming conventions make it easier to understand code quickly. Documentation comments take this a step further by summarising that information in a single place rather than having to read through often quite complex source code. In addition, and most importantly, code documentation can tell you the things that 'self documenting' code never mentions:

* What exceptions will a method throw? * Can I pass a null in to this parameter? * What is the legal range for an integer parameter? * What is the return value that describes 'not found'?

Writing 'self documenting' code is just the first and most basic step of writing well documented, maintainable code.

In addition, the information from documentation comments can be used by Visual Studio's Intellisense system, with the information you need displayed live in tooltips as you type your client code.

There are also tools such as Doxygen (all languages) andSandCastle (.NET languages) that can be used to generate professional external documentation like that used in MSDN - essential for libraries and other code that will be shipped to third parties, as well as being extremely useful for internal use by your team.

There are just three problems:

Atomineer eliminates these problems: