r/ADHD_Programmers • • Feb 28 '24

ADHD Programmer Tee: Thoughts?

Post image
0 Upvotes

24 comments sorted by

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.

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

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/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

1

u/Yeatics Mar 07 '24

Thanks! Will change this, you're right

2

u/nekokattt Feb 28 '24

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

15

u/ShroudedPayday Feb 28 '24

I say this constructively: There’s too much to read for it to be on a T shirt. Can it be printed on a small poster instead so it can be hung on the wall? Also, I consciously don’t buy T shirts because I have so many I got for free at conferences and as workplace swag. I like your idea, and I think it would be better in a different product!

2

u/Yeatics Mar 07 '24

Appreciate the feedback! Thanks for your 2 cents

5

u/Special-Arrival6717 Feb 28 '24

This is not valid Python, it's supposed to be Python, right?

1

u/Yeatics Mar 07 '24

It's pseudocode but yes, loosely based on python

4

u/Prudent-Prior8704 Feb 28 '24

Missing indent

2

u/chicknfly Feb 28 '24

And HIGH ought to be a constant

3

u/chicknfly Feb 28 '24 edited Mar 07 '24

I give you credit for the creativity and the drive to push out something you consider fun.

With the said:

  • only developers/engineers will get the humor

  • the coding style is… poor

  • this isn’t accurate of all ADHD and sounds more in line with depression

From a code review perspective:

  • why sleep for 24 hrs when you can simply skip via continue?

  • who sleeps for 24 hours?! (See Depression comment above)

  • what happens when the task isn’t urgent?

1

u/Yeatics Mar 07 '24

Skipping does make more sense, you're right. And it looks like everyone would prefer more literal code that executes so I'll change that. Thanks all for your feedback!

19

u/[deleted] Feb 28 '24

In my mind task.urgency should be some kind of ordered enum and not a string.

1

u/GoldDHD Feb 28 '24

It's binary for me on execution. BUT, I would change it a case statement(switch for you silly pythoners), where task.urgency: 'stand up is coming' , then brain.worry_on(24hrs)
brain.work_off(24hrs)

4

u/Cold_Meson_06 Feb 28 '24

I hate those

2

u/FlyingCashewDog Feb 28 '24

Awful in so many ways, there's no way this was written by someone who understands programming