63

When is something language agnostic? Why is it called that?

joel
  • 103
Louis Rhys
  • 6,182

4 Answers4

76

Language agnostic refers to aspects of programming that are independent of any specific programming language. At least, that's how I've heard it used for the last thirty years.

The word "agnostic" is derived from the ancient Greek for "don't know". So something which is "language agnostic" doesn't need to know about computer languages; it means the same thing as language independent. Things that would be language agnostic include algorithms, or Agile, or a runtime library with bindings to many languages.

Some Mac OS X features are not language agnostic, because they're really designed to be used from Objective C, can only be used with difficulty from C or C++, and don't even have bindings for many languages.

There can also be a subtext to using "language agnostic" rather than other terms.

In colloquial English, someone who says they're "agnostic" means they are neither religious nor an atheist: they "don't know" about God. This is usually verbal code for "I don't like to talk about religion, so don't try to convert me."

So sometimes when people talk about being "language agnostic", they're trying to stay out of arguments about what computer language is better.

splash
  • 101
Bob Murphy
  • 16,098
9

When a solution is called "language-agnostic" you are literally saying that your solution "doesn't know about" languages, meaning its universal or independent from language specifics (paradigms, language idioms, etc).

For example, design patterns are language-agnostic, because the way they are described the specific implementation doesn't matter as long it sticks to the whole or a subset of the pattern (v.gr. some design patterns can be implemented without OOP).

UML is language-agnostic, BPMN is language-agnostic, ERM is language-agnostic. An algorithm in pseudo-code is language agnostic...

Anything that is meant to be programmed but not described in a specific language can be called language-agnostic.

dukeofgaming
  • 14,023
  • 6
  • 52
  • 77
6

Paradigms or features that aren't applied to only one language.

Josh K
  • 23,029
  • 10
  • 67
  • 100
2

I haven't heard the term before, however, I would assume it means learning aspects of programming that are independent of any specific programming language.