6 tips to improve the quality of your code

  • Use a proper scripting/programming pattern
    • Design patterns
      • Modular pattern
        • Further improved with Asynchronous Module Definition (AMD)
  • Always use coding conventions
    • PascalCase
      • The first letter of every word in the identifier is in upper case
    • camelCase
      • The first letter of first word is in lower case while the first letter of subsequent words are in upper case
  • Remove dead code
  • Define single responsible methods, So that the method name can be given as it describe the function of the method
  • Use a test pattern for your testing classes
  • Format your code in a consistent way

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s