Skip to main content
one-liner

one-liner

1 4.2
A single line of code that does a small useful task
  • noun
  • /ˈwʌnˌlaɪnər/
  • Specialized
translation icon : línea de código
  • And if not, and you prevail, forget about your cool one-liner; it will be a very shocking experience hard to live with for the rest of your life.

Examples

  • (I'm sure there's a Perl one-liner to lowercase text in the image files too, but it's probably longer...)

    Blog text (13)
  • The programmer created a simple one-liner to automate the data entry process.

  • Add a one-liner to trigger the interest of those who want or need to know.

    Blog text (14)
  • Not to mention the appropriate one-liner you're free to think of, meanwhile.

    Blog text (15)
  • OK, so these lines of code is a very generic way of writing this one liner list comprehension.

  • And if not, and you prevail, forget about your cool one-liner; it will be a very shocking experience hard to live with for the rest of your life.

    Blog text (15)
  • With just one one-liner, he managed to simplify the complex function.

  • She wrote a clever one-liner that impressed her colleagues during the presentation.

Synonyms

statement
vsone-liner
  • Specialized
10 4.6

A single line of code that tells the computer to do something

is a single short command that completes a small useful task
program line
vsone-liner
  • Specialized
4.1

A single line of code in a computer program

is a concise command meant to perform a complete small operation

How Long

application
  • Specialized
326 3.9
program
  • Specialized
3.1
script
  • Specialized
70 3.6
snippet
36 4.8
one-liner
  • Specialized
1 4.2

Surface Forms

one-liner singular
one-liners plural

Morphology

one-liner = one-line (transparent) = one + line + er

Built from 'one-line' with '-er' producing a noun meaning 'a single line of code/command', which follows regular word-formation patterns.

Etymology

One-liner comes from the parts one and line, meaning a 'single line'. In computing it means a single line of code that does a complete task, so you can remember it as 'one line that does the work'.