ABSTRACT

Probably the single-most overlooked task of any developer, particularly in crunch time, is commenting code. Comments are invaluable when handing code off to another developer or even just returning to it later. The convention is usually the more comments the better, but this can actually sometimes make code harder to read. Here are a few tips for commenting your code:

● Don’t comment the obvious — If a line of code simply declares a variable called “ player, ” it should be fairly self-explanatory what is happening; extra comments like “ //CREATING PLAYER OBJECT ” simply clutter up the code.