# Golden Hammer

> A defect in which one familiar solution is applied to problems regardless of fit.

Record: `architecture:golden-hammer`
Kind: anti-pattern
Layer: [Enforcement Core](https://banes-lab.com/records/layer/enforcement-core.md)
Severity: discouraged
Scope: architecture_evolution
Canonical: https://banes-lab.com/ontology#architecture-golden-hammer

Listed in [Architecture principles](https://banes-lab.com/api/records/architecture.md), after [Over-Abstraction](https://banes-lab.com/records/architecture/over-abstraction.md) and before [Pattern Cargo Cult](https://banes-lab.com/records/architecture/pattern-cargo-cult.md).

## Repair

- Refactored by: force_analysis, tradeoff_matrix, ADR_with_alternatives, contextual_pattern_selection
- Detected by: same_pattern_everywhere, solution_precedes_problem, ADR_missing_alternatives, high_workaround_count
- Violated by: Apply a familiar pattern, framework, architecture style, or technology to problems regardless of fit.
- Measured by: decisions recorded without alternatives
- Enforced by: decision records that require alternatives and the forces they answer

## Severity

- [discouraged](https://banes-lab.com/records/vocabulary/severity-discouraged.md)

## Category

- [Anti-patterns](https://banes-lab.com/records/architecture-category/anti-patterns.md)

## Force

- [Architecture evolution](https://banes-lab.com/records/force/architecture-evolution.md)

## Negated by

- [First-Principles Design](https://banes-lab.com/records/architecture/first-principles-design.md)

## Linked from

- [Proxies give way](https://banes-lab.com/disciplined-methodology/ship/when-not.md)
- [Seven controls, seven classes](https://banes-lab.com/software-architecture/decay/seven-controls-seven-classes.md)
- [Anti-patterns](https://banes-lab.com/ontology/principles/architecture-category-anti-patterns.md)
- [Architecture Review / Evolution / Governance Artifacts](https://banes-lab.com/ontology/principles/architecture-category-architecture-review-evolution-governance-artifacts.md)
- [Severity levels](https://banes-lab.com/ontology/schema/the-vocabulary-severity.md)
- [The forces](https://banes-lab.com/ontology/schema/the-forces.md)
