3. Declaring Variables
O Local Variables (Private, Static)
O Use Camel case
O First letter always simple
O Use _ in front
O Capitalized the subsequent word
4. Declaring Variables ..
O Local Variables (Others)
O Use Camel case
O First letter always simple
O Never user _ (this is old)
O Capitalized the subsequent word
16. For each Vs. For
O Foreach generate best execution path
O Use count or length in the iteration
O For ( .. ; .. ; Lengh)
O For ( .. ; .. ; Count)
17. Try Catch
O Use try catch in the presentation layer
O (handle it in a one place)
O Don’t use many try catch in a single code
block (use with care)
O Use if you can handle
18. Method and Functions
O Don’t use too many parameters
O (not more than 4 or 5)
O Use struct/Class or params
O Restrict to 15,20 lines
O Can change the logic easily