Works on my machine

Catchphrase informal

A developer's excuse when software fails for others: it ran fine on their own computer, so the problem must be elsewhere.

Meaning & usage

Works on my machine is what programmers say when a bug report comes in and the code runs perfectly on their own setup. It may be true, since differences in settings, versions and data can cause problems, but it does nothing to fix the issue for the user.

The phrase is mostly used as a joke at a developer’s expense. It is shorthand for passing the buck and for the classic gap between a test environment and the real world.

Examples

  • "Works on my machine" is not an acceptable answer to a customer.
  • He shrugged and said it worked on his machine.
  • We set up containers so nobody can say "works on my machine" again.

Origin & history

The excuse is as old as software teams, and its exact origin is not recorded. It became a standing joke among developers by the 2000s, appearing in blog posts and mock certification badges.

Tools that package software with everything it needs to run, which became popular in the 2010s, were often promoted as the cure for the problem.

Sources

  1. Jeff Atwood. The Works on My Machine Certification Program. Coding Horror, 2007.
  2. Donte Kirby. So You Want To Be a Software Developer?: Docker and the 'It works on my machine' problem. Technical.ly, 2021.