禾青谷

Practice ,Imitate and Insistance makes perfect

用户操作
[即时聊天] [发私信] [加为好友]
CrystalHareHusID:CrystalHareHus
10615次访问,排名10514(-1)好友0人,关注者1
CrystalHareHus的文章
原创 19 篇
翻译 0 篇
转载 1 篇
评论 24 篇
最近评论
文章分类
收藏
    相册
    友情链接
    Computer Graphics Changes Your Life
    ljgame
    寒星轩
    存档
    软件项目交易
    订阅我的博客
    XML聚合  FeedSky
    订阅到鲜果
    订阅到Google
    订阅到抓虾
    订阅到BlogLines
    订阅到Yahoo
    订阅到GouGou
    订阅到飞鸽
    订阅到Rojo
    订阅到newsgator
    订阅到netvibes

    原创 Code Complete --- (Note4 Software Craftsmanship)收藏

    新一篇: Code Complete ---- (Note 5 Statements) | 旧一篇: Code Complete --- (Note3 Variables)

    Code Complete --- (Part 7  Software Craftsmanship)

    ============================================================
    5. Where to find more information

    A software developer's reading plan

    Introductory Level
    ---- Programming Pearls[编程珠玑]

    Practitioner level
    ---- Applying UML and Patterns: An Introduction to Object-Oriented Analysis and Design and the Unified Process [UML和模式应用]

    Professional level
    ---- Writing Solid Code
    ---- Software Architecture in Practice
    ---- Refactoring: Improving the Design of Existing Code

    ============================================================
    4. Themes in software craftsmanship

    Write programs for people first, computers second

    Program into your language, not in it

    Focus your attention with the help of conventions

    Programs in terms of problem domain


    ============================================================
    3.  Personal Character

    Intelligence and Humility
    The more you learn to compensate for your small brain, the better you'll be.
    The more humble you are, the faster you'll improve.

    Curiosity (求知欲)

    Intellectual Honesty

    Communication and Cooperation

    Creativity and Discipline

    Habits

    Persistence

    ============================================================
    2. Self-Document Code

    Avoid endline comments on single lines.
    Use endline comments to annotate data declarations
    Avoid using endline comments for maintenance notes
    Use endline comments to mark ends of blocks
    Differentiate between major and minor comments with ellipses. ....


    ============================================================
    1. Layout and Style

    /*-------------------------------------------------------------------------------------------------------------------------
            Class MyTest
            Description: My dedicated study of Code Complete

            Author: Paco
            Time:    2006-12-29

            (c) Copy Right CrystalHareHus blog, All rights reserved
    ----------------------------------------------------------------------------------------------------------------------------*/
    #pragma once
    #include "CrystalHare.h"

    #define MAX_SIZE = 100;

    // This function is to write a sample
    void
    Myfunction(
        const string myName; //IN parameter
        string herName;          //OUT parameter
    ){
        //Precondition
        Assert(myName != NULL);

        int m_size                    = MAX_SIZE;
        string m_name          = NULL;               // Read from external file
        MyTest  *m_pTest     = NULL;

        for (){
            if (){
            }  //End If
        }//End for

        //postcondition
        ASSERT( herName != NULL);
    }

     

    发表于 @ 2006年12月29日 13:00:00|评论(loading...)|编辑

    新一篇: Code Complete ---- (Note 5 Statements) | 旧一篇: Code Complete --- (Note3 Variables)

    评论:没有评论。

    发表评论  


    当前用户设置只有注册用户才能发表评论。如果你没有登录,请点击登录
    Csdn Blog version 3.1a
    Copyright © CrystalHareHus