<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom"><title type="text">博客园_imissherso</title><subtitle type="text"/><id>http://feed.cnblogs.com/blog/u/22621/rss</id><updated>2007-04-04T14:19:29Z</updated><author><name>lionking</name><uri>http://www.cnblogs.com/imissherso/</uri></author><generator>CNBlogs BlogServer</generator><link rel="alternate" type="text/html" href="http://www.cnblogs.com/imissherso/"/><link rel="self" type="application/atom+xml" href="http://feed.cnblogs.com/blog/u/22621/rss"/><entry><id>http://www.cnblogs.com/imissherso/archive/2007/04/04/700458.html</id><title type="text">bug of Python</title><summary type="text">TurboGear中运行python start-hello.py,错误如下2007-04-04 22:04:03,977 cherrypy.msg INFO CONFIG: Server parameters:2007-04-04 22:04:03,977 cherrypy.msg INFO CONFIG: server.environment: developm ent2007-04-04 2...</summary><published>2007-04-04T14:18:00Z</published><updated>2007-04-04T14:18:00Z</updated><author><name>lionking</name><uri>http://www.cnblogs.com/imissherso/</uri></author><link rel="alternate" href="http://www.cnblogs.com/imissherso/archive/2007/04/04/700458.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/imissherso/archive/2007/04/04/700458.html"/></entry><entry><id>http://www.cnblogs.com/imissherso/archive/2007/03/21/683297.html</id><title type="text">条款7：将值类型尽可能实现为具有常量性和原子性的类型</title><summary type="text">条款7：将值类型尽可能实现为具有常量性和原子性的类型具有常量性的类型很简单，它们自创建后便保持不变。如果在构造的时候就验证了参数的有效性，我们就可以确保从此之后它都处于有效的状态。因为我们不可能再更改其内部状态。通过禁止在构建对象之后更改对象状态，我们实际上可以省却许多必要的错误检查。具有常量性的类型同时也是线程安全的：多个reader可以访问同样的内容。因为如果内部状态不可能改变，那么不同线程也...</summary><published>2007-03-21T15:28:00Z</published><updated>2007-03-21T15:28:00Z</updated><author><name>lionking</name><uri>http://www.cnblogs.com/imissherso/</uri></author><link rel="alternate" href="http://www.cnblogs.com/imissherso/archive/2007/03/21/683297.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/imissherso/archive/2007/03/21/683297.html"/></entry><entry><id>http://www.cnblogs.com/imissherso/archive/2007/03/21/681971.html</id><title type="text">CSS</title><summary type="text">CSS意即Cascading Style Sheets。它是一种允许在HTML元素上添加效果的简单风格语言。每个元素类型以及这种类型的某个特定元素的每次出现都可以被声明为一种独特的风格，例如，边缘空白、位置、颜色、以及大小。你可以把这些风格单想象成模版，和桌面发布的应用程序模版很类似。举例来说， body { background-color: white; color: darkblue;fon...</summary><published>2007-03-20T21:24:00Z</published><updated>2007-03-20T21:24:00Z</updated><author><name>lionking</name><uri>http://www.cnblogs.com/imissherso/</uri></author><link rel="alternate" href="http://www.cnblogs.com/imissherso/archive/2007/03/21/681971.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/imissherso/archive/2007/03/21/681971.html"/></entry><entry><id>http://www.cnblogs.com/imissherso/archive/2007/03/21/681952.html</id><title type="text">条款6：明辨值类型和引用类型的使用场合</title><summary type="text">条款6：明辨值类型和引用类型的使用场合值类型还是引用类型？结构还是类？如何正确地使用它们？这里不是C++，在那里，所有的类型都被我们定义为值类型，然后我们可以选择创建它们的引用形式。这也不是Java，在那里，所有的类型都是引用类型[9]。在C#中，我们必须在设计类型的时候就决定类型实例的行为。这种决定非常重要。我们必须清楚这种决定的后果，因为后期的更改会导致许多代码在不经意间出现错误。在创建类型的...</summary><published>2007-03-20T17:03:00Z</published><updated>2007-03-20T17:03:00Z</updated><author><name>lionking</name><uri>http://www.cnblogs.com/imissherso/</uri></author><link rel="alternate" href="http://www.cnblogs.com/imissherso/archive/2007/03/21/681952.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/imissherso/archive/2007/03/21/681952.html"/></entry><entry><id>http://www.cnblogs.com/imissherso/archive/2007/03/21/681950.html</id><title type="text">条款5：总是提供ToString()方法</title><summary type="text">条款5：总是提供ToString()方法System.Object.ToString()恐怕是.NET中最常用的方法了。应该为我们的类的所有客户代码提供一个合理的版本，否则这些代码就只能使用我们的类的一些属性来自己定制可读的表示了。类型的字符串表示非常有用，可以在很多地方向用户显示对象的有关信息，例如在Windows Forms上、Web Forms上、控制台输出窗口中，以及调试环境中。为此，我们...</summary><published>2007-03-20T17:02:00Z</published><updated>2007-03-20T17:02:00Z</updated><author><name>lionking</name><uri>http://www.cnblogs.com/imissherso/</uri></author><link rel="alternate" href="http://www.cnblogs.com/imissherso/archive/2007/03/21/681950.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/imissherso/archive/2007/03/21/681950.html"/></entry><entry><id>http://www.cnblogs.com/imissherso/archive/2007/03/21/681949.html</id><title type="text">条款4：使用Conditional特性代替#if条件编译</title><summary type="text">条款4：使用Conditional特性代替#if条件编译#if/#endif条件编译常用来由同一份源代码生成不同的结果文件，最常见的有debug版和release版。但是，这些工具在具体应用中并不是非常得心应手，因为它们太容易被滥用了，使用它们创建的代码通常都比较难理解，且难以调试。C#语言的设计者们对这种问题的解决方案是创建更好的工具，以达到为不同环境创建不同机器码的目的。C#为此添加了一个Co...</summary><published>2007-03-20T17:02:00Z</published><updated>2007-03-20T17:02:00Z</updated><author><name>lionking</name><uri>http://www.cnblogs.com/imissherso/</uri></author><link rel="alternate" href="http://www.cnblogs.com/imissherso/archive/2007/03/21/681949.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/imissherso/archive/2007/03/21/681949.html"/></entry><entry><id>http://www.cnblogs.com/imissherso/archive/2007/03/21/681948.html</id><title type="text">条款3：操作符is或as优于强制转型</title><summary type="text">条款3：操作符is或as优于强制转型C#是一门强类型语言。一般情况下，我们最好避免将一个类型强制转换为其他类型。但是，有时候运行时类型检查是无法避免的。相信大家都写过很多以System.Object类型为参数的函数，因为.NET框架预先为我们定义了这些函数的签名。在这些函数内部，我们经常要把那些参数向下转型为其他类型，或者是类，或者是接口。对于这种转型，我们通常有两种选择：使用as操作符，或者使用...</summary><published>2007-03-20T17:01:00Z</published><updated>2007-03-20T17:01:00Z</updated><author><name>lionking</name><uri>http://www.cnblogs.com/imissherso/</uri></author><link rel="alternate" href="http://www.cnblogs.com/imissherso/archive/2007/03/21/681948.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/imissherso/archive/2007/03/21/681948.html"/></entry><entry><id>http://www.cnblogs.com/imissherso/archive/2007/03/21/681946.html</id><title type="text">条款2：运行时常量（readonly）优于编译时常量（const）</title><summary type="text">条款2：运行时常量（readonly）优于编译时常量（const）C#语言有两种不同的常量机制：一种为编译时（compile-time）常量，一种为运行时（runtime）常量。两种常量有着非常迥异的行为，使用不正确会导致程序的性能下降或者出现错误。这两种代价，哪一个都没有人愿意承担，但是如果必须承担一个，那么&amp;#8220;慢、但是能够正确运行的&amp;#8221;程序总比&amp;#8220;快、但是可能出错...</summary><published>2007-03-20T17:00:00Z</published><updated>2007-03-20T17:00:00Z</updated><author><name>lionking</name><uri>http://www.cnblogs.com/imissherso/</uri></author><link rel="alternate" href="http://www.cnblogs.com/imissherso/archive/2007/03/21/681946.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/imissherso/archive/2007/03/21/681946.html"/></entry><entry><id>http://www.cnblogs.com/imissherso/archive/2007/03/21/681945.html</id><title type="text">条款1：使用属性代替可访问的数据成员（转）</title><summary type="text">fromcsdn，源贴：http://book.csdn.net/bookfiles/295/10029512568.shtml</summary><published>2007-03-20T16:59:00Z</published><updated>2007-03-20T16:59:00Z</updated><author><name>lionking</name><uri>http://www.cnblogs.com/imissherso/</uri></author><link rel="alternate" href="http://www.cnblogs.com/imissherso/archive/2007/03/21/681945.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/imissherso/archive/2007/03/21/681945.html"/></entry><entry><id>http://www.cnblogs.com/imissherso/archive/2007/03/20/681789.html</id><title type="text">Effective C#:ITEM3:优先使用is或者as操作符而不是强制转换</title><summary type="text">need to be examined</summary><published>2007-03-20T14:14:00Z</published><updated>2007-03-20T14:14:00Z</updated><author><name>lionking</name><uri>http://www.cnblogs.com/imissherso/</uri></author><link rel="alternate" href="http://www.cnblogs.com/imissherso/archive/2007/03/20/681789.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/imissherso/archive/2007/03/20/681789.html"/></entry></feed>
