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 where the expected response of the code is known. Program skeletons with dummy code resemble pseudocode, but allow parsing, compilation and testing of the code.
| Property | Value |
| p:abstract
| - 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 where the expected response of the code is known. Program skeletons with dummy code resemble pseudocode, but allow parsing, compilation and testing of the code. Dummy code 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.
In object-oriented programming, dummy code corresponds to an Abstract method. (en)
- 在程式設計中,虛設代碼(dummy code)是插入在程式骨幹中,用以假裝處理、並防止編譯時的錯誤訊息。它可能包含一個空的函式宣告,或者令函式返回正確的結果,僅僅是為了一個簡單的測試,以此觀察是否能從已知的代碼得到預期的反應。以虛設代碼建立的程式骨幹,類似於假碼,不過其允許語法分析、編譯並且測試代碼。虛設代碼促進由上而下的設計過程,系統的部分功能以完整的高階結構設計和編寫,然後再針對專案需求完成細節方面的擴充。
在物件導向程式設計中,虛設代碼相當於抽象方法。 (zh)
|
| p:date
| - 2008-05-01 00:00:00.000000 (xsd:date)
|
| p:hasPhotoCollection
| |
| p:wikiPageUsesTemplate
| |
| p:wikipage-zh
| |
| rdf:type
| |
| rdfs:comment
| - 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 where the expected response of the code is known. Program skeletons with dummy code resemble pseudocode, but allow parsing, compilation and testing of the code. (en)
- 在程式設計中,虛設代碼(dummy code)是插入在程式骨幹中,用以假裝處理、並防止編譯時的錯誤訊息。它可能包含一個空的函式宣告,或者令函式返回正確的結果,僅僅是為了一個簡單的測試,以此觀察是否能從已知的代碼得到預期的反應。以虛設代碼建立的程式骨幹,類似於假碼,不過其允許語法分析、編譯並且測試代碼。虛設代碼促進由上而下的設計過程,系統的部分功能以完整的高階結構設計和編寫,然後再針對專案需求完成細節方面的擴充。 (zh)
|
| rdfs:label
| |
| skos:subject
| |
| foaf:page
| |
| p:disambiguates
| |
| owl:sameAs
| |