Eggs, sausages and a coder

Wife sends husband, a coder, to the grocery and says "Ok, buy two sausages and if they will have eggs, buy ten".

Coder goes to the shop and asks "Do you have eggs".

"Yes".

"Ok, so I want 10 sausages".