Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Write Everything Twice (WET)

Write Everything Twice, WET, is a principle of software development aimed at reducing abstraction levels and decoupling code.

The basic idea is that centralizing pieces of code, just because they are the same, leads to extra abstraction layers, that end up counter productive. It is more reasonable to duplicate code as needed, and review what parts of the code are truly shared before centralizing them.

This principle’s nemesis is DRY: Don't Repeat Yourself.

Documentation

See Also