[keyword] Write Everything Twice (WET)

[antipattern] Write Everything Twice (WET) (because "we enjoy typing")

HOT TIP: this content is flagged as highly recommended !
Wikipedia quotes

In software engineering, don't repeat yourself (DRY) is a principle of software development aimed at reducing repetition of information of all kinds, especially useful in multi-tier architectures. The DRY principle is stated as "Every piece of knowledge must have a single, unambiguous, authoritative representation within a system." ..


DRY vs WET solution

Violations of DRY are typically referred to as WET solutions, which is commonly taken to stand for either "write everything twice", "we enjoy typing" or "waste everyone's time".

Source: Wikipedia: Don't repeat yourself, DRY vs WET solutions Version date: 2016-04-21

PLEASE READ TOP-TO-BOTTOM: This is an example of Writing Everything Twice (WET) code in typical Drupal-style, taken from the Current posts module example at Creating modules - a tutorial: Drupal 7.x:

Subscribe to RSS - Write Everything Twice (WET)