Nomenclature
한국어 · Deutsch · English · Español · Français · Português · Русский · 日本語
- properties should not start with a verb, but with a noun
- methods should start with a verb
- method names "GetFoo" are reserved for property "Foo" getters
- method names "SetFoo" are reserved for property "Foo" setters
- method names "DoFoo" are reserved for calling event "OnFoo"
- suggestion: use "UpdateFoo" instead of "DoSetFoo" to update certain characteristics or to make some assertion valid
- event properties should be named On.... starting with an adjective, then verb, then a noun (some are optional): like OnFilterRecord, OnPostError, OnDblClick (adjective to verb first)
- notifications for TControl decendants should be named CNxxx
From the Free Pascal wiki, page "Nomenclature", as it stood on 2013-07-23 after a change by Jwdietrich, 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.