To wrap up: You should always strife for the least amount of flexibility
There should be a reasonable amount of flexibility. In the example you can reduce flexibility by having fruitStore.stockLime and fruitStore.stockLemon instead of fruitStore.stockFruit but I think we all agree that it shouldn't be that inflexible.
1 Comments
lowleveldata@programming.dev · 4 pts · 3y
There should be a reasonable amount of flexibility. In the example you can reduce flexibility by having
fruitStore.stockLimeandfruitStore.stockLemoninstead offruitStore.stockFruitbut I think we all agree that it shouldn't be that inflexible.