sub
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
“Add a sub for this”
Meant: 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”
“Cancel my sub”
Meant: 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”
“Make it a sub”
Meant: 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”
“I need a sub”
Meant: 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