Coding Best Practices – A Good Read
Coding Best Practices - A Good Read
I have written blogs before on coding best practices in MATLAB and they have always generated a lot of great feedback. I recently came across a language-neutral list of best practices for scientific computing, written by Greg Wilson of Software Carpentry.
If you don't want to start by reading the whole article, I strongly encourage you to read Greg's summary. He breaks the practices into eight categories. I have to say, I think they are very well stated, starting with "Write programs for people, not computers.".
I have to say, I think Greg hit the nail on the head.
Do You Violate these Best Practices?
The most frequent violations I see include not using a debugger and, a lot of code is trying to optimize it before being sure it is truly correct. Which practice is your Achilles' heel? Let me know here.
评论
要发表评论,请点击 此处 登录到您的 MathWorks 帐户或创建一个新帐户。