views:

38

answers:

2

i use certain suffix in my variable name, a combination of an underscore and a property. such 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 ?

+5  A: 

You're describing Hungarian Notation: http://stackoverflow.com/questions/5428/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.

Scott Stafford
+1  A: 

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

0x90