23.02.2008, 19:37 | #1 |
Участник
|
mfp: Writing less code: The "else" statement
Источник: http://blogs.msdn.com/mfp/archive/20...statement.aspx
============== Source code is written once; and read over and over again. So make sure it is easy to read and understand. I keep seeing a poor coding practice. I see it in production code, in test code, in X++ code, in C# code, in C++ code, in examples on the web, when interviewing candidates. I see it where ever I look. It is a practice that adds unnecessary complexity to source code, it make the source code harder to read, and harder to write. And what disturbs me the most is, how easy it is to avoid. Take a look at this simple code: <DIV class=source>boolean isNegative(int value) { if (value
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору. |
|