{
  "code": null,
  "collection": "architecture",
  "href": "https://banes-lab.com/ontology#architecture-golden-hammer",
  "id": "golden-hammer",
  "kind": "anti-pattern",
  "layer": {
    "href": "https://banes-lab.com/ontology/schema#layer-enforcement-core",
    "json": "https://banes-lab.com/json/records/layer/enforcement-core",
    "label": "Enforcement Core",
    "markdown": "https://banes-lab.com/records/layer/enforcement-core.md",
    "ref": "layer:enforcement-core"
  },
  "name": "Golden Hammer",
  "ref": "architecture:golden-hammer",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-force-analysis",
          "json": "https://banes-lab.com/json/records/lexicon/force-analysis",
          "label": "Force Analysis",
          "markdown": "https://banes-lab.com/records/lexicon/force-analysis.md",
          "ref": "lexicon:force-analysis"
        },
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-trade-off-matrix",
          "json": "https://banes-lab.com/json/records/lexicon/trade-off-matrix",
          "label": "Trade-Off Matrix",
          "markdown": "https://banes-lab.com/records/lexicon/trade-off-matrix.md",
          "ref": "lexicon:trade-off-matrix"
        },
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-decision-record-with-alternatives",
          "json": "https://banes-lab.com/json/records/lexicon/decision-record-with-alternatives",
          "label": "Decision Record with Alternatives",
          "markdown": "https://banes-lab.com/records/lexicon/decision-record-with-alternatives.md",
          "ref": "lexicon:decision-record-with-alternatives"
        },
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-contextual-pattern-selection",
          "json": "https://banes-lab.com/json/records/lexicon/contextual-pattern-selection",
          "label": "Contextual Pattern Selection",
          "markdown": "https://banes-lab.com/records/lexicon/contextual-pattern-selection.md",
          "ref": "lexicon:contextual-pattern-selection"
        }
      ],
      "relation": "refactored-by"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/schema#vocabulary-severity-discouraged",
          "json": "https://banes-lab.com/json/records/vocabulary/severity-discouraged",
          "label": "discouraged",
          "markdown": "https://banes-lab.com/records/vocabulary/severity-discouraged.md",
          "ref": "vocabulary:severity-discouraged"
        }
      ],
      "relation": "severity"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology#architecture-category-anti-patterns",
          "json": "https://banes-lab.com/json/records/architecture-category/anti-patterns",
          "label": "Anti-patterns",
          "markdown": "https://banes-lab.com/records/architecture-category/anti-patterns.md",
          "ref": "architecture-category:anti-patterns"
        }
      ],
      "relation": "category"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/schema#force-architecture-evolution",
          "json": "https://banes-lab.com/json/records/force/architecture-evolution",
          "label": "Architecture evolution",
          "markdown": "https://banes-lab.com/records/force/architecture-evolution.md",
          "ref": "force:architecture-evolution"
        }
      ],
      "relation": "force"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology#architecture-first-principles-design",
          "json": "https://banes-lab.com/json/records/architecture/first-principles-design",
          "label": "First-Principles Design",
          "markdown": "https://banes-lab.com/records/architecture/first-principles-design.md",
          "ref": "architecture:first-principles-design"
        }
      ],
      "relation": "negated-by"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology#architecture-first-principles-design",
          "json": "https://banes-lab.com/json/records/architecture/first-principles-design",
          "label": "First-Principles Design",
          "markdown": "https://banes-lab.com/records/architecture/first-principles-design.md",
          "ref": "architecture:first-principles-design"
        }
      ],
      "relation": "violates"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/disciplined-methodology/ship#when-not",
          "json": "https://banes-lab.com/json/disciplined-methodology/ship/when-not",
          "label": "Proxies give way",
          "markdown": "https://banes-lab.com/disciplined-methodology/ship/when-not.md",
          "ref": "chapter:/disciplined-methodology/ship#when-not"
        },
        {
          "href": "https://banes-lab.com/software-architecture/decay#seven-controls-seven-classes",
          "json": "https://banes-lab.com/json/software-architecture/decay/seven-controls-seven-classes",
          "label": "Seven controls, seven classes",
          "markdown": "https://banes-lab.com/software-architecture/decay/seven-controls-seven-classes.md",
          "ref": "chapter:/software-architecture/decay#seven-controls-seven-classes"
        },
        {
          "href": "https://banes-lab.com/ontology#architecture-category-anti-patterns",
          "json": "https://banes-lab.com/json/ontology/principles/architecture-category-anti-patterns",
          "label": "Anti-patterns",
          "markdown": "https://banes-lab.com/ontology/principles/architecture-category-anti-patterns.md",
          "ref": "chapter:/ontology#architecture-category-anti-patterns"
        },
        {
          "href": "https://banes-lab.com/ontology#architecture-category-architecture-review-evolution-governance-artifacts",
          "json": "https://banes-lab.com/json/ontology/principles/architecture-category-architecture-review-evolution-governance-artifacts",
          "label": "Architecture Review / Evolution / Governance Artifacts",
          "markdown": "https://banes-lab.com/ontology/principles/architecture-category-architecture-review-evolution-governance-artifacts.md",
          "ref": "chapter:/ontology#architecture-category-architecture-review-evolution-governance-artifacts"
        },
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-category-architecture-review-evolution-governance",
          "json": "https://banes-lab.com/json/ontology/lexicon/lexicon-category-architecture-review-evolution-governance",
          "label": "Architecture Review Evolution Governance",
          "markdown": "https://banes-lab.com/ontology/lexicon/lexicon-category-architecture-review-evolution-governance.md",
          "ref": "chapter:/ontology/lexicon#lexicon-category-architecture-review-evolution-governance"
        },
        {
          "href": "https://banes-lab.com/ontology/schema#the-vocabulary-severity",
          "json": "https://banes-lab.com/json/ontology/schema/the-vocabulary-severity",
          "label": "Severity levels",
          "markdown": "https://banes-lab.com/ontology/schema/the-vocabulary-severity.md",
          "ref": "chapter:/ontology/schema#the-vocabulary-severity"
        },
        {
          "href": "https://banes-lab.com/ontology/schema#the-forces",
          "json": "https://banes-lab.com/json/ontology/schema/the-forces",
          "label": "The forces",
          "markdown": "https://banes-lab.com/ontology/schema/the-forces.md",
          "ref": "chapter:/ontology/schema#the-forces"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "summary": "A defect in which one familiar solution is applied to problems regardless of fit.",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/ontology#architecture-pattern-cargo-cult",
      "json": "https://banes-lab.com/json/records/architecture/pattern-cargo-cult",
      "label": "Pattern Cargo Cult",
      "markdown": "https://banes-lab.com/records/architecture/pattern-cargo-cult.md",
      "ref": "architecture:pattern-cargo-cult"
    },
    "previous": {
      "href": "https://banes-lab.com/ontology#architecture-over-abstraction",
      "json": "https://banes-lab.com/json/records/architecture/over-abstraction",
      "label": "Over-Abstraction",
      "markdown": "https://banes-lab.com/records/architecture/over-abstraction.md",
      "ref": "architecture:over-abstraction"
    }
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/records/architecture",
    "label": "Architecture principles",
    "markdown": "https://banes-lab.com/api/records/architecture.md",
    "ref": "api:records/architecture"
  },
  "aliases": [
    "Law of the Instrument"
  ],
  "exemplar": {
    "after": "const config = FooConfigSchema.parse(yaml.load(rawYaml));",
    "before": "const config = parseFooConfig(runRegexOverEverything(rawYaml));",
    "lang": "ts",
    "medium": "code"
  },
  "formedBy": "Apply a familiar pattern, framework, architecture style, or technology to problems regardless of fit.",
  "scope": [
    "architecture_evolution"
  ],
  "severity": "discouraged"
}
