Essential principles · go deeper
One principle at a time
In the order you decide: first whether to build it, then how simple, then whether it repeats.
YAGNI
Do what you NEED
Who asked for this setting?
Every option costs build, test, docs and support. Build for the requirement you have today, not the one you foresee.
Cost of a setting
YAGNI vs SOLID
4WP Social, 4WP Drive
Read YAGNI →
KISS
Do it SIMPLE
12 classes. For one shortcode.
Simple is not easy. Start with a hook and a function, let WordPress APIs do the work, add structure when the code grows.
block.json
AI over-engineering
4WP Weather, 4WP FAQ
Read KISS →
DRY
Do it ONCE
You copied it. Again.
DRY is about knowledge, not code. One option key in one place, and the rule of three before you extract.
Rule of three
Wrong abstraction
4WP Social, 4WP FAQ
Read DRY →