I would delete starcount variable. You can get array's lenght directly.
For the use of Self, i tend to use it only when there's something like
Otherwise you can avoid using Self.
I tend to use uppercase names only for constants.
In general i think is useful using this conventions:
- variableNames in loer camel case: thisIsMyVariableName
- type name starting with T: TMytype
- constant in uppercase: MYCONSTANT
But these aren't rules, only my way of writing variables
myarray.length
For the use of Self, i tend to use it only when there's something like
type foo field bar:int ... method setField(bar:int) ' same name for parameter and field! self.bar = bar endmethod endtype
Otherwise you can avoid using Self.
Field R:Int, G:Int, B:Int 'colour variables
I tend to use uppercase names only for constants.
In general i think is useful using this conventions:
- variableNames in loer camel case: thisIsMyVariableName
- type name starting with T: TMytype
- constant in uppercase: MYCONSTANT
But these aren't rules, only my way of writing variables