Comments on: Why Names Matter It always surprises me how many people will use GetNormalised in one place and IsNormalised in another, or even alternate between English and US spellings of words. I read one story on StackOverflow where a developer used names of his ex girlfriends for classes. No idea how he kept track of what was going on! It always surprises me how many people will use GetNormalised in one place and IsNormalised in another, or even alternate between English and US spellings of words. I read one story on StackOverflow where a developer used names of his ex girlfriends for classes. No idea how he kept track of what was going on!

]]>
By: Joe Valenzuela/2011/01/17/why-names-matter/#comment-712 Joe Valenzuela Mon, 17 Jan 2011 20:03:11 +0000 I prefer prefixes to namespaces. Prefixes also give files a namespace. It's not a great thing to have 2 matrix.h in your project, even if they are in different folders. But a dmMatrix.h and an nxMatrix.h play fine together. Of course, once you start talking about variable naming conventions your entering a personal-preference area that there is no right answer to - just lists of pros and cons. I prefer prefixes to namespaces. Prefixes also give files a namespace. It’s not a great thing to have 2 matrix.h in your project, even if they are in different folders. But a dmMatrix.h and an nxMatrix.h play fine together. Of course, once you start talking about variable naming conventions your entering a personal-preference area that there is no right answer to – just lists of pros and cons.

]]>
By: Jason Swearingen/2011/01/17/why-names-matter/#comment-710 Jason Swearingen Mon, 17 Jan 2011 12:44:34 +0000 ./altdevblogaday.org/2011/01/17/why-names-matter/#comment-709 I remember coming from terse yet semi-informative (they had to be, you could cause some horrific damage to your game back in those days) assembler labels to playing around with X-windows development for some tools (using Desqview/X on a PC) and it was like going from one extreme to another.  It was a good way to learn that neither were good patterns to follow :-)<o:p></o:p>Actually, the various X-Windows original C APIs are what are use in arguments when people complain about namespaces in C++.  Oh, that and of course “X” being defined as an all-encompassing global macro in windows.h.  But that’s another hot topic!<o:p></o:p>From: #AltDevBlogADay [mailto:post=altdevblogaday.posterous.com@sendgrid.me] On Behalf Of #AltDevBlogADaySent: Monday, January 17, 2011 9:22 PMTo: dylan@q-games.comSubject: [altdevblogaday.com] Why Names Matter<o:p></o:p> I remember coming from terse yet semi-informative (they had to be, you could cause some horrific damage to your game back in those days) assembler labels to playing around with X-windows development for some tools (using Desqview/X on a PC) and it was like going from one extreme to another.  It was a good way to learn that neither were good patterns to follow :-)<o:p></o:p>Actually, the various X-Windows original C APIs are what are use in arguments when people complain about namespaces in C++.  Oh, that and of course “X” being defined as an all-encompassing global macro in windows.h.  But that’s another hot topic!<o:p></o:p>From: #AltDevBlogADay [mailto:post=altdevblogaday.posterous.com@sendgrid.me] On Behalf Of #AltDevBlogADaySent: Monday, January 17, 2011 9:22 PMTo: dylan@q-games.comSubject: [altdevblogaday.com] Why Names Matter<o:p></o:p>

]]>