News for hackers. Stuff that matters.
Re:Async Queue – One of My Favorite Programming Interviews (... by MrDarcy on Monday July 07, 2025 @09:06AM (#44489995)
I believe you that this works, but I can’t easily read or comprehend it without considerable effort, so I’d grade it below a solution I could.
Re:Async Queue – One of My Favorite Programming Interviews (... by gloosx on Monday July 07, 2025 @10:56AM (#44491061)
If this is given in Javascript, I'd rate the promise solution higher since a Javascript job involves a ton of promisified async code like this. If this is given in C or pseudo-code, then for sure a good ol stack+flag+loop is looking good enough.
Re:Async Queue – One of My Favorite Programming Interviews (... by craftkiller on Wednesday July 09, 2025 @01:05PM (#44512418)
> without considerable effort

Are you sure? I'm not a javascript programmer and it took less than 2 minutes to comprehend. If you think this takes considerable effort to comprehend then I don't think you actually tried.