Cognitive Scaffold

Preparing your thinking workspace

arrow_back_ios_new
MENTAL MODEL · M1040

Works on My Machine

Works on My Machine
TechnicalmediumSoftware Engineering
Included
account_tree

Updated 2026-07-30

Loading revision record…

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.

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/4

Practice this model in one real situation:

Check to track your progress (stored locally)
Learning progress0%

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

  • link
    blog.codinghorror.comhttps://blog.codinghorror.com/the-works-on-my-machine-certification-program/ZH · Explicit
    verified
account_treeGenealogyexpand_more

RELATED MODELS