Code comment writing standards during web page production

Code comment writing standards during web page production
<br />I have summarized the annotation writing standards used in my work. There is no technical content, it is just used to unify the production method and facilitate maintenance. It includes four parts: " Regional Comments ", " Single-Line Comments ", " Comment Levels " and " Assisted Comments ".
Most students use the method of area annotation, which starts with "annotation content begins" or "annotation content ends", "start" or "end", etc. In comparison, starting with "S" or "E" can be used faster. For example, you only need to write the start or end comment once, then copy it, and change "S" or "E" to quickly complete the area annotation.
Area annotation <br />In actual work, it is sometimes unclear whether the annotation should be above or below the label. To avoid this situation, the annotation information is uniformly written before and after the start and end of the area label, and starts with "S" or "E" to indicate the start or end of the area annotation.
example:
<!--=S Comment content-->
<div>
...
</div>
<!--=E Comment content-->
/*=S Comment content*/
.class{
...
}
.class{
...
}
/*=E Comment content*/
Single-line comment <br />Comment information should be written in the content area to be commented on. Example:
<div>
<!--Comment content-->
...
</div>
.class{
/*Comment content*/
...
}
Previous Page 1 2 Next Page Read Full Article

<<:  MySQL high availability cluster deployment and failover implementation

>>:  Detailed explanation of Apache SkyWalking alarm configuration guide

Recommend

Solve the problem that IN subquery in MySQL will cause the index to be unusable

Today I saw a case study on MySQL IN subquery opt...

JavaScript Basics Variables

Table of contents 1. Variable Overview 1.1 Storag...

Vue Element-ui form validation rule implementation

Table of contents 1. Introduction 2. Entry mode o...

Introduction to the functions and usage of value and name attributes in Html

1. The value used in the button refers to the text...

How to create scheduled tasks using crond tool in Linux

Preface Crond is a scheduled execution tool under...

Recommend some useful learning materials for newbies in web design

Many people also asked me what books I read when ...

Util module in node.js tutorial example detailed explanation

Table of contents Starting from type judgment Str...

CSS achieves highly adaptive full screen

When writing my own demo, I want to use display:f...

MySQL log trigger implementation code

SQL statement DROP TRIGGER IF EXISTS sys_menu_edi...

7 interesting ways to achieve hidden elements in CSS

Preface The similarities and differences between ...

Sample code for CSS image animation effects (photo frame)

This article introduces the sample code of CSS pi...

A brief analysis of MySQL cardinality statistics

1. What is the cardinality? Cardinality refers to...

How to implement Nginx reverse proxy for multiple servers

Nginx reverse proxy multiple servers, which means...

Linux server quick uninstall and install node environment (easy to get started)

1. Uninstall npm first sudo npm uninstall npm -g ...

Teach you 10 ways to center horizontally and vertically in CSS (summary)

A must-have for interviews, you will definitely u...