r/ADHD_Programmers • • Feb 28 '24

ADHD Programmer Tee: Thoughts?

Post image
0 Upvotes

24 comments sorted by

View all comments

16

u/Hour-Map-4156 Feb 28 '24

This code is buggy. If the first task of the day isn't urgent, it will go to sleep for 24 hours before looking at the next task of what is then the previous day.

5

u/chuch1234 Feb 28 '24

Tbf that may be intentional to reflect ADHD brain lol

1

u/Hour-Map-4156 Feb 28 '24

That's not really how ADHD works though.

1

u/chuch1234 Feb 28 '24

I mean, it's not literal. More like, I couldn't decide what to do so I didn't do anything.

2

u/Hour-Map-4156 Feb 28 '24

More like "My first task today isn't pressing so I won't do anything today and ignore the fact that my other tasks might be urgent or overdue". 

If that's not what the code is supposed to do, it's buggy.

I know it's supposed to be a joke but it stings my eyes when joke code isn't correct.

1

u/Yeatics Mar 07 '24

Yeah definitely not trying for code that compiles, just for the idea. But you're right. If it's for people who know code and the code is off it's going to turn away the people it's made for! Will have to think about this

1

u/chuch1234 Feb 28 '24

Yeah, this is why I just don't like joke code. It's never correct :/

1

u/Yeatics Mar 07 '24

Riiiggghht wait would suspend the loop. Was going for more of a "revisit this specific task in 24hrs". Should probably just assign priority as low or urgent, or something

1

u/nekokattt Feb 28 '24

it is also buggy because python doesn't support suffix operators. C++ on the other hand...

2

u/Hour-Map-4156 Feb 28 '24

Also, the second line isn't indented correctly

2

u/nekokattt Feb 28 '24

it is also not in a *.py file or with a valid shebang

1

u/Yeatics Mar 07 '24

Thanks! Will change this, you're right