Slide 7
Slide 7 text
Parallell change - supporter
deux versions
export function doSomething(arg1, arg2) {
}
// new method with slightly modified behavior
// no need for synchronising with changes to existing usages
export function doSomethingV2(arg1, arg2, arg3) {
// duplicated logic and tests (or not)
}
app.get('/doSomething', doSomething)
// publish a new route with a new name
app.get('/doSomethingV2', doSomethingV2)
Modification non compatible?
=> créer nouvelle méthode temporairement
Et pourquoi pas au niveau public
ici REST
Quand plus personne utilise l’ancienne version, supprimer