I purely don't believe in sanitary code structure. Who says it has to be aligned and indented.. If you do it that way, it's easier to copy, crack, decode, etc. I like people that look at my code to think , "How the hell can that guy work with that mess"--
what do you think about structuring your html?
__________________
Please login or register to view this content. Registration is FREE 6,000+ Places to Advertise FREE with Please login or register to view this content. Registration is FREE & 25,000 Locals through statistical reference of traffic, quality, popularity, and more!
I don't know if you have clients, but if you do, they can look at the code too. Not aligning and indenting doesn't make it harder to copy or crack, it just signifies poor code quality and a project that would be hard to maintain.
Leading whitespace (spaces and tabs) at the beginning of a logical line is used to compute the indentation level of the line, which in turn is used to determine the grouping of statements.
And if you are so affraid that someone might use your code, why do you code anyway ?
__________________
Only a biker knows why a dog sticks his head out the window.
I generally indent if/then blocks, for loops, etc. However I rarely add comments to my code -- usually only when a block of code is particularly complex and hard to follow do I add a comment or two.
you should always keep your code fairly organized for a couple of reasons.
1. The client is paying for professional web design and horrific looking code is not professional.
2. no matter how well you know you own coding, if it is a complete mess it is going to be harder to work with than organized code.
3. you are more likely to get errors in the code if it is not organized because the organization allows you to easily point out opening and closing tags, typos, inproper tags, etc.
4. If the client or another designer needs to make an adjustment to your code it could take hours with completely unorganized code.
There really is no reason to not organize your code because it can be taken regardless. You are only going to hurt your reputation as a web designer if you use poor code structure.
__________________
SEO Compatible Please login or register to view this content. Registration is FREE
If you have large pages of code, or if you have several clients, I am sure you will start to indent and comment your code soon. It is easy to get lost even in your own code sometimes. I admit I am not the best with indenting, but I comment all over the place.
Why would you worry about people "stealing" your code?