To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
Code CritiqueHaving someone critique your code is always a great way to hone the skills. Stop in and post your code to see what your peers may have done differently.
the coding standard that I use recommends spaces instead of tabs because tabs vary from program to program. For number of spaces it's a bit squishing saying should be 3 or 4 but must be consistent once a number is choosen.
Tab damage should only throw off formatting in the second case, and even then only if tabs are one character wide....
__________________
On two occasions I have been asked [by Members of Parliament], "Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?" I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question.
Last edited by Weedpacket; 10-06-2003 at 04:51 PM.
Excluding any holy war on where exactly braces should be placed, I tend to use Weedpacket's version.
I usually use 4 space indents though, since 8 seems rather extreme to me, even if it is more "traditional".
2 doesnt quite give the visual differentiation of indent levels.
I'm currently using them for the Site Control project (not to be confused with SiteControl ). There are some things in the standards docs that I disagree with, but for the most part, it makes code much easier to read and for someone else to go through and see what is happening.
I'm currently using them for the Site Control project (not to be confused with SiteControl ). There are some things in the standards docs that I disagree with, but for the most part, it makes code much easier to read and for someone else to go through and see what is happening.
I agree with everything in that except for tabs, and the only thing i do wrong is the use of the ternary operator for REALLY complex things. So that's why i could read the phpBB source so easily....
__________________
there's no place i can be, since i found serenity.