create or identify developer style guides, namespaces
Open, WishlistPublic

Description

Is there a style guide out there for developing on krita?
In particular, anything about naming conventions and namespaces for Actions.

Looking at the list of actions in krita there are multiple naming conventions.

Examples:
KisAssistantTool (Initial Caps)
rename_composition (lc underscore)
pathpoint-join (lc dash)
mainToolBar (camelCase)
shearlayer (all lowers)
Select Saturation Blending Mode (caps and spaces (??))
mirrorY-hideDecorations (dashed camelCase)

(a quick review indicates lc underscore is the most used)

By and large action names don't identify where they originate, with the exception of filters (eg):
krita_filter_gaussiannoisereducer

If there isn't a style guide around, it might be an idea to create one?
Also, might be an idea to assign namespaces? Particularly a namespace for scripts as they have more potential for creating collisions.

brendanbd triaged this task as Wishlist priority.
rempt added a subscriber: rempt.Dec 29 2018, 11:28 AM

No, there isn't anything like that, it's a mess that's been twenty years in the growing. I agree it would be good to have a styleguide, and good to change the action names to be consistent and namespaced as soon as possible, before more people start relying on the current names.