[GUIDE] Naming Conventions For All Extension Developers

I find that this community does not have this topic, so I decided to post it here.

If you are an extension developer and decided to post your extension here, please follow the naming conventions. Do not include underscores (_) in your extension.

  • UpperCamelCase for events, functions and property blocks.

UpperCamelCase (part of CamelCase ) is a naming convention in which a name is formed of multiple words that are joined together as a single word with the first letter of each of the multiple words capitalized within the new word that forms the name.letter

  • lowerCamelCase for event parameters and function sockets.

lowerCamelCase (part of CamelCase) is a naming convention in which a name is formed of multiple words that are joined together as a single word with the first letter of each of the multiple words (except the first one) capitalized within the new word that forms the name.

For reference, see this screenshot.

image

These links tell you why you need naming conventions.

Naming conventions help your code stay fluent within the context of your program. This is important because you want to have consistency throughout your entire program. Below you will find general rules when naming your variables. Variables tend to start with a letter.

Taken from Naming Conventions for Extension Developers - Tutorials and Guides - MIT App Inventor Community and Naming Conventions in Programming | Founder at work. Thank you Taifun!

You are allowed to use your own naming conventions if you want to, but please follow these rules if you are posting it public.

5 Likes

Thank you @Gordon_Lu for this valuable information

1 Like