Improve your application classes
Simple properties (without get/set) are much more efficient than method calls. Be clear in your design what need to be simple properties, properties with get/set, and methods. Never make something a method that really should be a property.
If all you have is a normal property which is more of an instance variable then avoid get/set methods. In the example below (in bold ) by having get/set for the property SomeString you have made it much more inefficient to get/set that property since every property reference has to run some PeopleCode. Often this can creep in when properties are designed to be flexible at the beginning and never subsequently analyzed for whether getters/setters were really needed after all.
property String SomeString get set;
get SomeString
return &SomeString;
end-get;
set SomeString
&SomeString = &NewValue;
end-set;
One Response Leave a comment
I have good idea about classes, can you give some examples for extending classes and more re-usability features?
thanks
mike