You might be marked down for it on an exam, but not explicitly cleaning up many classes of resources and just exiting the process to let the OS do it is often completely reasonable, and the high performance thing to do. Apps that don't exit instantly get a glare.
-
-
Replying to @ID_AA_Carmack
Yes! It's also the *safe* thing to do (tearing down singletons or permanent-ish data accessed from multiple threads is very hard to make safe), and I always advocate not doing deep-free-at-exit nonsense.https://stackoverflow.com/a/3130401/379897 …
2 replies 2 retweets 8 likes -
Replying to @RichFelker @ID_AA_Carmack
I'm really sad the accepted answer on this is that its "professional" to do teardown. Making your software restart to consistent state after power failure would be professional, but I guess that's not the world we live in...
1 reply 0 retweets 1 like
Replying to @arvidep @ID_AA_Carmack
If you see the one I meant to link, posted as a followup, my recommendation was the accepted answer on it. :-)
3:08 PM - 26 Jul 2018
0 replies
0 retweets
1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.