4 ms·
Suppose you create an API that allows users to enter nonsensical data or do things that are very bad for performance. Later, you realize your mistake, create a
by taffer 5y ago
Suppose you create an API that allows users to enter nonsensical data or do things that are very bad for performance. Later, you realize your mistake, create a new, improved version of your API, and deprecate the old API.
However, as long as you keep the old API for backward compatibility, you will have to deal with nonsensical data and poor performance.
- pjc50 5y agoAnd not keeping the old API around incurs work, potentially a lot, for everyone using the thing - transitively. We've seen this with Python2->3 transition. If the new version isn't backwards compatible (requires non-trivial work to transition), what you've done isn't an upgrade: you've created a new product, and deprecated the old one. As we've seen from Google, people hate it when that happens (how many different eras of deprecated chat app are Google on now?) Other examples: Windows has, on a couple of occasions, attempted architecture transitions. Windows RT was the latest. They've not yet made the leap to ARM, despite having cutdown versions of Windows (CE) running on ARM for something like 20 years. Apple have managed multiple architecture transitions by providing emulators, bridges, "fat binaries" that work across the transition, and a history of being willing to tell both developers and customers to get stuffed if they don't like it.
- selfhoster11 5y agoWindows ARM has an emulation layer for x86 binaries
- jnxx 5y ago> And not keeping the old API around incurs work, potentially a lot, for everyone using the thing - transitively. Not only that, but breaking backwards compatibility will cause dependency conflicts once a dependency graph is a bit larger, and this can easily completely stall transitioning of software to a new version.
- madia_leva 5y agoYou won't have to deal with it. Whomever is using that old API has to deal with it. Their choice. We are talking about an API, not a shared service.
- dagw 5y agoWe are talking about an API, not a shared service. That distinction is becoming a lot blurrier than it used to be as more and more "APIs" now are run as shared services with no option of running them locally.
- madia_leva 5y agoTo be clear: my personal opinion is that Linus' attitude about not breaking user space is the absolutely right one.
- jnxx 5y agoThe possibility of entering nonsensical data does not break old software.