Hacker News new | ask | show | jobs
by croo 2468 days ago
I nodded along expect the last one. What do you mean by thinking protocol over data?
1 comments

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.