Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Why would he have bought the butter.
It looks like this to me:
buy('butter');
If (hasEggs) buy('eggs', 10); -
My wife has learned that if she sends me to the store package type and quantity matter. She says buy canned corn. She assumes 1 can. Nope, sorry.
qty ||= 2
If nobody gets the ruby reference, if qty not specified default value is 2.
Do you understand why the man bought only 10 eggs? If you don't probably you are at the wrong page.
undefined