Well said, thanks Grismare.
Roland, I also tried coding based on the proposed standards, and here are my thoughts: After so many years of Powerscript, it is difficult to unlearn the whole preifx/datatype way of writing, I only got over it when I imagined I was doing C#. But this framework will be used by PB developers so they will also face the same problem.
So based on the original proposal, here are the modifications:
variable string FirstName
- Local: lsFirstName
- Shared: ssFirstName
- Global: gsFirstName
- Argument: asFirstName
- Instance Public: FirstName - if it is a public instance, it means other classes will be accessing this and treat it like a property of the class.
- Instance
Protected: _isFirstName - underscored prefix followed by Pascal Case
- Instance Private: __isFirstName - double underscored prefix followed by Pascal Case. Only Kodigo core maintenance developers will access this.
function string GetName()
- Public: GetName() - Pascal Case. Although it will appear as lowercase, coding should be done this way.
- Protected: _getName() - underscored prefix followed by Camel Case
- Private __getName() - double underscored prefix followed by Camel Case
constants, example color
- Object Name: C#Color - "C" plus "#" (C-sharp?) + Pascal Case name.
- Public constants: constant long AliceBlue = 16775408 - Pascal Case
- Usage:
llColor = C#Color.AliceBlue
return C#Return.Success
Any thoughts on the above?