Commentary
Good.Not clear; what is being inserted? what does “at” signify?Good.Good,
because it removes object referred to in argument.Not clear; what is being
removed?
Spell them out, even if they’re long:
Commentary
Good.
Not clear.
Good.
Not clear.
说明:变量名应该以小写字母开头,并使用驼峰格式 。尽量为变量起一个述
性的名字 。不要担心 浪费列宽,因为让新的代码阅读者立即理解你的代码更
重要。示例:
错误的命名: int w;int nerr;int nCompConns;tix = [[NSMutableArray alloc] init];
obj = [someObject object];
p = [network port];
正确的命名: int numErrors;int numCompletedConnections;tickets =
[[NSMutableArray alloc] init]; userInfo = [someObject object];
port = [network port];
网友评论