Stubroutine

Updated: 12/10/2023 by Computer Hope
stub routine

Sometimes called a stub, null script, or null subroutine, a stubroutine is a small piece of code (or empty space) used as a temporary stand-in for other code. At their core, stubroutines are command scripts whose only function is to return a constant value. Essentially, they are placeholders that allow the rest of a program to be developed and tested before it is completely functional.

Stub routines are often useful with software development when different parts of a program are being worked on simultaneously by different users or teams. Stubroutines simulate the behavior of the missing code or act as a "gap" that allows the other code to function as it should. Once the program's coding is finished or near completion, the stubs are replaced with the proper implements.

Programming terms, Script, Thunk