7 Matching Annotations
- Jun 2021
-
dba.stackexchange.com dba.stackexchange.com
-
I added NULLIF() to defend against division-by-zero errors.
-
- Apr 2021
-
docs.microsoft.com docs.microsoft.com
-
To prevent race conditions and deadlocks, we highly recommend that each of the communication channels is serviced on a separate thread that maintains its own client buffer state and messaging queue inside your application. Servicing all of the pseudoconsole activities on the same thread may result in a deadlock where one of the communications buffers is filled and waiting for your action while you attempt to dispatch a blocking request on another channel.
-
-
en.wikipedia.org en.wikipedia.org
-
-
A good heuristic is to not trust the libraries you did not write either.
-
Within functions, you may want to check that you are not referencing something that is not valid (i.e., null) and that array lengths are valid before referencing elements, especially on all temporary/local instantiations.
-
-
github.com github.com
-
Detect undesirable changes to classes made by other libraries.
-
- Mar 2020
-
stackoverflow.com stackoverflow.com
-
To be just a bit polemic, your first instinct was not to do that. And you probably wouldn't think of that in your unit tests either (the holy grail of dynamic langs). So someday it would blow up at runtime, and THEN you'd add that safeguard.
-