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.


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.


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.


When is the Acquisition Program baseline prepared?

The Acquisition Program Baseline (APB) is typically prepared during the early stages of the acquisition process, specifically after the decision to proceed with a program but before the formal start of system development. It is established during the Milestone B decision point, which signifies the transition from the concept and technology development phase to the engineering and manufacturing development phase. The APB outlines key performance parameters, cost estimates, and schedule milestones critical for program management and oversight.


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


How important is program documentation?

Program documentation is crucial as it serves as a guide for both current and future developers, facilitating understanding of the code's structure, functionality, and intended use. It enhances maintainability by providing insights into design decisions and usage, which is especially valuable in collaborative environments. Additionally, thorough documentation can significantly reduce onboarding time for new team members and help prevent errors during updates or modifications. Overall, it contributes to the long-term success and sustainability of software projects.


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.


When would you normally expect to see development of the Test and Evaluation Master Plan (TEMP) for a program?

The Test and Evaluation Master Plan (TEMP) is typically developed early in the program lifecycle, often during the Preliminary Design Review (PDR) phase. It should be finalized before the critical design review (CDR) to ensure that test and evaluation strategies align with the program's objectives and requirements. Additionally, the TEMP is revisited and updated as necessary throughout the program to reflect any changes in scope or requirements.


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

yes.