Programming Terminology – Term for Unimplemented Code Written for Someone Else to Fill In

terminology

Sometimes in a programming exercise, boilerplate generation, putting guide rails around the tasks for a junior programmer to implement, etc., it happens that the programmer is presented unimplemented code and told to "fill in the blank." For example, a unit test that may compile, but fails, or a class declaration with empty methods.

Is there a common term for this practice?

Best Answer

You are referring to a stub or skeleton:

Stub

This is typically a method or function with a mostly-empty body that simply returns a dummy value so code will compile.

Skeleton

This is a method that has a high-level algorithm implemented, but individual parts are left unimplemented. They may be empty code blocks, or reference stub methods (see above) that will eventually perform subtasks. This is a good way to express a software design for a junior programmer who may struggle with the larger design effort, or for making sure you have the algorithm correct before investing too much time in the low-level details.


The practice of using these code elements would be called stubbing or creating a code skeleton.

Related Topic