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.

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=“;”

SolanumChillEse , in Colors, localized.

Just started learning French only to find out you need a Bachelor’s in math just to count past 70.

mamarguerat ,
@mamarguerat@discuss.tchncs.de avatar

In Swiss French we say « septante » (70) « huitante » (80) and « nonante » (90) which is better than counting by 20

rclkrtrzckr OP ,

Swiss French doesn’t count as French (like Schwiizerdütsch isch nöd Dütsch)

NounsAndWords , in Colors, localized.

I almost missed the Spanish upsidedown semicolon

csolisr ,

¿Wait what?

jormaig ,

In Spanish we open and close all quotations. Like:

  • ¿Tienes cambio? (do you have change?)
  • ¡Me encanta! (I love it!)
tchotchony ,

I don’t speak Spanish at all, but I really wish more languages would adapt it. It’s so much easier to interpret a sentence knowing it’s meant to be a question or exclamation right from the start.

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

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

esmevane , in What the f*ck is a monad
@esmevane@beehaw.org avatar

A monad is just a monoid in the category of endofunctors. Everyone knows that!

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.

Sotuanduso , in Firewall Alignment Chart

That punchline hit like a tree falling onto a network cable.

Woozy , in The horror

C is the language of the gods. No mortals can be trusted with such power.

pwshguy , in Firewall Alignment Chart
@pwshguy@programming.dev avatar

I’ve actually had an excavator take out my network. I’ve also had networks taken out by forklift, train, and a semi-truck towing three other semi-trucks.

tappyturtle , in xkcd #1987: Python Environment

As a mac user I feel this

thomas , in xkcd #1987: Python Environment

Download ML thing.
make new venv.
pip install -r requirements.txt.
pip can’t find the right versions.
pip install --update pip.
pip still can’t find the right versions.
install conda.
conda breaks for some reason.
fix conda.
install with conda.
pytorch won’t compile with CUDA support.
install 2,000,000GB of nvidia crap from conda.
pytorch still won’t compile.
install older version of gcc with conda.
pytorch still won’t compile.
reinstall the entire operating system with debian 11.
apt can’t find shitlib-1.
install shitlib-2.
it’s not compatible with shitlib-1.
compile it from source.
automake breaks.
install debian 10.
It actually works.
“Join our discord to get the model”.
give up.

AMAMazing ,

This comment gives me ptsd

omalaul ,

It feels like you stood behind me yesterday, taking notes.

HarryEffingPotter ,

thats when you do

/usr/bin/python3.11 -m pip install

mother. fucking. hardcoded paths. 1 step forward, 10 steps backward.

Patch , in Rock Star Developer

“Rock star developer” was originally coined to mean literally the anti-pattern of what you want from a Dev team.

It’s someone who undeniably has plenty of skill, but who also:

  • Has an unbearable ego.
  • Doesn’t work well with others.
  • Doesn’t document or comment their work properly.
  • Refuses to work to other people’s designs.
  • Becomes an enormous key man dependency.

(Or some combination of similar traits).

The fact that recruiters heard the term and thought “hey, rock stars are cool, let’s get as many of those as possible” is hilariously tragic.

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