Until the deprecated function is removed from the API?

When an API developer, such as Microsoft, Apple, or me, announces that an API function has expired, how long does it take for an API developer to remove this function from the API?

From another perspective, how long should an API user have to have refactoring code after an API function is marked deprecated?

+4
source share
3 answers

If you upgrade from version A to B, you must immediately remove the deprecated methods. If you do not know that you will not need a later version, you can save what works. But like every problem, the sooner you take them, the easier it will be.

It’s usually easy enough to change the legacy code from version A to B, but if you cumulate modifications, it will be a nightmare

+1
source

Once you find APIs marked as deprecated, you should start looking for updates to your software to replace them with deprecated methods. If you continue to use them, you risk that your software will not work on newer versions. This is normal if you never plan to upgrade, as evidenced by the many Win 3.1 software that is still in use. However, if you intend to maintain software or release new versions, you should update it as soon as possible.

+1
source

Typically, an API never removes functions because some programs will be useless if they rely on a particular method. But if the method is honestly useless or contains many errors, they delete it after two or three updates.

0
source

Source: https://habr.com/ru/post/1401021/


All Articles