Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Coding standards and guidelines

7,640 views

Published on

coding standards

Published in: Technology
  • Be the first to comment

Coding standards and guidelines

  1. 1. Coding standards and guidelines<br />Part 1<br />Brij Raj Singh<br />Technical lead, The Perfect Future<br />
  2. 2. If you don’t like peers/superiors to see your code !Your code have no standardsGood developer – always shows off his code with pride<br />
  3. 3. Five point palm heart exploding technique<br />
  4. 4. Points to nail<br />No more then 20 lines, functions, functions functions…….<br />Write comments before you write code<br />Pascal casing for class names, Method Names<br /> Camel casing for variables and method parameters <br />Use meaningful names for your functions, classes and variables<br />Enough of underscores (_) ok? It isn't 1960 ; but you can use them for member variables.<br />
  5. 5. Wanna fight more<br />Do not use single character variable names<br />Do not use underscores (_) for local variable names<br />Prefix boolean variables, properties and methods with “is” or similar prefixes.<br />Like public boolisfinished=false;<br />Namespace names should follow the standard pattern <br /> <company name>.<product name>.<top level module>.<bottom level module><br />Format it, it’s your publication, you want it to be readable right.<br />
  6. 6. Next sessions<br />Part 2 – Closing on rest of coding standards<br />Part 3 – Tools to improve coding standards, documentation, and code review practices<br />Part 4 – Packaging your programs<br />
  7. 7. Thanks Q.<br />

×