- 论坛徽章:
- 11
|
。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
Here are my comments,
1. Rename n, newText2 with meaningful names. It is one of rules of code convention.
2. Add some comments for your fix.
3. Remove ASSERT(EFalsle).
。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
1. 有意义的名称, 妈的也就是一个临时变量, TInt n = newText.Length(); 非要命名成 int length_of_newtext 才可以吗, 另一个大概应该命名成 copy_of_newtext
2. 公式化的写法, 指导思想是加一行代码写一行注释, 只要不写, 就他妈的有人challenge你
比如 TInt n = newText.Length(); 怎么写, 恩 应该写 // assign the length of newText to n, 哦, sorry, 应该是 // assign the length of newText to length_of_newText
操他妈的
3. 移除 ASSERT, 大概闲的疯了 |
|