« RIA是什麼? 舊有網頁程式不好嗎? | 回到主頁面 | 小遊戲--舌頭保齡球 »

March 10, 2005

Naming convensions


將此網頁加入【百度收藏】... 加入此網頁到【del.icio.us 書籤】 technorati

Designing .NET Class Libraries: API Usability

Naming is alway difficult thing for me. But when look the speech which Brad Abrams  talking about naming convension, I think he provide more detail situation what we have to do when we need naming our variables. Some interesting about this speech as bellow:

  • "Google test": he just talk about avoid abbreviation. He say you can use google to test the abbrebiation.
  • About casing rule: Just use camelCase in parameter naming,otherwise use PascalCase. (I think this rule give me some help)
  • Do not use underscore:  Do not use it when naming. Just like Some_Variable~~
  • Don't use Hungarian Notation: Brad Abrams also talk about although Hungarian Notation is usefull in the past, but according the IDE progress more and more. Microsoft already ban their engineer using Hungarian Notation. So~~ in the public API do not use it, just use it in your function implementation(if you still want to use it).

There still have some great speech in the Designing .NET Class Libraries. You can choose what you interest topic and watch it online.



VC6相關問題

由 Evan 發表於 March 10, 2005 將此網頁加入【百度收藏】... 加入此網頁到【del.icio.us 書籤】 technorati
引用
本文的引用網址:


以下是前來引用的連結 'Naming convensions' 來自 Blog E
迴響
發表迴響









記住我的資訊?




(請輸入以下的驗證碼)