Works on My Machine
Updated 2026-07-30
Summary
The developer's most notorious excuse
Definition
The developer's most notorious excuse. The code runs perfectly in the local development environment but crashes in the production environment (on the user's side). The cause is differences in environment dependencies (configuration, library versions). Scaffold use: environment de-dependency. When you give a suggestion or solution, ask yourself: "Is this only effective in my environment (my resources, background, capabilities), or will it also run in the other party's production environment (their resources, constraints)?" Don't be a 'locally effective' consultant.
Introduction
How to use
Environment de-dependency. When you give a suggestion or solution, ask yourself: "Is this only effective in my environment (my resources, background, capabilities), or will it also run in the other party's production environment (their resources, constraints)?" Don't be a 'locally effective' consultant.
Mechanism
Software operation depends on the 'environment' (operating system, library versions, configuration, data, hardware). Local success but production crash stems from environment differences that invalidate implicit assumptions. The environment is a hidden input that cannot be ignored; any 'it works' is tied to a specific environmental context, and 'success' detached from context is not transferable.
Practice
In progress 0/4Practice this model in one real situation:
Cases
- Local Python dependencies without locked versions cause errors after library upgrades on deployment; development on Mac with case-insensitive paths leads to file not found after deploying to Linux; 'works on my machine' has been made into a self-deprecating badge widely circulated.
Common pitfalls
- Assuming that the code being correct is sufficient; blaming users for environment issues; using 'just restart it' to cover up unresolved differences; ignoring that configuration and data are also part of the environment.
Sources
Source support: Explicit
- blog.codinghorror.comhttps://blog.codinghorror.com/the-works-on-my-machine-certification-program/verified
account_treeGenealogyexpand_more
PRIVATE NOTES · Only visible to you
SAVED Q&A
ENTRY Q&A · Private saving available
Ask with a clear boundary
thinkingmodels answers from published entry context only.
Your question is sent to thinkingmodels. The answer uses public entry context only.
RELATED MODELS