How To Deprecate APIs the Right Way

<p>The only certainty in software development is that requirements change.</p> <p>How many times has this happened to you? You start a project, develop an app to satisfy the requirements, release it, and everyone is happy. The product manager comes back and asks to add a new feature. Suddenly, you have to pass an extra parameter or change the name of a property. You make the change, and other parts of the app start erroring, even parts handled by other teams.</p> <p>Whether you are working on a library, a framework, or even just a module of an app, you need to be considerate of all of its possible consumers. If you introduce a breaking change, you must give your users the time and tools to adjust their code.</p> <p><a href="https://betterprogramming.pub/how-to-deprecate-apis-the-right-way-371c1cbf1723"><strong>Website</strong></a></p>
Tags: Deprecate APIs