[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: help with naming convention
- From: Xavier Wang <weasley.wx@...>
- Date: Thu, 13 Oct 2011 14:47:10 +0800
2011/10/13 Patrick Mc(avery <firstname.lastname@example.org>:
> I am planning on changing my business name for the 6th time. In a project I
> did a while back, I used X as a separator and wrote code like this,
> someXstupidXvar, I'm really bad at naming things!
> In my next project I will be heavily using the Lua C API. I like their
> naming conventions but I want my code to be easy to spot amongst theirs.
> I figure that most non-trivial names have a commonly used part and one or
> more uncommon parts.
> I was thinking of truncating the common part at 3 or 4 characters and
> capitalizing it, even if it did not sample the syllables of the full name.
> So STA instead of STK for stack or ARR instead of ARY for array. I was then
> thinking of separating with an underscore and then using lowercase and a
> non-abbreviated name(s) for the less common parts.
> so here are some fictitious examples
> Does this sound logical? Any pitfalls I am setting myself up for? Is this
> more of my naming insanity?
> Thanks for reading-Patrick
In my personal opinion, I think it's ugly :-(.