Optimization is a zero-sum game ⚡
When designing any system or writing any code, you always deal with trade-offs. It is space vs time when we code, it is read vs write latency when we configure databases, etc.
If you think something is a win-win, look deeper because you have to be trading off something to gain the benefits you are getting. Over time, you will become good at spotting these and make good design and implementation decisions.
Remember, you get some, you lose some.
⚡ I keep writing and sharing these engineering nuggets, so if you are keen on learning them, follow along.
youtube.com/c/ArpitBhayani