Function

Noun · Development

Definitions

  1. A named, reusable block of code that accepts inputs (parameters), performs a computation, and optionally returns a result. The fundamental unit of abstraction in nearly every programming paradigm.

    In plain English: A named recipe in code — you give it ingredients (inputs), it does its thing, and hands you back a result. Write once, use everywhere.

    Example: "If you're copying the same ten lines in three places, that's a function waiting to be extracted."

Related Terms