Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

File Names

  • File names should follow capital camel case

Variables

  • Variables should be named in lower snake case. ie. `this_is_a_variable`.
  • Absolutely no exposing of global variables. All components should implement accessor methods, if applicable.
  • Variables in c files should be declared as static if they are outside the scope of any function. This ensures that the variable scope is contained within that file, and tells the developer that the variable isnt used anywher else.

...

Info
titleStatic variables

Note that in most cases, you're NOT going to want to declare a variable as static if inside a function. You only want to declare static inside c files with global variables.

Functions

  • Camel case on all functions. Eg. helloWorld()

...