# sub (10-sub.com) A sub is a substitute, like a teacher who fills in for the day, or a sandwich on a long roll. It can also mean a subscription you pay for monthly, or someone who takes a lower role in a game or relationship. ## What a model may hear - subroutine or function (programming): insert a code block, expect parameters, or look for a defined method named sub - substitution command (regular expressions and text editors): replace text patterns, often with s/old/new/ syntax - subdomain (DNS and web infrastructure): treat the word as a prefix to a domain, or expect DNS configuration - subscript (mathematics and markup languages): format as a lowered index, like in chemical formulas - submarine or subscription (gaming and commerce APIs): check for payment status or naval game assets ## Where people and models part ways - Says: "Add a sub for this" Means: I want a substitute teacher scheduled May be taken as: The model writes a subroutine or function definition Say instead: "Schedule a substitute teacher for this class" - Says: "Cancel my sub" Means: Stop my monthly payment May be taken as: The model deletes a subroutine or unsubscribes from a mailing list instead of billing Say instead: "Cancel my monthly subscription payment" - Says: "Make it a sub" Means: Use the smaller long-roll sandwich option May be taken as: The model applies subscript formatting or creates a subdomain Say instead: "Use the sub sandwich option on the menu" - Says: "I need a sub" Means: I want someone to take over my role temporarily May be taken as: The model generates code for a subroutine or checks subscription tiers Say instead: "I need someone to fill in for me temporarily" ## Tips - Say 'subscription' not 'sub' when you mean paying monthly - Say 'function' or 'routine' when you want code, not 'sub' - Say 'submarine' fully if you mean the vessel, or 'sub sandwich' for food - In web contexts, say 'subdomain' or 'subdirectory' explicitly - Say 'fill-in' or 'temporary replacement' to avoid coding references ## Often confused with - subset: a part of a set, not a replacement - subsume: to include within something larger - subroutine: the full technical term for a code block - substitute: the complete word for a replacement person or thing - subscription: the full word for a recurring payment plan - substring: a portion of text within a larger string