Anders Rytter Hansen@rytter.me to Memes@lemmy.ml · vor 3 JahrenThey had avocados rytter.meimagemessage-square3fedilinkarrow-up114arrow-down10file-text
arrow-up114arrow-down1imageThey had avocados rytter.meAnders Rytter Hansen@rytter.me to Memes@lemmy.ml · vor 3 Jahrenmessage-square3fedilinkfile-text
minus-squarePolandIsAStateOfMind@lemmy.mllinkfedilinkarrow-up4arrow-down1·edit-2vor 3 JahrenThat’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·vor 3 Jahren@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 👍