10 2012 档案

摘要:1.开闭原则在设计一个模块时,应当使这个模块可以在不被修改的前提下被扩展。开闭原则从另外一个角度讲述,就是“对可变性的封装原则”,即找到一个系统的可变因素,将之封装起来。这意味着两点:可变性应当被封装到一个对象里面。继承应当被看做封装变化的方法,而不是从一般对象生成特殊对象的方法。一种可变性不应当与另一种可变性混合在一起,实践上,通常类图的继承结构不会超过两层。“将条件转移语句改写成为多态性”,将一个进行多次条件转移的商业逻辑封装到不同的具体子类。如果一个条件转移语句没有涉及重要的商务逻辑,或者不会随着时间的变化而变化,也不意味着任何的可扩展性,那么它就没有涉及任何有意义的可变化。这就没必要转 阅读全文
posted @ 2012-10-25 09:34 gmartincn 阅读(249) 评论(0) 推荐(0)
摘要:说明:本文对Chrome Developer Tools系列翻译文章的五篇原文见https://developers.google.com/chrome-developer-tools/docs/elementsChrome Developer Tools: Elements PanelElements面板TheElementspanel lets you see everything in one DOM tree, and allows inspection and on-the-fly editing of DOM elements. You will often visit the E 阅读全文
posted @ 2012-10-22 16:27 gmartincn 阅读(780) 评论(0) 推荐(0)
摘要:说明:本文对Chrome Developer Tools系列翻译文章的第四篇原文见https://developers.google.com/chrome-developer-tools/docs/resourcesChrome Developer Tools: Resources PanelChrome Developer Tools:资源面板TheResourcespanel lets you inspect resources that are loaded in the inspected page. It lets you interact with HTML 5 Database, 阅读全文
posted @ 2012-10-22 16:26 gmartincn 阅读(496) 评论(0) 推荐(0)
摘要:说明:本文对Chrome Developer Tools系列翻译文章的三篇原文见https://developers.google.com/chrome-developer-tools/docs/networkChrome Developer Tools: Network PanelChrome Developer Tools:网络面板TheNetworkpanel lets you inspect resources that are downloaded over the network.在网络面板里能查看资源在网络上下载的情况。Follow the steps below to expl 阅读全文
posted @ 2012-10-11 10:19 gmartincn 阅读(930) 评论(0) 推荐(0)
摘要:对一个在tfs上的项目进行自动编译使用teamprise的ant插件,详见http://labs.teamprise.com/build/ant.html安装teamprise的ant插件 下载teamprise-ant-1.2.zip 解压,把teamprise-ant-1.2.jar拷贝到ant的lib目录,完成编写build.xml<project name="test-teamprise-ant-tasks" basedir="e:/stsworkspace/code" default="deploy"> < 阅读全文
posted @ 2012-10-11 10:12 gmartincn 阅读(487) 评论(0) 推荐(0)