Coding Standard — Code Craft

What is a Coding Standard ?

Coding convention

if(condition == failure)
log(error);
exit(1);
if(condition == failure){
log(error);
}
exit(1);
if(condition == failure){
log(error);
exit(1);
}

Which coding standard ?

Why so many coding standard ?

How to integrate a coding standard in your team ?

  • Define the scope of the standard. Too wide, it will contain garbage, to narrow, it will be too restrictive to be used.
  • Get people involved during the creation of the standard. If people are involved early, they will want in implement it since it’s partly their work.
  • Produce a document. You standard should be accessible for people to refer too, and for new people to learn.
  • Includes team best practice. It will encourage everyone if there are things that they already do.
  • Focus on what matters. Avoid holy wars about tabs or spaces for example.
  • Start small and increment later. Adoption will be far easier this way.
  • Compliment for adoption. Use encouragement instead of punishing anyone that doesn’t use the standard.

Conclusion

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store