The following 13 tips Make your code easy to understand and maintain for a long time.
1. Comment on different levels of code
For different levels of code blocks, you must use a unified method for comments. For example:
Each class must contain a
CSS comments, naming, inheritance, style sorting, and other CSS skills I. Comments
Comments in CSS are very important when you create an xhtml + CSS website. When creating CSS Styles, you should keep comments on your own. In general, I am used to
I. Comments
Comments in CSS are very important when you create an xhtml + CSS website. When creating CSS Styles, you should keep comments on your own. In general, I am used to writing comments in the format of "/* Comment content */", because in
Huang Bo's first film "a show" since August 10 in the national release, has been 10 days, its starring lineup is strong, I believe many audiences are also directed at the stars.At present, "a show" in the cat's eye has been nearly 600,000
Comments
Annotations are painful to write, but are important to ensure the readability of the code, and the following rules describe what should be commented on and where the comment is. Remember, of course, that annotations are really important,
Address: http://blog.jobbole.com/586/
ManyProgramThe employee is writingCodeOften do not pay attention to the readability of the Code, allowing others to spend more time reading the code. In fact, as long as programmers add comments to the Code
Note
Software Documents exist in two forms: external and internal. External documents (such as specifications, help files, and design documents) are maintained outside the source code. Internal documents are composed of comments written by
Article List page pagingA. Loading JQuery librarysince it is jquery-driven Ajax, it is necessary to load the jquery library.
Two. Article List formatin your Article List page (home index.php, archive archive.php) you need to ensure that you have
Address: http://www.yeeyan.com/articles/view/maguschen/23347
This article is written by Jos é M. aguilar was first published in Spanish in his excellent blog. After that, timm Martin translated and modified the article with the authorization of Mr.
Many text editors has advanced Find (and replace) features. When I ' m programming, I-like-to-use a editor with regular expression search and replace. This feature was allows one to find text based on complex patterns rather than based just on
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.