stub / stəb/ • n. 1. the truncated remnant of a pencil, cigarette, or similar-shaped object after use. ∎ a truncated or unusually short thing: he wagged his little stub of tail. ∎ [as adj.] denoting a projection or hole that goes only part of the way through a surface: a stub tenon.2. the part of a check, receipt, ticket, or other document torn off and kept as a record.• v. (stubbed, stub·bing) [tr.] 1. accidentally strike (one's toe) against something: I stubbed my toe, swore, and tripped.2. extinguish (a lighted cigarette) by pressing the lighted end against something: she stubbed out her cigarette in the overflowing ashtray.3. dig up (a plant) by the roots.
1. A substitute component that is employed temporarily in a program so that progress can be made, e.g. with compilation or testing, prior to the genuine component becoming available. To illustrate, if it is required to test the remainder of a program before a particular procedure has been developed, the procedure could be replaced by a stub. Dependent upon circumstances, it might be possible for this stub always to return the same result, return values from a table, return an approximate result, consult someone, etc.
2. See decision table.