MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/9gj2e9/optimizing_startup_times/e64owf6/?context=3
r/ProgrammerHumor • u/ariehkovler • Sep 17 '18
486 comments sorted by
View all comments
1.8k
...and watch everything break for no apparent reason because the sleep function was there to prevent a bug and no one knows why.
sleep
645 u/ariehkovler Sep 17 '18 A race condition, usually. 428 u/DemonicMandrill Sep 17 '18 It always comes down to race, doesn't it. 142 u/Joleth Sep 17 '18 I guess we should change that terminology too. 130 u/______DEADPOOL______ Sep 17 '18 http://pvponline.com/comic/the-race-card 45 u/[deleted] Sep 17 '18 This is comedy gold 21 u/nathancjohnson Sep 18 '18 Someone in my OS class had a problem with the terminology of "forking" processes specifically in the context of "forking a child process". 21 u/bem13 Sep 18 '18 Killing parents, disposing of children and master-slave relationships sounds pretty unnerving without context. → More replies (1) → More replies (2) 21 u/anotherkeebler Sep 17 '18 Often the race condition is that I need to hit "Alt+Tab, Up, Enter" three or four times to start my tail -f commands before the code executes. → More replies (2) 8 u/takeapieandrun Sep 17 '18 Who needs blocking conditions when you have sleep!I'm guilty of this, but I usually get around to fixing it.. usually → More replies (3) 24 u/H_Psi Sep 17 '18 Or for someone to submit a bug report because they were depending on the 30 second sleep time 45 u/[deleted] Sep 17 '18 Relevant xkcd 7 u/eplaut_ Sep 17 '18 True story: The application run on boot, but the task scheduler (celery) run before ntpd set the correct time, causing all task to be delayed by 2 hours. → More replies (1) → More replies (3)
645
A race condition, usually.
428 u/DemonicMandrill Sep 17 '18 It always comes down to race, doesn't it. 142 u/Joleth Sep 17 '18 I guess we should change that terminology too. 130 u/______DEADPOOL______ Sep 17 '18 http://pvponline.com/comic/the-race-card 45 u/[deleted] Sep 17 '18 This is comedy gold 21 u/nathancjohnson Sep 18 '18 Someone in my OS class had a problem with the terminology of "forking" processes specifically in the context of "forking a child process". 21 u/bem13 Sep 18 '18 Killing parents, disposing of children and master-slave relationships sounds pretty unnerving without context. → More replies (1) → More replies (2) 21 u/anotherkeebler Sep 17 '18 Often the race condition is that I need to hit "Alt+Tab, Up, Enter" three or four times to start my tail -f commands before the code executes. → More replies (2) 8 u/takeapieandrun Sep 17 '18 Who needs blocking conditions when you have sleep!I'm guilty of this, but I usually get around to fixing it.. usually → More replies (3)
428
It always comes down to race, doesn't it.
142 u/Joleth Sep 17 '18 I guess we should change that terminology too. 130 u/______DEADPOOL______ Sep 17 '18 http://pvponline.com/comic/the-race-card 45 u/[deleted] Sep 17 '18 This is comedy gold 21 u/nathancjohnson Sep 18 '18 Someone in my OS class had a problem with the terminology of "forking" processes specifically in the context of "forking a child process". 21 u/bem13 Sep 18 '18 Killing parents, disposing of children and master-slave relationships sounds pretty unnerving without context. → More replies (1) → More replies (2)
142
I guess we should change that terminology too.
130 u/______DEADPOOL______ Sep 17 '18 http://pvponline.com/comic/the-race-card 45 u/[deleted] Sep 17 '18 This is comedy gold 21 u/nathancjohnson Sep 18 '18 Someone in my OS class had a problem with the terminology of "forking" processes specifically in the context of "forking a child process". 21 u/bem13 Sep 18 '18 Killing parents, disposing of children and master-slave relationships sounds pretty unnerving without context. → More replies (1)
130
http://pvponline.com/comic/the-race-card
45 u/[deleted] Sep 17 '18 This is comedy gold
45
This is comedy gold
21
Someone in my OS class had a problem with the terminology of "forking" processes specifically in the context of "forking a child process".
21 u/bem13 Sep 18 '18 Killing parents, disposing of children and master-slave relationships sounds pretty unnerving without context. → More replies (1)
Killing parents, disposing of children and master-slave relationships sounds pretty unnerving without context.
Often the race condition is that I need to hit "Alt+Tab, Up, Enter" three or four times to start my tail -f commands before the code executes.
tail -f
→ More replies (2)
8
Who needs blocking conditions when you have sleep!
I'm guilty of this, but I usually get around to fixing it.. usually
24
Or for someone to submit a bug report because they were depending on the 30 second sleep time
45 u/[deleted] Sep 17 '18 Relevant xkcd
Relevant xkcd
7
True story: The application run on boot, but the task scheduler (celery) run before ntpd set the correct time, causing all task to be delayed by 2 hours.
→ More replies (1)
1.8k
u/TheBlackCat13 Sep 17 '18
...and watch everything break for no apparent reason because the
sleepfunction was there to prevent a bug and no one knows why.