Variable pre-fixes, Visual Studio 2010 onwards?
Posted
by
thedixon
on Stack Overflow
See other posts from Stack Overflow
or by thedixon
Published on 2012-09-07T08:35:04Z
Indexed on
2012/09/08
3:38 UTC
Read the original article
Hit count: 131
I'm a bit bewildered on this subject, as I relate variable prefixes to being a thing of the past now, but with Visual Studio 2010 onwards (I'm currently using 2012), do people still do this and why?
I only ask because, these days, you can hover over any variable and it'll tell you the variable type and scope. There's literally no requirement for pre-fixing being there for readability.
By this I mean:
string strHello
int intHello
etc.
And I'm being language/tool biased here - as Visual Studio takes a lot of the legwork out for you in terms of seeing exactly what type the variable is, including after conversions in the code. This is not a "general programming" question.
© Stack Overflow or respective owner