Skeleton (computer programming)

Skeleton (computer programming)

Skeleton programming is a style of computer programming based on simple high-level program structures and so called dummy code. Program skeletons resemble pseudocode, but allow parsing, compilation and testing of the code.

Dummy code is inserted in a program skeleton to simulate processing and avoid compilation error messages. It may involve empty function declarations, or functions that return a correct result only for a simple test case where the expected response of the code is known.

Skeleton programming facilitates a top-down design approach, where a partially-functional system with complete high-level structures is designed and coded, and this system is then progressively expanded to fulfill the requirements of the project.

Program skeletons are sometimes used for high-level descriptions of algorithms.

A program skeleton may also be utilized as a template that reflects syntax and structures commonly used in a wide class of problems.

Skeleton programs are utilized in the template method design pattern used in object-oriented programming. See that article for examples of skeleton programs.

In object-oriented programming, dummy code corresponds to an abstract method, a method stub or a mock object.

See also



Wikimedia Foundation. 2010.

Игры ⚽ Нужно сделать НИР?

Look at other dictionaries:

  • Skeleton (computer science) — Skeleton programming is a style of computer programming based on simple high level program structures and dummy code. Program skeletons resemble pseudocode, but allows parsing, compilation and testing of the code. Skeleton programming facilitates …   Wikipedia

  • Skeleton (disambiguation) — A skeleton is a biological system providing support in a living organism.Skeleton may also mean: *Human skeleton, human anatomy * Skeleton (category theory), in mathematics, every category has a skeleton in which no two distinct objects are… …   Wikipedia

  • Pseudocode — is a compact and informal high level description of a computer programming algorithm that uses the structural conventions of some programming language, but is intended for human reading rather than machine reading. Pseudo code typically omits… …   Wikipedia

  • Cooper Union — Coordinates: 40°43′45″N 73°59′26″W / 40.72927°N 73.99058°W / 40.72927; 73.99058 …   Wikipedia

  • United States — a republic in the N Western Hemisphere comprising 48 conterminous states, the District of Columbia, and Alaska in North America, and Hawaii in the N Pacific. 267,954,767; conterminous United States, 3,022,387 sq. mi. (7,827,982 sq. km); with… …   Universalium

  • Policy-based design — Policy based design, also known as policy based class design or policy based programming, is a computer programming paradigm based on an idiom for C++ known as policies. It has been described as a compile time variant of the strategy pattern, and …   Wikipedia

  • English language — Language belonging to the Germanic languages branch of the Indo European language family, widely spoken on six continents. The primary language of the U.S., Britain, Canada, Australia, Ireland, New Zealand, and various Caribbean and Pacific… …   Universalium

  • American and British English differences — For the Wikipedia editing policy on use of regional variants in Wikipedia, see Wikipedia:Manual of style#National varieties of English. This is one of a series of articles about the differences between British English and American English, which …   Wikipedia

  • Dummy code — In computer programming, dummy code is inserted in a program skeleton to simulate processing and avoid compilation error messages. It may involve empty function declarations, or functions that return a correct result only for a simple test case… …   Wikipedia

  • Dummy — may refer to: Military dummy: dummy round a cartridge that is inert, i.e. contains neither primer nor gunpowder decoy fake military equipment intended to deceive the enemy Crash test dummy, a full scale replica of a human being, weighted and… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”