Best PracticesProperly Commenting and Indenting Code


If you are new to web development or have been working with HTML for a while, you probably haven't had to delve into the world of custom-generated code too much. However, as you progress in your web development skills, you will be required to create more complex web applications that will, in turn, require more complex code. This means that down the road, you'll have to get your hands a bit more dirty when it comes to writing custom code.

One of the best practices you can get into when you start writing code is to add the appropriate comments and indentation to your code. Appropriate comments will help you, and others who review your code, understand what the code is doing. In addition, by adding comments that document the purpose of a code block, you help yourself when it comes time to troubleshoot issues with the code.

On the same note, proper indentation makes code much easier to read. With properly indented code, you can follow the workflow much more easily by seeing that certain indented lines of code are dependent on those that are outdented.

So, before you are called on to write that next web application that uses a ton of custom code, consider developing a coding style of your own that includes proper documentation through comments and correct indentation.



Special Edition Using Macromedia Studio 8
Special Edition Using Macromedia Studio 8
ISBN: 0789733854
EAN: 2147483647
Year: 2003
Pages: 337

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net