packages ideally should be named {{name}}_bigaplugin.ahk in all lowercase
Good:
mycoolmethod_bigaplugin.ahk
ai_bigaplugin.ahk
Bad:
myCoolMethod_bigAplugin
aibigaplugin
The classname follows the package name exactly but does drop the .ahk ending
Good:
class mycoolmethod_bigaplugin {
methods should follow "camelCase" naming convention; begining with a lowercase character.
Good:
myCoolMethod() {
; do something
}
Unless your plugin is extra special; it should follow the following template, modifing the base class at the top.
The ideal plugin is self containted and does not add helper functions or attempt to #Include
other packages.
Good:
biga.base := mycoolmethod_bigaplugin
class mycoolmethod_bigaplugin {
myCoolMethod() {
; do something
}
}
Bad:
#Include <HelperFunc>
biga.base := mycoolmethod_bigaplugin
class mycoolmethod_bigaplugin {
myCoolMethod() {
fn_helper()
}
myOtherCoolMethod() {
HelperFunc()
}
}
fn_helper()
{
; do something
}
methods not intended for direct use should be prefixed with "_internal" or "_"
Good:
biga.base := mycoolmethod_bigaplugin
class mycoolmethod_bigaplugin {
myCoolMethod() {
; do something
}
_internal_myHelperMethod() {
; do something
}
}