摘要: Cleaner, more elegant, and wrong Just because you can't see the error path doesn't mean it doesn't exist. Here's a snippet from a book on C# programmi 阅读全文
posted @ 2017-04-26 18:55 majianguo 阅读(199) 评论(0) 推荐(0) 编辑
摘要: Cleaner,more elegant,and wrong 整洁,更优雅,但是错的 并不是因为你看不到错误的产生路径就意味着它不存在。 下面是C#编程书中的一个片段,摘自关于异常处理的章节。 try { AccessDatabase accessDb = new AccessDatabase(); 阅读全文
posted @ 2017-04-26 18:55 majianguo 阅读(363) 评论(0) 推荐(0) 编辑
摘要: Cleaner, more elegant, and harder to recognize 更整洁,更优雅,但更难识别 看来,有些人把我几个月前一篇文章的标题“Cleaner,more elegant,and wrong”解释成了对异常通用处理的引用。(参见参考文献【35】,注意到电文甚至为我改变 阅读全文
posted @ 2017-04-26 18:53 majianguo 阅读(393) 评论(0) 推荐(0) 编辑
摘要: It appears that some people interpreted the title of one of my rants from many months ago, "Cleaner, more elegant, and wrong", to be a reference to ex 阅读全文
posted @ 2017-04-26 18:51 majianguo 阅读(241) 评论(0) 推荐(0) 编辑