▲ | gitremote 3 days ago | |
I don't think the author meant they don't include /v1 in the endpoint in the beginning. The point is that you should do everything to avoid having a /v2, because you would have to maintain two versions for every bug fix, which means making the same code change in two places or having extra conditional logic multiplied against any existing or new conditional logic. The code bases that support multiple versions look like spaghetti code, and it usually means that /v1 was not designed with future compatibility in mind. | ||
▲ | account42 a day ago | parent [-] | |
If you really care about maintaining v1 long-term you'd re-implement it as a small shim above v2. |