close
文章分類:讀書心得

Book : Programming Challenges
            The Programming Contest Training Manual

我用自己的方式大概敘述內容,

敘述的不好請見諒。

Six Hints

1.Write the Comments First

學會如何去寫好Comment,

好的Comment可以讓人輕易了解程式在幹麻,

也可以方便我們在解讀程式還有Debug。

2.Document Each Variable

妥善的宣告與使用每一個Variable,

當我們在宣告一個Variable時,

我們就因該清楚的知道,

我們為何宣告他,

我覺得這邊主要就是為你的Variable名稱好好的取名字,

讓你不管在程式的哪邊,

都可以清楚的知道這Variable在幹嘛。

3.Use Symbolic Constants

使用一些文字來代替單純數字的Constants。

4.Use Enumerated Type for Reason

晚點補上

5.Use Subroutines To Avoid Redundant Code

晚點補上

6.Make Your Debugging Statements Meaningful

晚點補上

arrow
arrow
    全站熱搜

    grant823 發表在 痞客邦 留言(0) 人氣()