Hello There, Guest! Login or Register


Clean up;
#1
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:

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?
Reply


Messages In This Thread
Clean up; - by tomozj - 09-14-2008, 12:29 PM
Re: Clean up; - by Badeend - 09-16-2008, 03:02 AM
Re: Clean up; - by dab - 09-16-2008, 05:28 AM
Re: Clean up; - by Pugwipe - 09-16-2008, 10:21 AM
Re: Clean up; - by tomozj - 09-16-2008, 04:19 PM