Y
Hacker News
new
|
ask
|
show
|
jobs
by
withinboredom
830 days ago
There's that. And it also reduces the chance for race conditions:
if ( shouldShow() ) /* state changes here where it should not show */ doShow();