Angelo Lee's Blog
This is my kingdom .If i don't fight for it ,who will ?
上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 55 下一页
摘要: CodeRush and Refactor! Pro Version 3.2.3 for Visual Studio .NET最新CodeRush and Refactor! Pro for Visual Studio .NET Version 3.2.3破解合集,采取的破解方式是修改Plugin,对DXCore框架没有做任何修改。本破解包由Danny_su提供,感谢Danny_su!!破解包下载地址:CodeRush.Crack.3.2.3Refactor.Crack.3.2.3CodeRush破解安装:1)下载官方原版CodeRush 3.2.3评估版安装程序,地址:CodeRush 3. 阅读全文
posted @ 2011-09-01 18:00 Angelo Lee 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 原文:http://onjava.com/pub/a/onjava/2003/11/19/exceptions.html?page=1One of the problems with exception handling is knowing when and how to use it. In this article, I will cover some of the best practices for exception handling. I will also summarize the recent debate about the use of checked exceptio 阅读全文
posted @ 2011-08-31 23:25 Angelo Lee 阅读(141) 评论(0) 推荐(0) 编辑
摘要: Ted GraHam 提到了39 条 CheckList, 我觉得还是总结的挺全面.Are exceptions used to indicate error rather than returning status or error codes?使用异常来只是错误而不是使用状态或者错误代码值 Are all classes and public methods commented with .NET style comments?? Note that comments should discuss the "what" of public methods.? Discu 阅读全文
posted @ 2011-08-31 09:18 Angelo Lee 阅读(491) 评论(0) 推荐(0) 编辑
摘要: Table of ContentsIntroductionC# Code Reviews using StylecopComparing FXCOP with StyleCopIssue of Code Review using FXCOPStyleCop Code Parsing LogicMaking the Custom Rules ClassLet Us Do Something PracticallyIntroductionIn this article, we will discuss an upcoming code review tool StyleCop. We will u 阅读全文
posted @ 2011-08-30 15:13 Angelo Lee 阅读(324) 评论(0) 推荐(0) 编辑
摘要: Global.asax文件的作用:1.定义Application级别,Session级别的变量,对象和数据;2.定义在Application中的,基于Application,Session的事件;定义Application,Session级别的变量:使用Application对象来定义Application范围的变量,使用Session对象定义Session范围的变量。//设置变量Application("myApplicationScopeVar")="MyValue";Session("mySessionScopeVar")=&q 阅读全文
posted @ 2011-08-30 09:37 Angelo Lee 阅读(149) 评论(0) 推荐(0) 编辑
摘要: log 阅读全文
posted @ 2011-08-20 21:39 Angelo Lee 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 1 log1.1 用log.error表示系统级错误1.2 用log.warn表示应用级错误1.3 服务初始化或结束用log.info1.4 用log.debug替代out,debug要判断isDebugEnable1.5 用log.warn("",e)替代e.printstack1.6 用log4e生成log相关代码1.7 Log信息要保证可读性,需记录现场信息,如当前处理id等2 exception2.1 try catch内的代码不要太长2.2 因为性能原因,try catch少放循环内2.3 尽量避免catch(Exception)这样的写法2.4 不同模块定义不同 阅读全文
posted @ 2011-08-20 21:38 Angelo Lee 阅读(157) 评论(0) 推荐(0) 编辑
摘要: IntroductionOne of the things that impressed me when I first started learning .NET was its enhanced exception-handling functionality. By this I mean such features as easy access to the type of exception thrown, full stack trace and inner exceptions. This makes it easy to still get full information i 阅读全文
posted @ 2011-08-20 19:58 Angelo Lee 阅读(220) 评论(0) 推荐(0) 编辑
摘要: ContentsIntroductionPlan for the worstCheck it earlyDon't trust external dataThe only reliable devices are: the video, the mouse and keyboard.Writes can fail, tooCode SafelyDon't throw new Exception()Don't put important exception information on the Message fieldPut a single catch (Except 阅读全文
posted @ 2011-08-20 19:54 Angelo Lee 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 读完《重构——改善既有代码的设计》和《重构与模式》,有了些许感想,先与大家分享一下。当我们已经对设计模式倒背如流时,却往往发现在实际代码编写中有生搬硬套的感觉。设计模式是前人经验的总结,直接拿来用合不合适呢?这让我想起了大学一位老师告诉我们的一条学习的道路“知识,理论,智慧”。设计模式是很一种优雅的“智慧”,但对于我们初学者来说还仅仅是留存于文字的“知识”。把“知识”融合到自己的开发中,在不断探索和总结中形成自己“理论”,再应用到实际中,那么这才是是真正属于我们自己的“智慧”。重构恰恰是由“知识”到“理论”的必经之路,而书中的各种重构方法无疑是这条路上清晰的路标。代码的坏味道大家一看都不会陌生 阅读全文
posted @ 2011-08-20 18:15 Angelo Lee 阅读(206) 评论(0) 推荐(0) 编辑
上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 55 下一页