|
|
|
|
|
by valand
2458 days ago
|
|
I meant:
When creating an endpoint, a component, a feature, or a data structure, I treat them like protocol.
Protocols enable other components to do more things while being robust and efficient. It must be, to certain degree, extensible and forward compatible. With that mindset, you're likely going to avoid more trouble in the future, while indirectly enforcing open-closed principle in every level. |
|