the art of readable code
... purpose of the variable or the value it contains. In this case, the variable is accumulating the sum of the squares of v. So a better name is sum_squares. This would announce the purpose of the variable ... example of a BinaryTree class: class BinaryTree { int Size(); }; What would you expect the Size() method to return? The height of the tree, the number...
Ngày tải lên: 05/05/2014, 12:35