Recommendations for Building Extensions ↩
User interface
- main reference: Apple’s macOS Human Interface Guidelines
Code
-
use tools from the
mojo
module rather thanlib
# this has been deprecated: from lib.tools.defaults import getDefault # use this instead: from mojo.UI import getDefault
also:
from mojo.pens import decomposePen
- suggest camelCase for common libraries?
- give examples of best practices (vanilla, FontParts, DrawBot, …?)
- Python Style Guide
Building the extension
- using the Extension Builder vs. building extension with a script
Version control
- source code (development) vs. built extension (distribution)
- see Extension packaging patterns