There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

programmer_humor

This magazine is from a federated server and may be incomplete. Browse more on the original instance.

Brisolo32 , in rule

I feel the need of putting a while(false) in my codebase now…

msage , in The sad truth about Twitter’s rate limit

I usually only read, so youtube is a no-go for me :(

KnorrFG , in What we really mean

IMHO it’s a complex, temporary work around with a few issues.

Also vim > emacs

magmaus3 , in What we really mean
@magmaus3@szmer.info avatar

ESC + :q!

ESC to enter normal mode (if you’re in a different mode like insert) : (colon) to enter commands q to quit ! (or a) to use the quit command withiut keeping any changes

sci ,

He’s speaking the language of the gods…

Lifter ,

ESC + (shift) ZZ is faster and also saves your changes!

rikudou , in 8 hobbits = ?

Now do kilohobyte.

rpj , in It gets better the longer it runs

Wow, a neural network!

Xylight , in It gets better the longer it runs

How long would this have to run for it to round up to 100%?

ShrimpsIsBugs , in My prof can meme fr

I can physically feel the pain in the first one

fmstrat , in You know who you are

Don’t forget the ARM64 to AMD64 conversion.

average650 , in It gets better the longer it runs
@average650@lemmy.world avatar

Why not just test all even numbers greater than 2? It covers infinite numbers and passes 100% of the time.

PalmTreeIsBestTree , in Colors, localized.

I don’t how you teach basic counting at a young age in French without learning higher grade level math.

Kiwy ,
@Kiwy@sh.itjust.works avatar

Joke aside, it’s not taught as 4 × 20 +10 but simply “90 is pronounced quatre-vingt-dix” — which kinda is a mouthful, but you rarely count to 90 as a kid anyway.

PastorHaggis ,
@PastorHaggis@lemmy.world avatar

Sounds like you were just a quitter. I counted to 100 all the time to show off.

Lmaydev ,

I’m counting to 100 right now, fight me!

Wander , in Colors, localized.
@Wander@yiffit.net avatar

//German

Farbe=“;”

joneskind , in Colors, localized.
@joneskind@lemmy.world avatar

As a French, I understand this post and it hurts because it’s true.

Beanie , in The customer is always right. 🪞

I suppose it would be possible if you surreptitiously turned on their webcam and used the output of that in place of where they would want the mirror

kylxbn , in The oldest joke in programming history
@kylxbn@iusearchlinux.fyi avatar

For a serious reoly, I think the expression “If they have eggs, buy two” is redundant. If they didn’t have eggs, the kid just can’t and won’t buy any eggs.

I think the proper command would be, “Please buy 1 bottle of milk and two eggs.” That way, the kid won’t be confused and it’s still a proper valid command.

Unfortunately though, the sentence is ambiguous even to non-programmers. It is unknown whether the if condition applies to

  • buying two eggs (buy two eggs)
  • buying two bottles of milk (buy two bottles instead)
  • or buying a bottle of milk (buy another bottle)

Simply because they didn’t specify which to buy.

For a non-serious reply,


<span style="color:#323232;">cart.add(supermarket.takeProduct(ProductType.milk, 1));
</span><span style="color:#323232;">
</span><span style="color:#323232;">if (supermarket.getProduct(type: ProductType.eggs).length > 0) {
</span><span style="color:#323232;">    cart.add(supermarket.takeProduct(Product type.milk, 2));
</span><span style="color:#323232;">}
</span><span style="color:#323232;">
</span><span style="color:#323232;">cart.checkout();
</span>

The kid should have bought a total of 3 bottles.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines