J
Jeff Jarrell
Hungarion Notation is out but..
I am trying to keep the notion of naming things "it is what it is, name it
that"
Class Names are an interesting side. If we name them in a meaningful way and
then we name an instance of in a meaningful way there will ultimately be a
semantic collision.
For example,
In a VB6 way
dim oUser as new clsUser
In a .Net way
dim User as new User
When I read vb6 example, it jumps out at me whether I am refering to the
type or the instance. In the .Net way I am not sure from just reading it.
(am I using a static function in a type or a function that uses an
instances).
I am tempted to either suffix the type or prefix the instance. But thats
not in the spirit of .net now. Should I just get used to not immediately
recognizing the difference between an instance and a type?
thanks,
jeff
I am trying to keep the notion of naming things "it is what it is, name it
that"
Class Names are an interesting side. If we name them in a meaningful way and
then we name an instance of in a meaningful way there will ultimately be a
semantic collision.
For example,
In a VB6 way
dim oUser as new clsUser
In a .Net way
dim User as new User
When I read vb6 example, it jumps out at me whether I am refering to the
type or the instance. In the .Net way I am not sure from just reading it.
(am I using a static function in a type or a function that uses an
instances).
I am tempted to either suffix the type or prefix the instance. But thats
not in the spirit of .net now. Should I just get used to not immediately
recognizing the difference between an instance and a type?
thanks,
jeff