Mineserver > Development

Coding Style

<< < (2/2)

Manhim:
I'd use a prefix only for private members like _privateMember;

For public ones it would be PublicMember or publicMember, whichever is the best.

louisdx:
Regarding getters and setters, how about using a single function with a const overload to return both lvalues and rvalues?

MechWarrior001:
In MS VC++ 2010 Express I'm getting a bunch of warnings concerning using sprintf_s instead of sprintf, fopen_s instead of fopen, and localtime_s instead of localtime. While probably not necessary, it might be a good idea to switch to the *_s commands, if for nothing else than good coding practice.

Navigation

[0] Message Index

[*] Previous page

Go to full version