Code Complete, Second Edition的笔记(9)
按有用程度 按页码先后 最新笔记
-
第233页
GoneChaosGone (埋头做一只伪造猫)
Nothing very exciting in chapter 7.8.9. Basically they are about how to write a good routine, defensive programming and using pseudocode in programming. A good routine is easy for other programmers to understand , read and debug.To achieve this you need a good name, limited parameters ( 7 ----- it is a magice number in this book)...What I thinking is forget about these rules, just ask your coll... (更多)2012-02-19 05:02:29 回应
-
第143页
GoneChaosGone (埋头做一只伪造猫)
How to define a good class interface? Two questions you need ask yourself before writing codes. Q1:Is this a "has a" Relationship Q2:Is this a "is a" Relationship I've read through many books tried to explain the OO thinking in different ways,and the most concise explanation is found in Chapter 6.3 of the book. I admitted sometimes I inherited a class just for its interfa... (更多)2012-02-19 04:10:37 回应
-
第141页
GoneChaosGone (埋头做一只伪造猫)
Encapusulation Avoid friend classes I have no real experience in C++, so just have no idea what a "friend class" is. Ref to wikipedia, A friend class in C++, can access the "private" and "protected" members of the class in which it is declared as a friend. On declaration of friend class all member function of the friend class become friend of the class in whic... (更多)2012-02-05 23:24:41 回应
-
第143页
GoneChaosGone (埋头做一只伪造猫)
coupling goes hand in glove with abstraction adn encapsulation.Tight coupling occurs when an abstractions is leaky,or when encapsulation is broken.If a class offers an incomplete set of service ,other routines might find they need to read or write its internal data directly. That opens up the class ,making it a glass box instead of a black box, and it virtually eliminates the class' encapsulation.... (更多)2012-02-05 22:59:41 回应
-
第21页
GoneChaosGone (埋头做一只伪造猫)
Meaphors are heurristics, so even using "Building Construction" is still weak. Because in today's "posh" agile way,everything is keeping changing. Software is delievered frequently (weeks instead of months). Cannot image constructors keep changing their work week by week in the reallife. Software development is a unique process, as no metaphor can be used to describe it. ... (更多)2012-01-20 05:39:25 回应
-
第5页
可爱的肖恩 (肖恩是只羊咩咩)
软件的实现为什么重要? 1、Construction is a large part of software development. 2、Construction is the central activity in software development. 3、With a focus on construction, the individual programmer's productivity can improve enormously. 4、Construction's product, the source code, is often the only accurate description of the software. 5、Construction is the only activity that's guar... (更多)2011-12-29 01:17:26 回应
-
Preface
可爱的肖恩 (肖恩是只羊咩咩)
MY PRIMARY CONCERN IN WRITING this book has been to narrow the gap between the knowledge of industry gurus and professors on the one hand and common commercial practice on the other. Many powerful programming techniques hide in journals and academic papers for years before trickling down to the programming public. Although leading-edge software-development practice has advanced rapidly in recen... (更多)2011-12-29 01:10:03 回应
-
第40页
azalea (哀莫大于心死)
Clients get excited when they think of a new feature. In their excitement, their blood thins and runs to their medulla oblongata and they become giddy, forgetting all the meetings you had to discuss requirements, the signing ceremony, and the completed requirements document. The easiest way to handle such feature-intoxicated people is to say, "Gee, that sounds like a great idea. Since it's no... (更多)2011-12-10 11:44:04 回应

