this applies to ALL code:

You should name all functions/variables with camelCase or snake_case. See here: http://blog.lmorchard.com/2013/01/23/naming-conventions

It should never just be myfunction. Either do my_function or myFunction (decide which style you want to use and then be consistent with it the whole way.