i still like the traditional C way of naming: using underscore, like cur_z. some of the java code has insanely long variable name, like hasNoSpecialMeaningSadVariable . lol
【在 A*g 的大作中提到】 : 【 以下文字转载自 Linux 讨论区 】 : 发信人: Ang (拖拉A梦), 信区: Linux : 标 题: 大家programming时怎么命名? : 发信站: BBS 未名空间站 (Tue Jun 24 18:50:19 2008), 转信 : 怎样命名variable, function, class, filename ...
g*g
10 楼
It's all about consistency, so far, I'd say Sun did a good job on java convention. C++ style can be very different. Java, you can almost figure out how well one's trained by looking at the namings.
【在 g*****g 的大作中提到】 : It's all about consistency, so far, I'd say Sun did a good job on : java convention. C++ style can be very different. Java, you can almost : figure out how well one's trained by looking at the namings.
f*Q
12 楼
为什么涅?
【在 t****e 的大作中提到】 : Hungarian notation is not considered a good practice now. : Better use : float currentZPositionOfMotor = 0.0;
As an example, suppose later you decide to change the variable type from "fl oat" to "double," then you'll have to change the variable name in every loc ation, otherwise it will give false information.