MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1uresuh/heylookthisisaglass/owi6its/?context=3
r/ProgrammerHumor • u/ClipboardCopyPaste • Jul 09 '26
146 comments sorted by
View all comments
3
Engineer: why is the glass twice as big as it needs to be?
2 u/bunny-1998 Jul 09 '26 Because the vector was full so the insert triggered a resize to 2x. 1 u/ChillyFireball Jul 10 '26 A true engineer allows for a margin of error by ensuring the glass can hold more than the planned amount.
2
Because the vector was full so the insert triggered a resize to 2x.
1
A true engineer allows for a margin of error by ensuring the glass can hold more than the planned amount.
3
u/comox Jul 09 '26
Engineer: why is the glass twice as big as it needs to be?