What's the difference between
and
Enter two words to compare and contrast their definitions, origins, and synonyms to better understand how those words are related.

Switch vs Sub - What's the difference?

switch | sub |

In computing programming terms the difference between switch and sub

is that switch is a programming construct that takes different actions depending on the value of an expression while sub is a subroutine (sometimes one that does not return a value, as distinguished from a function, which does).

In bdsm terms the difference between switch and sub

is that switch is one who is willing to take either a sadistic or a masochistic role while sub is to take a submissive role.

In intransitive lang=en terms the difference between switch and sub

is that switch is to get angry suddenly; to quickly or unreasonably become enraged while sub is to subscribe.

As nouns the difference between switch and sub

is that switch is a device to turn electric current on and off or direct its flow while sub is a submarine.

As verbs the difference between switch and sub

is that switch is to exchange while sub is to substitute for.

As an adjective switch

is riding with their opposite foot forward from their natural position.

As a preposition sub is

under.

switch

English

Noun

(es)
  • A device to turn electric current on]] and [[turn off, off or direct its flow.
  • A change.
  • * {{quote-news
  • , year=2011 , date=January 19 , author=Jonathan Stevenson , title=Leeds 1 - 3 Arsenal , work=BBC citation , page= , passage=Wenger sent on Cesc Fabregas and Van Persie to try to finish Leeds off and with 14 minutes left the switch paid off as the Spaniard sent Bendtner away down the right and his wonderful curling cross was headed in by Van Persie at the far post. }}
  • (rail transport, US) A movable section of railroad track which allows the train to be directed down one of two destination tracks; point.
  • A slender woody plant stem used as a whip; a thin, flexible rod, associated with corporal punishment in the United States.
  • * 2007 , Jeffrey W. Hamilton, Raising Godly Children in a Wicked World , Lulu.com, page 15:
  • "A proper switch is a slim, flexible branch off a tree or a bush. A switch applied to the buttocks stings fiercely. It may leave red marks or bruises, but it causes no lasting damage. ."
  • (computer science) A command line notation allowing specification of optional behavior.
  • Use the /b switch to specify black-and-white printing.
  • (computing, programming) A programming construct that takes different actions depending on the value of an expression.
  • * 2004', "Curt", ''Can I use IF statements, and still use '''switches ?'' (on newsgroup ''microsoft.public.word.mailmerge.fields )
  • (computing, networking) A networking device connecting multiple wires, allowing them to communicate simultaneously, when possible. Compare to the less efficient hub device that solely duplicates network packets to each wire.
  • (telecommunication) A system of specialized relays, computer hardware, or other equipment which allows the interconnection of a calling party's telephone line with any called party's line.
  • (BDSM) One who is willing to take either a sadistic or a masochistic role.
  • * 2012 , Terri-Jean Bedford, Bondage Bungalow Fantasies (page 99)
  • Ideally, if one of your ladies happens to be a switch (or would be willing to switch for this scene), I would love to be able to inflict a little "revenge tickling" as well, as part of a scenario.
  • A separate mass or tress of hair, or of some substance (such as jute) made to resemble hair, formerly worn on the head by women.
  • Synonyms

    * (section of railroad track) (UK ) points * (whip) crop * (command-line notation) flag, option, specifier

    Derived terms

    * asleep at the switch * dipswitch * light switch * railway switch * switchback * switchblade * switchboard * switcheroo * switchout

    Verb

    (es)
  • To exchange.
  • * {{quote-magazine, date=2013-06-01, volume=407, issue=8838
  • , page=13 (Technology Quarterly), magazine=(The Economist) , title= Ideas coming down the track , passage=A “moving platform” scheme
  • To change (something) to the specified state using a switch.
  • To whip or hit with a switch.
  • * 1899 , (Joseph Conrad),
  • They were looking on the ground, absorbed in thought. The manager was switching his leg with a slender twig: his sagacious relative lifted his head.
  • To change places, tasks, etc.
  • (slang) To get angry suddenly; to quickly or unreasonably become enraged.
  • To swing or whisk.
  • to switch a cane
  • To be swung or whisked.
  • The angry cat's tail switched back and forth.
  • To trim.
  • to switch a hedge
    (Halliwell)
  • To turn from one railway track to another; to transfer by a switch; generally with off'', ''from , etc.
  • to switch''' off a train; to '''switch a car from one track to another
  • (ecclesiastical) To shift to another circuit.
  • Adjective

    (-)
  • (snowboarding) riding with their opposite foot forward from their natural position. BBC Sport, "Sochi 2014: A jargon-busting guide to the halfpipe", 11 February 2014
  • Coordinate terms

    (snowboarding) * goofy * regular

    See also

    * switch off * switch on

    References

    ----

    sub

    English

    Etymology 1

    Shortened form of any of various words beginning sub- , such as submarine, subroutine, substitute, subscription. The sandwich is so called because the bun's cylindrical shape resembles the shape of a submarine.

    Noun

    (en noun)
  • A submarine.
  • A submarine sandwich—a sandwich made on a long bun.
  • We can get subs at that deli.
  • (US, informal) A substitute.
  • With the score 4 to 1, they brought in subs .
    She worked as a sub until she got her teaching certificate.
  • (British, informal) A substitute in a football (soccer) game: someone who comes on in place of another player part way through the game.
  • * 1930 , Boy's Live, Philip Scruggs, There Can Be Victory , page 20
  • At any other school you would be playing varsity, and Wallace has you pigeon-holed on the subs'." "Maybe he has his reasons," Jim replied. "And he hasn't pigeon-holed me on the ' subs yet — not this season.
  • (British, informal, often in plural) Short for subscription: a payment made for membership of a club, etc.
  • (informal) A submissive in BDSM practices.
  • * 2004 , Paul Baker, Fantabulosa: A Dictionary of Polari and Gay Slang?
  • ...roleplay where a sub or bottom takes care of a top's bodily and hygiene needs...
  • * 2007 , Laurell K Hamilton, The Harlequin
  • "It means that I'm both a sub and a dom." "Submissive and dominant," I said. He nodded.
  • * 2008 , Lannie Rose, How to Change Your Sex
  • Typically a dom and a sub have a more or less standard routine that they like to go through all the time.
  • (Internet, informal) A subtitle.
  • I've just noticed a mistake in the subs for this film.
  • (computing, programming) A subroutine (sometimes one that does not return a value, as distinguished from a function, which does).
  • * 2002 , Nathan Patwardhan, Ellen Siever, Stephen Spainhour, Perl in a nutshell
  • The default accessor can be overridden by declaring a sub of the same name in the package.
  • * 2004 , P. K. McBride, Introductory Visual Basic.NET (page 49)
  • So far, all the subs and functions that we have used have been those built into the system, or those written to handle events from controls...
  • (colloquial, dated) A subordinate.
  • (colloquial, dated) A subaltern.
  • Synonyms
    * (submarine sandwich) grinder, hoagie
    Hypernyms
    * (submarine sandwich) sandwich

    Verb

    (subb)
  • (US, informal) To substitute for.
  • (US, informal) To work as a substitute teacher, especially in primary and secondary education.
  • (British, informal, football) To replace (a player) with a substitute.
  • He never really made a contribution to the match, so it was no surprise when he was subbed at half time.
  • (British, informal, football) Less commonly, and often as sub on , to bring on (a player) as a substitute.
  • ''He was subbed on half way through the second half, and scored within minutes.
  • (British) To perform the work of a subeditor or copy editor; to subedit.
  • (UK, slang, transitive) To lend.
  • * 2011 , Rowland Rivron, What the F*** Did I Do Last Night?
  • I kept up the pleasantries as we were drying our hands and, realizing I didn't have any change for the lodger, I asked him, one drummer to another like, if he could sub me a quid for the dish.
  • (slang) To subscribe.
  • (BDSM) To take a submissive role.
  • * Alicia White, Jessica's Breakdown (page 53)
  • You've never subbed before. Jessica will be expecting a man on stage that follows orders and enjoys what she's going to be doing. Do you want to be spanked? Possibly whipped?
  • * 2012 , Tiffany Reisz, Little Red Riding Crop
  • Wasn't like she'd never subbed before. She'd been a sub longer than she'd been a Dominatrix–ten years she'd spent in a collar.

    Etymology 2

    From (etyl) sub.

    Preposition

    (English prepositions)
  • Under.
  • Verb

  • To coat with a layer of adhering material; to planarize by means of such a coating.
  • (microscopy) To prepare (a slide) with an layer of transparent substance to support and/or fix the sample.
  • * 1997 , Marina A. Lynch, S. M. O'Mara (editors), Ali D. Hames, D. Rickwood (series editors), Neuroscience Labfax , page 166,
  • Ensure that gloves are worn when handling subbed' slides. Although the following protocol describes '''subbing with gelatin, slides may also be coated with either 3-(triethoxysilyl-)propylamine (TESPA) or poly-L-lysine for ''in situ hybridization.

    See also

    * switch (one who is willing to take either a sadistic or a masochistic role)

    Anagrams

    * * * ----