Board Thread:Watercooler/@comment-5590118-20150701035141/@comment-24473195-20150710170410

Shining-Armor wrote: I do not think that for modules Hungarian notation is necessary. Perhaps something like lower_case_underscore_notation? Either that or lowerCamelCase. Though I personally enjoy using hungarian, it may be confusing  for others. Underscore notation makes the variables longer than necessary, and there's a good chance that some may end up writing sentences instead of variable names. Camel case is used widely even in scribunto library functions, so there is no point running away from them.

There's also a lot about the style guide used by kernel developers that we can apply here: GLOBAL variables (to be used only if you _really_ need them) need to have descriptive names, as do global functions. If you have a function that counts the number of active users, you should call that "count_active_users" or similar, you should _not_ call it "cntusr". On functions: Functions should be short and sweet, and do just one thing. They should fit on one or two screenfuls of text (the ISO/ANSI screen size is 80x24, as we all know), and do one thing and do that well. Linus Torvalds seems to make  "emotional" comments about the hungarian notation, but overall that style guide seems to have good guidelines.