Choose Simple Solutions Over Flexible Ones

https://thinkingsideways.net/code/simplicity-over-flexibility.html

8 points · 1 comments · view on lemmy.world

1 Comments

lowleveldata@programming.dev · 4 pts · 3y

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.