09-14-2008, 12:29 PM
I think if we are to clean up the code, it might be a better idea to set out some guidelines?
I've seen some of your comments Jay, and personally I dislike this format:
I don't like too much spacing, but it can be a little harder to read. The // should be seperated from the comment itself as follows in my opinion:
.. cleaner. Another thing I haven't quite picked up on with you, but I think we should have some kind of syntax we use..
Personally I like the following:
There's a space between the ) and {, but the last } is not indented with the code (as I have seen in some old chunks of LVP), meaning it's easy to see where things start and end.
Any suggestions?
I've seen some of your comments Jay, and personally I dislike this format:
Code:
//comment lala
I don't like too much spacing, but it can be a little harder to read. The // should be seperated from the comment itself as follows in my opinion:
Code:
// Comment lala
.. cleaner. Another thing I haven't quite picked up on with you, but I think we should have some kind of syntax we use..
Personally I like the following:
Code:
if(expression) {
statements;
}
There's a space between the ) and {, but the last } is not indented with the code (as I have seen in some old chunks of LVP), meaning it's easy to see where things start and end.
Any suggestions?