Skeleton (computer programming): Difference between revisions

Content deleted Content added
AWB recategorisation, WikiProject Stub Sorting, Replaced: {{compu-stub}} → {{comp-sci-stub}} using AWB
m Merged with the dummy code article, which originally was a stub, and for a while was redirected to mock object, where it was not discussed. Dummy code and Skeleton programs are not only OOP.
Line 1:
'''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 allows [[parsing]], [[compiler|compilation]] and testing of the code.
 
Dummy code is inserted in a [[Skeleton (computer science)|program skeleton]] to simulate processing and avoid [[compiler|compilation]] error messages. It may involve empty [[subroutine|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 expanded to fulfill the requirements for the project to a successively higher level of detail.
Line 8 ⟶ 10:
 
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 [[Method_(computer_science)#Kinds_of_methods|abstract method]], a [[method stub]] or a [[mock object]].
 
==See also==
*[[Dummy code]]
*[[Pseudo code]]
*[[Template method pattern]]