robustness
Equals(item, null) or item == null
Is code that uses the static Object.Equ开发者_开发问答als to check for null more robust than code that uses the == operator or regular Object.Equals? Aren\'t the latter two vulnerable to being overrid[详细]
2023-01-12 13:15 分类:问答binary file formats: need for error correction?
I need to serialize some data in a binary format for efficiency (datalog where 10-100MB files are typical), and I\'m working out the formatting details. I\'m wondering if realistically I need to worry[详细]
2023-01-01 20:10 分类:问答Null and blank values
What\'s the best way of writi开发者_StackOverflow社区ng robust code so that a variable can be checked for null and blank.[详细]
2022-12-31 07:01 分类:问答How to tell if a caught IOException is caused by the file being used by another process, without resorting to parsing the exception's Message property
When I open a file, I want to know if it is being used by another process so I can perform special handling; any other IOException I will bubble up. An IOException\'s Message property contains \"The p[详细]
2022-12-25 18:19 分类:问答updating batches of data
I am using GridView in asp .net and editing data with edit command field property (as we know after updating the edited row, we automatically update the database), and I want to use transactions (with[详细]
2022-12-25 17:03 分类:问答How can I find out which version of emacs introduced a function?
I want to write a .emacs that uses as much of the mainline emacs functionality as possible, falling back gracefully when run under previous versions. I\'ve found through trial and error some functions[详细]
2022-12-23 23:23 分类:问答Fail Fast vs. Robustness
Our product is a distributed system. The modules I work on are fairly new, quite rigorous, well tested. They were developed with recent best practices in mind. Other modules can be considered as legac[详细]
2022-12-18 21:08 分类:问答Robust Code framework?
I hate writing code that makes my software more solid. This is something the framework should have done! So, is anybody aware of a code \"enhancing\" utility that solidifies the code?[详细]
2022-12-16 09:50 分类:问答