BLOG ARTICLE coding rule | 1 ARTICLE FOUND

  1. 2010/04/20 C# 코딩 규칙 및 이름 명명법 (Coding Rule & Naming)

 

       A. Naming Parts & Pairs

A.1 Common Adjective Pairs                             A.2 Common Property Prefixes

Old…/New…

 

Allow… (Allows…)

Source…/Destination…

 

Can…

Source…/Target…

 

Contains…

First…/Next…/Current…/Previous…/Last…

 

Has…

Min…/Max…

 

Is…

 

 

Use… (Uses…)

 

A.3 Common Verb Pairs

Add…/Remove…

Open…/Close…

Insert…/Delete…

Create…/Destroy…

Increment/…Decrement…

Acquire…/Release…

Lock…/Unlock…

Up…/Down…

Begin…/End…

Show…/Hide…

Fetch…/Store…

Start…/Stop…

To…/From… (Convert implied)

 

 

A.4 Common Qualifiers Suffixes

…Avg

…Limit

…Count

…Ref

…Entry

…Sum

…Index

…Total

 

Note: Avoid using Num because of semantics; use Index and Count instead. Also, avoid using Temp; take the time to describe what the object really is (e.g. use SwapValue instead of TempValue).


참고사이트 : http://www.notsotrivial.net/blog/post/2008/12/Holiday-Goodie-Bag-Free-C-and-VB-Coding-Standards-Reference-Documents.aspx

Reference coding standards :





저작자 표시 비영리 변경 금지
크리에이티브 커먼즈 라이선스
Creative Commons License