Tip: naming macros to mark that they are subroutines

When using the editor, see at a glance which of your macros is a subroutine by adding a distinctive Unicode character to its name.

Choice of symbol

In the absence of a Unicode character for submarines, I settled on ๐“ข (mathematical bold script capital s).

Examples

image

If you write a macro that can clean all the things, its name should include a broom :broom: or a yi radical mop ๊’œ.

Macro groups

The same trick can be applied to the name of macro groups that contain only subroutines.

Inserting the symbol

Make ๐“ข easy to enter by using the text expander application of your choice or by creating a macro that uses either insert text by typing or insert text by pasting.

2 Likes

Agreed. Submarine would be optimal.
A prosaic option:
:recycle: โ™ฝ โ™ผ

Hmm, could the following emoji work for a subroutine:

:package: - "Package" of code
:thread: - "Thread" of code
:hammer_and_wrench: - Tool
:jigsaw: - Puzzle piece
:repeat: - Loop / repetition, subroutines repeat code

1 Like

High-quality subroutines: ๐“ข.

Poo(r)-quality subroutines: ๊•ถ (U+A576 Vai syllable poo).

1 Like