The difference between Global and Local

When used as nouns, global means a globally scoped identifier, whereas local means a person who lives near a given place.

When used as adjectives, global means spherical, ball-shaped, whereas local means from or in a nearby location.


check bellow for the other definitions of Global and Local

  1. Global as an adjective:

    Spherical, ball-shaped.

    Examples:

    "In the center was a small, global mass."

  2. Global as an adjective (not [[comparable]]):

    Of or relating to a globe or sphere.

  3. Global as an adjective:

    Concerning all parts of the world.

    Examples:

    "Pollution is a global problem."

  4. Global as an adjective (not comparable, computing):

    Of a variable, accessible by all parts of a program.

    Examples:

    "'Global variables keep support engineers employed."

  5. Global as an adjective:

    Which has to be considered in its entirety.

  1. Global as a noun (computing):

    A globally scoped identifier.

  1. Local as an adjective:

    From or in a nearby location.

    Examples:

    "We prefer local produce."

  2. Local as an adjective (computing, of a [[variable]] or [[identifier]]):

    Having limited scope (either lexical or dynamic); only being accessible within a certain portion of a program.

  3. Local as an adjective (mathematics, not comparable, of a condition or state):

    Applying to each point in a space rather than the space as a whole.

  4. Local as an adjective (medicine):

    Of or pertaining to a restricted part of an organism.

    Examples:

    "The patient didn't want to be sedated, so we applied only local anesthesia."

  5. Local as an adjective:

    Descended from an indigenous population.

    Examples:

    "Hawaiian Pidgin is spoken by the local population."

  1. Local as a noun:

    A person who lives near a given place.

    Examples:

    "It's easy to tell the locals from the tourists."

  2. Local as a noun:

    A branch of a nationwide organization such as a trade union.

    Examples:

    "I'm in the TWU, too. Local 6."

  3. Local as a noun (rail transport):

    A train that stops at all, or almost all, stations between its origin and destination, including very small ones.

    Examples:

    "The expresses skipped my station, so I had to take a local."

  4. Local as a noun (British):

    One's nearest or regularly frequented public house or bar.

    Examples:

    "I got barred from my local, so I've started going all the way into town for a drink."

  5. Local as a noun (programming):

    A locally scoped identifier.

    Examples:

    "Functional programming languages usually don't allow changing the immediate value of locals once they've been initialized, unless they're explicitly marked as being mutable."

  6. Local as a noun (US, slang, journalism):

    An item of news relating to the place where the newspaper is published.

  7. Local as a noun (colloquial, medicine):

    Examples:

    "'1989, ''Road House'', 39:59:"

    "Well, Mr. Dalton, you may add nine staples to your dossier of thirty‐one broken bones, two bullet wounds, nine puncture wounds and four steel screws. That’s an estimate, of course. I’ll give you a local."