answersLogoWhite

0

Documenting a program while it's being developed allows the documentation to fully and clearly reflect the original spirit and intent of the program. Also, writing documentation during development is worlds easier than tacking it on afterward. Documenting an algorithm in (relatively) plain English pseudocode allows it to be thoroughly checked before any code is written, and the pseudocode can easily be translated to programming code that is already documented. For instance, the pseudocode documentation:

// Create a new Foo.
// Twiddle the Foo.
// If twiddling fails:

// Frobnicate.

// Destroy the Foo.


Can be used to produce the already-documented code:

// Create a new Foo.
Foo* foo = new Foo();

// Twiddle the Foo.
foo->twiddle();

// If twiddling fails:
if (foo->twiddling_failed()) {

// Frobnicate.
frobnicate();


} // if

// Destroy the Foo.
delete foo;


Which is eminently readable, maintainable, and just plain awesome.

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

During which phase of the system development life cycle does the actual programming occur?

development and documentation


What are the benefits of attending an executive leadership development program?

The benefits of attending an executive leadership development program is learning skills necessary or desirable for companies that they look for during their recruitment sessions. Alternatively it may allow you to qualify or be eligible for a promotion if the company acknowledges your effort to improve your performance.


Why is it necessary to provide additional documentation when applying for a passport if the father is not present?

When applying for a passport without the father present, additional documentation may be required to verify the child's identity and parental consent. This is necessary to prevent child abduction and ensure the safety and security of the child during international travel.


What is program documentation?

Program documentation is an essential part of any computer program or application. The documentation specifies what each part of the code does, what events will be triggered during the course of the program, and makes sure that no part of the program is accidentally left off the interface or code.


What spurred the development of the US's space program?

The US were spurred on by competing with the USSR during the cold war years.


Which two natural resources were the most necessary for the development of American industry during the 19th century?

Iron Ore and Coal


When is exception handling necessary for stream handling?

Exception handling is necessary for string handling as there might be some unexpected situation during string handling which may lead to program crash or abrupt termination


Your baby can read?

This program is great for babies. It helps them grow and connect brain cells during development. Everyone should use this with their children.


Is there documentation that supports the use of gas chambers during the holocaust?

yes.


How can you get physical exam paper?

To obtain a physical exam paper, you can schedule an appointment with a healthcare provider such as a doctor or a nurse practitioner. During the appointment, they will conduct the physical exam and provide you with the necessary documentation, including the physical exam paper.


What Birth certificates social security cards and driver's licenses are all examples of that you might need to provide during the job application process.?

documentation


What are the benefits of participating in a lunch and learn program?

Participating in a lunch and learn program provides opportunities for professional development, networking, and gaining new knowledge and skills during the workday. It can enhance employee engagement, productivity, and overall job satisfaction.