Search code examples
What's the purpose of using braces (i.e. {}) for a single-line if or loop?...


c++ccoding-stylecurly-bracesdefensive-programming

Read More
When to make constructor explicit in C++...


c++constructorexplicitdefensive-programmingexplicit-constructor

Read More
Is having multiple layers of data validation in a program defense in depth against malfunction, or c...


javascriptvalidationdefensive-programming

Read More
using try/except & while loop for calculator in python...


pythonwhile-loopcalculatortry-exceptdefensive-programming

Read More
Can [NSApplication sharedApplication] ever return nil?...


objective-cmacosnullnsapplicationdefensive-programming

Read More
When should I use Debug.Assert()?...


testingexceptionlanguage-agnosticassertiondefensive-programming

Read More
How to ignore corrupted files?...


pythonerror-handlingwavedefensive-programmingriff

Read More
Why are fail fast style programs shorter than defensive style programs?...


erlangdefensive-programmingfail-fast

Read More
How to use the Either type in C#?...


c#.netoopdefensive-programming

Read More
How to hide strings in a exe or a dll?...


c++securityobfuscationreverse-engineeringdefensive-programming

Read More
XmlSerializer - How can I set a default when deserializing an enum?...


c#xml-serializationxmlserializerdefensive-programming

Read More
Why doesn't the rangeCheck method in the java.util.ArrayList class check for negative index?...


javaarraylistindexoutofboundsexceptiondefensive-programming

Read More
How to defensively create Rx Observables and avoid race conditions?...


swiftconcurrencyrx-swiftdefensive-programming

Read More
Techniques for obscuring sensitive strings in C++...


c++securityobfuscationdefensive-programming

Read More
Avoiding accidental capture in structural pattern matching...


pythondefensive-programmingpython-3.10structural-pattern-matching

Read More
Is this additional check for parsing a string to LocalDate object necessary?...


javaexceptionlocaldateisodatedefensive-programming

Read More
Kotlin: Condition that double-value is a "normal" number...


kotlindoublenaninfinitydefensive-programming

Read More
Control user input in C when there is chars and ints mixed...


cinputscanfdefensive-programming

Read More
Is there a way to enforce that a kotlin function can be run only in the context of another function?...


validationkotlininheritancedefensive-programming

Read More
Kotlin: Specify input-constraints in interface...


validationkotlinexceptioninterfacedefensive-programming

Read More
Expose private case class in Scala...


scalacompilationdefensive-programming

Read More
Erlang's let-it-crash philosophy - applicable elsewhere?...


java.neterlangdefensive-programming

Read More
When checking if an array is empty, should I use array.length <= 0 or array.length === 0?...


javascriptdefensive-programming

Read More
0xDEADBEEF equivalent for 64-bit development?...


c++debugging64-bitdefensive-programming

Read More
Should I throw checked or unchecked exception for invalid input?...


javadefensive-programming

Read More
How defensively should I program?...


c#exceptiondefensive-programming

Read More
Will the macro `assert` be removed in C++20?...


c++standardsassertdefensive-programmingc++20

Read More
Exception Class declared but not thrown...


javaexceptionunreachable-codedefensive-programming

Read More
No Exists method so I want to use AsQueryable for defensive programming...


c#linqdefensive-programmingasqueryable

Read More
Replacing `goto` with a different programming construct...


crepeatdefensive-programming

Read More
BackNext