Ray's playground

 
上一页 1 ··· 46 47 48 49 50 51 52 53 54 ··· 56 下一页

2009年12月12日

Rule 10: Minify JavaScript(Chapter 10 of High performance Web Sites)

摘要: The savings from minifying CSS are typically less than the savings from minifyingJavaScript because CSS generally has fewer comments and less whitespace than Java-Script.The greatest potential for siz... 阅读全文

posted @ 2009-12-12 10:42 Ray Z 阅读(276) 评论(0) 推荐(0) 编辑

2009年11月24日

Item 5: Know what functions C++ silently writes and calls(Effective C++)

摘要: When is an empty class not an empty class? When C++ gets through with it. If you don't declare them yourself, compilers will declare their own versions of a copy constructor, a copy assignment operato... 阅读全文

posted @ 2009-11-24 21:54 Ray Z 阅读(288) 评论(0) 推荐(0) 编辑

2009年11月23日

Item 4: Make sure that objects are initialized before they're used (Effective C++)

摘要: Manually initialize objects of built-in type, because C++ only sometimes initializes them itself.   In a constructor, prefer use of the member initialization list to assignment inside the body of the ... 阅读全文

posted @ 2009-11-23 21:50 Ray Z 阅读(247) 评论(0) 推荐(0) 编辑

2009年11月19日

Item 3: Use const whenever possible(Effective C++)

摘要: The wonderful thing about const is that it allows you to specify a semantic constraint — a particular object should not be modified — and compilers will enforce that constraint. It allows ... 阅读全文

posted @ 2009-11-19 22:10 Ray Z 阅读(302) 评论(0) 推荐(0) 编辑

2009年11月17日

Utilities(Chapter 4 of The C++ Stardard Library)

摘要: [代码] 阅读全文

posted @ 2009-11-17 12:29 Ray Z 阅读(289) 评论(0) 推荐(0) 编辑

2009年11月15日

Recipe 1.10. Changing the Case of a String

摘要: [代码]Output: HELLO, I'M RAY    hello, i'm ray    Hello, i'm ray    HELLO, i'm RAY    hello, I'M rayThe upcase and downcase methods force all letters in the string to upper-or lowercase, respectively. T... 阅读全文

posted @ 2009-11-15 14:02 Ray Z 阅读(161) 评论(0) 推荐(0) 编辑

2009年11月11日

General Concepts(Chapter 3 of The C++ Standard Library)

摘要: The standard exception classes can be divided into three groups:Exceptions for language supportExceptions for the C++ standard libraryExceptions for errors outside the scope of a program  The C++ stan... 阅读全文

posted @ 2009-11-11 21:58 Ray Z 阅读(229) 评论(0) 推荐(0) 编辑

Item 2: Prefer consts, enums, and inlines to #defines(Effective C++)

摘要: When you do something like this,[代码]  the symbolic name ASPECT_RATIO may never be seen by compilers; it may be removed by the preprocessor before the source code ever gets to a compiler.  As a result,... 阅读全文

posted @ 2009-11-11 20:49 Ray Z 阅读(243) 评论(0) 推荐(0) 编辑

2009年11月10日

Item 1: View C++ as a federation of languages(Effective C++)

摘要: The easiest way is to view C++ not as a single language but as a federation of related languages. Within a particular sublanguage, the rules tend to be simple, straightforward, and easy to remember. W... 阅读全文

posted @ 2009-11-10 21:39 Ray Z 阅读(266) 评论(0) 推荐(0) 编辑

Notes to the Reader(Chapter 1 of The C++ Programming Language)

摘要: Nothing special. 阅读全文

posted @ 2009-11-10 21:28 Ray Z 阅读(197) 评论(1) 推荐(0) 编辑

上一页 1 ··· 46 47 48 49 50 51 52 53 54 ··· 56 下一页

导航