Sign in Join
Wiki copytemporary

Nomenclature/ko: what changed

Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.

Title: Nomenclature/ko

OldNewLine
1+- 프로퍼티는 동사가 아닌 <b>명사</b>로 시작해야 합니다.
2+- 메소드는 <b>동사</b>로 시작합니다
3+- "GetFoo" 라는 메소드 이름은 "Foo" 라는 프로퍼티의 값을 얻는 용도로 사용합니다.
4+- "SetFoo" 라는 메소드 이름은 "Foo" 라는 프로퍼티의 값을 설정하는 용도로 사용합니다.
5+- "DoFoo" 라는 메소드 이름은 "OnFoo" 이벤트를 호출하기 위한 용도로 사용합니다.
6+- 제안사항: 어떤 프로퍼티를 갱신하거나 유효하게 만들려고 할 때, "DoSetFoo" 메소드 보다는 가급적 "UpdateFoo" 메소드를 사용하도록 합시다.
7+- 이벤트 프로퍼티 이름 앞에는 On....을 붙이세요. 그 후에 수식어나 형용사가 이어지고 마지막으로 술어나 주어, 명사가 옵니다. 예를 들어 OnFilterRecord, OnPostError, OnDblClick 처럼 말이죠.
8+- TControl로 부터 상속받은 객체에 대한 통지는 CNxxx 와 같이 이름을 붙여주세요.
9+
10+( 원문: notifications for TControl decendants should be named CNxxx. 번역이 이상하네요 수정 부탁..)
11+
12+---
13+*From the Free Pascal wiki, page "Nomenclature/ko", as it stood on 2008-11-26 after a change by Oranke, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).*

Back to history