Hey,
I bet you all have your ways of coding things; I surely have learned a lot from my mistakes. So what are your best practices in terms of coding?
First of all, let me start:
- use classes, and sub classes to override behaviour
- use one convention for all your variables, don't do i1, i2, i3, etc.
- do not do this:
Code:
int i =0; // set i to 0
- use assertions wherever possible, to assure your assumptions are correct
So, what do you suggest?