开发者

Do you have any personal visual clue in your code for other user and not the compiler?

i use certain suffix in my variable name, a combination of an underscore and a property. such 开发者_Python百科as :

$variable_html = variable that will be parse in html code.

$variable_str = string variable

$variable_int = integer variable

$variable_flo = float variable.

Do you have other visual clues? Maybe something you write for variable, function name, class strucure, or other stuff that helps others to read and not only for compiler ?


You're describing Hungarian Notation: Do people use the Hungarian Naming Conventions in the real world?

There's lots of discussion on Stack Overflow about people's feelings on the topic.


It nearly is Hungarian Notation, but when you use Hungarian Notation it is more common to use a prefix instead of a suffix.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜