Explicit is better than implicit

Prefer explicit code over implicit configuration and magical abstractions. Boilerplate is not bad by nature (code is read more than it is written), but it's an indicator that a good abstraction could be on the horizon.

Examples

  • In some UI libraries, mutation is a mechanism for state updates and rerendering (`user = 'Jane'`), this makes it harder to track which parts of your codebase can make changes to the data and which parts simply reference it. Instead, prefer libraries (like React) with explicit state updating functions (`setUser('Jane')`).