Nomenclature

From Lazarus wiki
Revision as of 21:14, 11 December 2005 by Neli (talk | contribs) (add event property guide)
Jump to navigationJump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
  • 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