You must log in or # to comment.
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
andfruitStore.stockLemon
instead offruitStore.stockFruit
but I think we all agree that it shouldn’t be that inflexible.