Why I always keep doing it...

576 points · 67 comments · view on lemmy.world

67 Comments

copacetic@discuss.tchncs.de · 120 pts · 134d (5 replies)

xkcd 242 obviously

Rhaedas@fedia.io · 27 pts · 134d (2 replies)

I feel called out. I'm not sure which way I'd go.

SpaceNoodle@lemmy.world · 28 pts · 133d (1 reply)

Get somebody else to pull it.

0ops@piefed.zip · 20 pts · 133d

For science.

Absolute_Axoltl@feddit.uk · 9 pts · 133d

Me playing point and click games

diabetic_porcupine@lemmy.world · 5 pts · 132d

You know what this is based AF because if you don’t do it a second time how would you know if it wasn’t a weird edge case or a race condition or maybe you just didn’t internalize the cause and effect because you weren’t looking for it until a bug appeared

rumschlumpel@feddit.org · 49 pts · 134d (7 replies)

But sometimes it works, or throws a different error ...

einkorn@feddit.org · 41 pts · 134d (2 replies)

And a different error means progress!

SpaceNoodle@lemmy.world · 13 pts · 133d (1 reply)

A different error each time?

einkorn@feddit.org · 4 pts · 133d

I refer to @floofloof@lemmy.ca comment.

floofloof@lemmy.ca · 18 pts · 133d (1 reply)

When it does a different crazy thing every time and you have no idea why, it means you're a genius and have created life.

littleomid@feddit.org · 2 pts · 133d

Or you’re coding in C.

idunnololz@lemmy.world · 6 pts · 133d

Actually tru. Damn preprocessors.

atopi@piefed.blahaj.zone · 5 pts · 133d

you have to check if you are dealing with a bug or with a ghost

Blackmist@feddit.uk · 32 pts · 133d (2 replies)

You make a change. It doesn't fix it.

You change it back. The code now works.

zerobot@lemmy.wtf · 11 pts · 133d

the real fix was the journey, the destination never mattered

MummifiedClient5000@feddit.dk · 2 pts · 133d

The code now works breaks in a new way.

DahGangalang@infosec.pub · 24 pts · 134d (1 reply)

The usual for me is that I flip back over to my editor and hit ctrl+save, cause heaven forbid I ever remember to do that before running.

jtrek@startrek.website · 8 pts · 133d

I have no regrets from setting my editor to save-on-blur

sleepmode@lemmy.world · 22 pts · 133d (1 reply)

Trying to debug race conditions be like

verdare@piefed.blahaj.zone · 10 pts · 133d

Yuuup… Debugging concurrent code is a bitch.

TabbsTheBat@pawb.social · 21 pts · 134d (1 reply)

The first one is to warm up the engine. Like getting your car ignition to kick over in the winter

WanderingThoughts@europe.pub · 7 pts · 133d

and sometimes that's exactly what's needed. Services wake up, connections get established and then when you try again things are up and it works.

Kolanaki@pawb.social · 18 pts · 133d (1 reply)

Code doesn't work; don't know why.

Code works; don't know why.

Skullgrid@lemmy.world · 5 pts · 133d

Cargo Cult Programming is bad.

schema@lemmy.world · 15 pts · 133d (1 reply)

The absolute worst thing that can happen is if it suddenly starts working without doing anything

Ravel@sh.itjust.works · 8 pts · 133d

Sweet, push to production.

endless_nameless@lemmy.world · 14 pts · 133d

The error message goes stale when it's been sitting for a while. I need to see a fresh one.

Hisse@programming.dev · 12 pts · 134d

You know, youve gotta give your computer some warmup.

abcdqfr@lemmy.world · 12 pts · 134d (1 reply)

Not sure which is worse. When you know you changed nothing and it inexplicably starts|stops working compared to yesterday

Rhaedas@fedia.io · 12 pts · 134d

Far worse, and this applies to more than programming. If something is broken, I want it to be consistent. Don't fix yourself, or sort of work but have a different effect. Break, and give me something to figure out, damn it.

marcos@lemmy.world · 12 pts · 134d

Running the code again is fast and requires no thinking. Finding the problem is slow and requires a lot of thinking.

It's worth looking under the light-post in case your keys somehow rolled there. Just not for long.

MsPenguinette@lemmy.world · 12 pts · 133d (2 replies)

You jest but “wait and retry” is such a powerful tool in my DevOps toolbox. First thing I tell junior engineers when they run across anything weird

marlowe221@lemmy.world · 6 pts · 133d

Honestly, in DevOpS, when you’re running stuff in a GitHub Action/Azure DevOps Pipeline/Jenkins, yeah… sometimes a run will fail for no obvious reason.

And then work the next time (and the next 100+ times after that) when you haven’t changed a damn thing.

blarghly@lemmy.world · 2 pts · 133d

"Maybe if we ignore the problem, it will go away"

sunbeam60@feddit.uk · 10 pts · 132d (1 reply)

Ah, come on this is valid investigation.

If you get the same error every time, you know you can find it and debug it, somewhat with ease.

If you don’t, you might have a thornier issue at hand.

SleeplessCityLights@programming.dev · 2 pts · 131d

I hate how stupid and obvious this is, but we all do it at least once if the compile is short. But with a 20 min compile, I am investigating.

sbv@sh.itjust.works · 9 pts · 133d

Computer needs practice to get program right.

ChickenLadyLovesLife@lemmy.world · 9 pts · 133d

I started coding professionally using Visual Basic (3!). Everybody made fun of VB's On Error Resume Next "solution" to error handling, which basically said if something goes wrong just move on to the next line of code. But apparently nobody knew about On Error Resume, which basically said if something goes wrong just execute the offending line again. This would of course manifest itself as a locked app and usually a rapidly-expanding memory footprint until the computer crashed. Basically the automated version of this meme.

BTW just to defend VB a little bit, you didn't actually have to use On Error Resume Next, you could do On Error Goto errorHandler and then put the errorHandler label at the bottom of your routine (after an Exit Sub) and do actual structured error handling. Not that anybody in the VB world ever actually did this.

rem26_art@fedia.io · 8 pts · 133d

gotta rule out cosimc rays flipping a bit or two

JakenVeina@midwest.social · 8 pts · 134d

This would be more mockable if it didn't often WORK.

kubica@fedia.io · 7 pts · 133d

Just making sure that the write buffer was flushed or something.

grue@lemmy.world · 6 pts · 133d

When your Makefile is so fucked up that you have to run it multiple times to get everything to build and link properly.

zerobot@lemmy.wtf · 6 pts · 133d

sometimes it needs to warm up.. or cool down

RustyNova@lemmy.world · 6 pts · 134d

And run it with the debugger.

Alberat@lemmy.world · 2 pts · 132d

sometimes you don't compile it enthusiastically enough

JATothrim_v2@programming.dev · 2 pts · 133d

demons ahem. data-races.

Shaker_dev@programming.dev · 2 pts · 132d

Because you're Good developer

lastunusedusername2@sh.itjust.works · 2 pts · 133d

This is just how you use Visual Studio

Skullgrid@lemmy.world · 1 pts · 133d (4 replies)

Or the code you are working on is calling a system that is currently unreliable which you cannot be responsible for.

Fuck test automation, it's a fucking trap get out of it as soon as you can

jtrek@startrek.website · 3 pts · 133d (3 replies)

Fuck test automation, it’s a fucking trap get out of it as soon as you can

lol.

Meanwhile, the org I work at has no test automation, so things that should be trivial require hours of tedious, error-prone, manual testing. Also they break stuff and don't find out until after it's merged.

Skullgrid@lemmy.world · 1 pts · 133d (2 replies)

This post has appeared in multiple places. It's useful , but it ruins the development career potential of people that stick with it, because any subsequent job application just sees "TESTER" and not "DEVELOPER" and bars you from changing specialization.

jtrek@startrek.website · 1 pts · 133d (1 reply)

I've known several people who moved from QA and testing to developer roles, but usually as an internal transfer.

Most recruiters and management don't know shit about fuck when it comes to technical details, so it's not surprising a lot of them think "Oh the guy who knows how software works and how to handle edge cases? No, we don't want him"

Skullgrid@lemmy.world · 1 pts · 133d

moved from QA and testing to developer roles, but usually as an internal transfer.

yeah. My current company botched mine.

masterspace@lemmy.ca · 1 pts · 133d
vrighter@discuss.tchncs.de · 1 pts · 132d

does it count if i run it again, but with a debugger attached?

meekah@discuss.tchncs.de · 1 pts · 132d

This genuinely happens regularly in our testing environment 🥲

epyon22@sh.itjust.works · -3 pts · 133d (9 replies)

Most applications aren't written to compile deterministically so there is always a chance.

CookieOfFortune@lemmy.world · 3 pts · 133d (8 replies)

Compile? Is that true? Pretty sure compilers are generally deterministic in their output.

epyon22@sh.itjust.works · 1 pts · 132d (7 replies)

Mainly making a joke that they aren't binarialy deterministic. Semantically they are though. https://blog.onepatchdown.net/2026/02/22/are-compilers-deterministic-nerd-version/

CookieOfFortune@lemmy.world · 1 pts · 132d (6 replies)

Hmmm would most code these days be compiled into minified JavaScript? That might be more deterministic.

epyon22@sh.itjust.works · 1 pts · 132d (5 replies)

JavaScript is what is called an interpreted language there is no compiling at all the code is directly read and interpreted at runtime. Most of the time it's minified which reduces the size. Or in the case Vue React or Angular is transpiled which still results in JavaScript code but framework specific syntax is broken out and it's ran through bable to do backwards compatibility for older browsers.

CookieOfFortune@lemmy.world · 1 pts · 132d (4 replies)

Isn’t Typescript compiled into JavaScript?

epyon22@sh.itjust.works · 1 pts · 131d (3 replies)

Technically transpiled. Compiling results in something binary.

CookieOfFortune@lemmy.world · 1 pts · 131d

No a compiler just translates from one language into another. Transpilers are a type of compiler.