|
|
Looks good. Might be my eyes going buggy (it is friday afternoon afterall) but it looks a bit distorted after the buldge. Anyone else see it, or do I just need more sleep?
Anyways, in terms of the code, what format / style you use is as much a potential holy war as any other topic (such as asm or not ! :) ). I did however find the code readible at a glance, so that bodes well. I never really dug deep into it though.
On that topic, heres a few pet pieves of mine
//This variable is for something or other
varaibletype variablename;
I hate that format, and would much rather see
variabletype variablename; // does something or other
Dont have to waste time describing what the comment is for, as it becomes more obvious. However, I run 1600x1200, so having wide code doesnt bother me at all.
Spaces vs tabs
I have a huge preference to hard spaces over a tab. Makes layout of code consistant across editors and platforms. This however, is largely an opinion thing. I normally set my tab up to be 2 hard spaces. I know of some collabrative projects where this is strictly enforced.
//lattice height and width
const int cLatticeWidth = 16;
Comments like this are basically a waste of space. Variable is named well enough that the comment is redundant. I also personally hate prefixed naming conventions (although, I still seem to use em all the time). cLatticeWidth c? Is this a char, or is it a constant? Its fairly obvious here, as im sitting at the declaration, but, miles away, in another module, it becomes more confusing. (Yeah, I know char is a). Some people love hungrian, myself I HATE it. I follow the all global constants should be UPPER CASE school of thought. I guess more then anything, consistancy is the key.
Sorry I didnt get in much deeper, at work and dont really have the time or attention span to really get into something.
Looks good though.
Cheers,
Serapth
|