What kind of naming convension do you guys like the most?
I have been thinking about how to best name functions.
At the moment, all my functions are prefixed with the type of object they manipulate first and then the function they performs like this:
zsSpriteCreate
zsSpriteRemove
zsLayerCreate
zsLayerRemove
zsResourceLoad
zsResourceRemove
But I was thinking that people might prefer having the function first and then the object type after like this:
zsCreateSprite
zsRemoveSprite
zsCreateLayer
zsRemoveLayer
zsLoadResource
zsRemoveResource
What is your prefered way of naming functions?
I have been thinking about how to best name functions.
At the moment, all my functions are prefixed with the type of object they manipulate first and then the function they performs like this:
zsSpriteCreate
zsSpriteRemove
zsLayerCreate
zsLayerRemove
zsResourceLoad
zsResourceRemove
But I was thinking that people might prefer having the function first and then the object type after like this:
zsCreateSprite
zsRemoveSprite
zsCreateLayer
zsRemoveLayer
zsLoadResource
zsRemoveResource
What is your prefered way of naming functions?