this post was submitted on 25 Oct 2024
434 points (97.0% liked)

memes

10261 readers
2982 users here now

Community rules

1. Be civilNo trolling, bigotry or other insulting / annoying behaviour

2. No politicsThis is non-politics community. For political memes please go to !politicalmemes@lemmy.world

3. No recent repostsCheck for reposts when posting a meme, you can only repost after 1 month

4. No botsNo bots without the express approval of the mods or the admins

5. No Spam/AdsNo advertisements or spam. This is an instance rule and the only way to live.

Sister communities

founded 1 year ago
MODERATORS
 
top 11 comments
sorted by: hot top controversial new old
[–] orl0pl@lemmy.world 39 points 2 weeks ago (2 children)
[–] PunchingWood@lemmy.world 19 points 2 weeks ago (1 children)

I frequently had to test other developer's code, the fucking amount of times I heard that shit.

"Your code ain't working"

"It's working for me"

"Well it isn't working for me, did you actually test it"

"Yes"

"On anything else than your own PC?"

"It was working fine for me"

"It fucking isn't, look!"

"..huh"

For fuck sake just take like 1 minute to press on a frikking button to see if it actually does work.

Glad I'm not doing that shit anymore.

[–] ugo@feddit.it 8 points 2 weeks ago* (last edited 2 weeks ago)

Im my defense, I did test it. It was working for me.

But then someone else touched it without understanding it or flipped the truth value returned by one of the functions used by my code without properly fixing the call sites.

Edit: or they had a merge conflict and they don’t know how to correctly resolve those.

[–] shrugs@lemmy.world 7 points 2 weeks ago

That's why they invented docker

[–] candybrie@lemmy.world 9 points 2 weeks ago (1 children)

If it hasn't been tested, it's broken.

[–] shadearg@lemmy.world 6 points 2 weeks ago

Meh. Pedant time.

The first step of every testcase is supposed to fail to ensure a testing framework can fail in the scope of the testcase. In practice nobody acknowledges this, much less incorporates it.

Without, one is forced to concede that the test environment is not sane—and, therefore, no case under test is certifiable—because it cannot be known, for certain, if failure was a possibility.

Nobody cares.

[–] Steamymoomilk@sh.itjust.works 5 points 2 weeks ago* (last edited 2 weeks ago)

Nah haas, if the code is writ by me theres no way it works.

[–] EffortlessEffluvium@lemm.ee 4 points 2 weeks ago

My God! It’s full of heisenbugs!

[–] tdawg@lemmy.world 3 points 2 weeks ago

Reminds me of a joke. The purest functional code is the one that never runs

[–] BonerMan@ani.social 1 points 2 weeks ago

Its just a syso with Loren ipsum but it generates enough output to blow up your PCs RAM

[–] GhiLA@sh.itjust.works 1 points 2 weeks ago

...haven't updated my Arch systems in a while.