top | item 41840661

(no title)

erickj | 1 year ago

> Not that this matters for this particular tool.

Then the code is perfectly appropriate.

discuss

order

quotemstr|1 year ago

It's a bad example for others and a bad habit to get into. If every program did this, we'd have trouble getting CPUs into deep idle states.

enriquto|1 year ago

It's an irrelevant implementation detail. This is for a live call. You are streaming video at the same time, so there's no point in worrying about idling.

I'd even say that it's a good example for others, because the equivalent code with the event loop would be slightly more complicated (maybe 5 more lines?). Striving for "doing things right" when the wrong thing is perfectly appropriate would be a bad example.