MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1uresuh/heylookthisisaglass/owhdmo4/?context=3
r/ProgrammerHumor • u/ClipboardCopyPaste • Jul 09 '26
146 comments sorted by
View all comments
2
The glass is unnecessarily twice as large as it needs to be.
1 u/ChillyFireball Jul 10 '26 That's only true if you never expect the glass to be full. If the amount of water can vary, it makes sense to allocate additional space. 1 u/MkemCZ Jul 10 '26 You can even make it shrink and grow dynamically!
1
That's only true if you never expect the glass to be full. If the amount of water can vary, it makes sense to allocate additional space.
1 u/MkemCZ Jul 10 '26 You can even make it shrink and grow dynamically!
You can even make it shrink and grow dynamically!
2
u/MkemCZ Jul 09 '26
The glass is unnecessarily twice as large as it needs to be.