ProgrammerHumor

stillBetterThanARaceConditionIGuess

stillBetterThanARaceConditionIGuess
https://i.redd.it/9gt5002xypcf1.png
Reddit

Discussion

Ireeb
:ts:

For me it's more like "Hello from Thread 19 out of 4"

7 hours ago
ChaosPLus

I had a brief internship at my town hall IT department, I got to see them reinstalling the government software they use for handling people's personal data.

I kid you not, the manual for fixing its issues hundreds of pages long, with half of the pages being custom made by the people in the IT department and their predecessors.

When installing it, it just went progress 4/15... 8/15.... 16/15

1 hour ago
Alexander_The_Wolf
:c:

Damn if this ain't the truth.

8 hours ago
Frinckles

Too real. ADHD meds don't magically fix executive function they just make you hyper-focused on the wrong thread instead of scattered across all of them.

4 hours ago
malexj93
:kt::sc::rust:

At least there's a chance something gets done.

2 hours ago
Mojert OP

Yes but personally I still prefer that. Maybe I'm not getting the right thing done but at least I'm getting something done

1 hour ago
chilfang
:s:

Still better than being unmedicated

1 hour ago
fantastiskelars

Exactly! Lifes better when you can wake up and do amphetamine

1 hour ago
DaHorst

That's why I learned it is so important to start your work while they kick in. Otherwise its pet project/ porn addiction whole day long...

1 hour ago
kuschelig69

I thought ADHD looks like this: https://i.imgur.com/3uyRWGJ.jpeg

7 hours ago
sheptaurus

That’s when you are in “undocumented feature” territory. You never know how you got there, and sometimes don’t know how to leave. And you’re still there at 4am in bed

6 hours ago
EngineerDoge00
:cs::js::msl:

As a Software Engineer and someone with ADD, this shit happens wayyyy to often. Soul reason as to why I have to tell everyone to stop pinging me directly about every small and insignificant question/problem.

5 hours ago
NicroHobak

Soul reason as to why I have to tell everyone...

I believe the normal phrase would be "sole", but I feel this enough that I am just going to upvote with this minor footnote.  It usually feels like a "soul reason", I hear you...lol.

3 hours ago
GoldenShackles

To me that's more what extreme focus looks like, until interrupted.

6 hours ago
Neuro-Byte

More or less except it never stays on the same topic. Like you’d think I’m in a blackhole about the existential necessity of the c==‘,’ statement, but nah I’m in a blackhole of tangents and now thinking about the nature of language and the origin of the “c” sound.

I probably figured out the original problem somewhere in the tangents, but now it’s too late. I kept taking tangents, it got overwritten in my short term memory, and now it’s lost forever. At least until the blackhole of tangents somehow leads me back to that specific tangent lol

5 hours ago
gbot1234

Some people say that “c” doesn’t really have a definitive sound though—is it just a quantum superposition of “k” and “s”?

3 hours ago
Widmo206
:gd::py:

is it just a quantum superposition of “k” and “s”?

and ts

1 hour ago
Mojert OP

A little bit. But you don't need help to get distracted, you do it on your own like a professionalTM

1 hour ago
MoonliitSoul

sounds like a bug's life

7 hours ago
JotaRata
:py:

Pixar in 1998:

Say that again

5 hours ago
Harmonic_Gear
:cs::m::py:

i really need to get diagnosed

4 hours ago
Mojert OP

If you feel like you might have it, I can only recommend it.

1 hour ago
AnonomousWolf

I have it, and quite badly 😅 never been diagnosed.

It really fucks with my life, but some how I function well enough, I'm scared to try meds

18 minutes ago
Mojert OP

What scares you about them?

11 minutes ago
OnixST
:j::kt:

I feel like unmedicated adhd should have more threads racing

7 hours ago
Mojert OP

To be fair it had to fit on a phone screen

1 hour ago
AndreLinoge55
:sw:

This post reduced the efficacy of my Adderall

4 hours ago
Pdan4
:cp:

To anyone experiencing this - according to what friends have said about their experiences dealing with this, you may not be on the right medication if you're feeling bogged down and you might wanna try others. Best of luck.

2 hours ago
Zeznon

me_irl

6 hours ago
ivanrj7j

I get the threading part but can someone explain the adhd part of the joke?

3 hours ago
lonestar-rasbryjamco

The ADHD joke is the race condition on line 2.

Having ADHD often means random thoughts just invade and throw things off, disrupting your rhythm unless you apply significant effort and mindfulness to stay on track.

It’s a lot like a race condition in an asynchronous system: unexpected inputs disrupt the flow, and if you're not careful, the whole thing breaks down.

I’d also argue it’s not like multithreading, where multiple processes run in parallel. The human brain just doesn’t work that way. It’s more like a single-threaded asynchronous system with constant context switching

3 hours ago
secret_green_link

Is JavaScript the ultimate ADHD programming language then?

2 hours ago
Mojert OP

Badly written Javascript is

1 hour ago
Sibula97

Multithreading (and all processing unless the total number of threads running on the whole machine is equal to or below the number of cores) does use context switching, but yes.

As for the allegory, I'd add that randomly some thread(s) will get its priority bumped way up and it'll prevent important system processes like "eating" and "sleeping" from happening on time.

1 hour ago
DaHorst

I's also say ADHD brain is more like a stack (with sometimes randomly discarding frames in between) while it should be a queue.

1 hour ago
lunarsythe

You're lucky the meds work on you, am autistic with add, none them meds do shit for me, conserta, Ritalin, you name it, I've probably tried it :(

2 hours ago
Mojert OP

Feels bad man

1 hour ago
fantastiskelars

Dextroamf worked wonders for me

1 hour ago
Wicam
:cp:

dont forget the lock that is being held by one of the threads that has just gone to sleep, so nothing is happening.

or that your stack space (short term memory) is less than half the size of normal for some reason.

1 hour ago
lonelyroom-eklaghor
:c::j::py::re:

That's so damn sad

6 hours ago
pinktieoptional

Well.... aderall with a fastpaced job I'm passionate about might have single thread days. But others? More threads more fun.

4 hours ago
AkrinorNoname

But at least you're able to push the button that starts the program.

3 hours ago
ProjectCleverWeb

For me, it more like this...

Unmedicated:

Hello from thread 1 of 4. You have gained 1 bonus thread.

Hello from thread 5 of 5. I cleared the other threads for you to make room for the threads I would like to spin off.

Medicated:

Hello from thread 1 of 4.

Hello from thread 3 of 4.

Hello from thread 2 of 4.

Hello from thread 4 of 4.

Hey it's your bonus thread again, I am g-- // SIGKILL from thread 1, it wants to finish first

// 30 min later

Hello from thread 1 of 4 - now lets REALLY focus on how to build the best Balatro deck

1 hour ago
Emotional-Top-8284

Maybe, but the timeout is set to 16 hours instead of 45 seconds

4 hours ago
NyxSpies

lol so accurate! My brain feels like it's trying to process 404 threads at once, not found 😂😂 #ProgrammerLife

6 hours ago
kohuept

least obvious bot account

3 hours ago
Sibula97

Unfortunately not. See this case for example: https://www.reddit.com/r/changemyview/comments/1k8b2hj/meta_unauthorized_experiment_on_cmv_involving/

1 hour ago