Programming idiom
Recurring construct of code in some programming language
In programming and in code, an idiom describes a commonly-used way to code a relatively small construct in a particular programming context (i.e. programming language). Many such constructs are found in multiple programming contexts yet tend to vary by context.
Nº Q490173 ★
Common · Knowledge
Programming idiom
Recurring construct of code in some programming language
In programming and in code, an idiom describes a commonly-used way to code a relatively small construct in a particular programming context (i.e. programming language). Many such constructs are found in multiple programming contexts yet tend to vary by context.
Last price
—
Floor price
—
7-day median
—
30-day sales
0
30-day range
—
In circulation
0
Price history
median
low – high
sales
No sales in this period
Show table
| Date | median | Low | High | sales |
|---|
Sales history
- Last sale
- —
- 30-day average
- —
- 30-day low
- —
- 30-day high
- —
- Sales 7d
- 0
- Sales 30d
- 0
No sales yet.
Anonymous sales: no buyer or seller shown. Figures count player-to-player sales only.
From Wikipedia
In programming and in code, an idiom describes a commonly-used way to code a relatively small construct in a particular programming context (i.e. programming language). Many such constructs are found in multiple programming contexts yet tend to vary by context. Like a linguistic idiom, a programming idiom is a commonly-used way to express a concept in a language that exists outside the definition of the language yet is constrained by it. Similar to a software design pattern, an idiom is a template to be followed, not code that can be copy-and-pasted into a codebase. In this sense, an idiom is a pattern, yet software design pattern is a classification reserved for significantly larger-scale functionality; usually involving the interaction of multiple objects. Using the idioms for a programming context (instead of using idiosyncratic constructs) helps a team work together since they lower the cognitive load of the resulting code. Such idiomatic use is common in crowdsourced repositories to help developers overcome programming barriers.
Text: Wikipédia, CC BY-SA 4.0. ·
Related cards
Snippet (programming)
Programming term for a small region of re-usable source code, machine code, or text
Nº Q1120538 ★★
Function (computer programming)
Sequence of instructions that can be called from other points in a computer program
Nº Q190686 ★★
Curiously recurring template pattern
Software design pattern
Nº Q5194797 ★★
Programming language
Language for communicating instructions to a machine
Nº Q9143 ★★★★★
Logic programming
Programming paradigm based on formal logic
Nº Q275603 ★★
Computer language
Formal language used in communication with a computer
Nº Q629206 ★★