Generic

Adjective · Development

Definitions

  1. A programming construct that allows types to be parameterized, enabling code to operate on different data types while maintaining compile-time type safety without duplicating logic for each type.

    In plain English: Code written to work with any data type, like a box that can hold anything — you specify what goes inside when you use it, not when you build it.

    Example: "Instead of writing separate sort functions for ints, strings, and floats, just make it generic."

Related Terms