A wife tells her programmer husband: “Go to the store and buy a gallon of milk. If they have eggs, get six.”
He comes back with six gallons of milk. When she asks why, he replies: “They had eggs".
A wife tells her programmer husband: “Go to the store and buy a gallon of milk. If they have eggs, get six.”
He comes back with six gallons of milk. When she asks why, he replies: “They had eggs".
He’s safe if he works in MATLAB or other languages that use one-based indexing. He’s a dead man if she works out most lists are zero-based.
I work in Lua. I always start my tables on ‘dinosaur’
He’ll make sure until death that his wife doesn’t figure that out.