June 2020
Intermediate to advanced
432 pages
11h 57m
English
When branching by abstraction, you are not keeping two versions of your code side by side using branches, but you keep them side by side in your code base. For example, when you want to change the implementation of a class called FoodClassifier, which implements the IFoodClassifier interface, you go through the following steps:
At this point, your changes should look like this:
public class FoodClassifier : IFoodClassifier{ public FoodClassification Classify(Food food) { // Unchanged classification algorithm } }public class FoodClassifierToBeRemoved ...Read now
Unlock full access