Open Closed Principle vs YAGNI
YAGNI - You ain't gonna need it means that we don't need to introduce any [[abstraction]]s until we really need them.
- YAGNI - You ain't gonna need it beats Open-Closed Principle in case of [[private API]]s
- Open-Closed Principle beats YAGNI - You ain't gonna need it in case of [[public API]]s