Good Programming Practice? OK so one for the geeks, im just thinking of good programming practice techniques for revision. It's probs stuff I already do but the only one that really springs to mind is indentation of code so that its easy to read and maintain at a later date. Obviously there are alot more so some help would be appreciated
nowt worse than tryin to figure out wtf sum1 has dun to the code...comments please!!!!!! i always forget personally tho just wish other ppl wudnt
good naming conventions. small letter for the first work, capital for the second etc.... public class bigCheese Sensible names for variables, classes etc. Improves redability of code. Make variables private where possible. To help ensure integrity. loads of comments. Indentation.
cheers guys, i'll bash all that down in my exam today Revel I assume you mean a private variable in terms of that it only applies to that function? (I know these as Local variables, as opposed to global variables) Thats been hammered into us, its considered shit to do otherwise lol I do all that anyway like, just forgot I was doing it Cheers again
cheers guys, i'll bash all that down in my exam today Revel I assume you mean a private variable in terms of that it only applies to that function? (I know these as Local variables, as opposed to global variables) Thats been hammered into us, its considered shit to do otherwise lol I do all that anyway like, just forgot I was doing it Cheers again