File Exchange Pick of the Week

Consistency in coding

Posted by Doug Hull,

When we first started this project, Scott and I wanted to avoid using the more popular files as our weekly pick. I am going to break from that rule, because in face-to-face interaction I recommend this file to more customers than any other and think it needs to used more often. Why use a style guide? There are lots of somewhat arbitrary choices we make when coding: Should the variable be named numCatagories, or cat_num? How far should I indent? What should I name this function? By adopting a standard like the one in this document, you will know the answers to these question and make code that is written consistently. Please read this style guide.

Comments are closed.

These postings are the author's and don't necessarily represent the opinions of MathWorks.