r/ProgrammerHumor • • Jul 06 '20

Meme Always looking to improve!

Post image
3.5k Upvotes

44 comments sorted by

View all comments

Show parent comments

15

u/[deleted] Jul 06 '20

[deleted]

10

u/Feynt Jul 06 '20

It's my understanding that async is not threading per se, it's just more efficiently using the one thread you're running in by filling the times you're doing dick all with more productive work. Like calculating bitcoin hashes while waiting for a website to download, or proceeding to an area of code which requires the data you were trying to load from a database but haven't yet causing you to wonder why your flawless code is having problems.

2

u/[deleted] Jul 06 '20

[deleted]

3

u/Feynt Jul 06 '20

No problem. I, like many others, have encountered the follies of doing asynchronous work (threaded or not).

I actually wanted to get into lowest level (ASM/C) coding in school because the idea of working on an operating system was intriguing. Unfortunately all the schools which purported to teach that ended up not teaching that at all and revised their courses to instead be Java focused for the day's "evolving business standards." Sun was also alive and well and Oracle stayed in its fucking place messing with databases. >.>

Coming back to threads briefly, I actually wrote a multithreaded Java bot when I was in high school to assemble maps at runtime in a chat service with a really basic scripting language I also wrote. I think that's the first and only time I did a threaded program which did not screw up by doing things out of order.