Anders Rytter Hansen@rytter.me to Memes@lemmy.ml · 2 years agoThey had avocados rytter.meimagemessage-square3fedilinkarrow-up114arrow-down10file-text
arrow-up114arrow-down1imageThey had avocados rytter.meAnders Rytter Hansen@rytter.me to Memes@lemmy.ml · 2 years agomessage-square3fedilinkfile-text
minus-squarePolandIsAStateOfMind@lemmy.mllinkfedilinkarrow-up4arrow-down1·edit-22 years agoThat’s a basic programming joke Normal people using common syntax would understand it like that: “Get a gallon of milk, and if they have avocados, get 6 avocados” But in programming it would be: “Get a gallon of milk, if a condition “they have avocados” is true, get 6 gallons of milk instead”
minus-squareAnders Rytter Hansen@rytter.meOPlinkfedilinkarrow-up2·2 years ago@10_0 @PolandIsAStateOfMind Very good explanation 👍
I don’t get it
That’s a basic programming joke
Normal people using common syntax would understand it like that: “Get a gallon of milk, and if they have avocados, get 6 avocados”
But in programming it would be: “Get a gallon of milk, if a condition “they have avocados” is true, get 6 gallons of milk instead”
@10_0 @PolandIsAStateOfMind
Very good explanation 👍