other similar rules. Programmers need to read more excellent programs and accumulate experience to make good function naming.
. Function Annotation
Functions automatically generated by the system, such as mouse action response functions, do not need to be commented out or explained too much;
For a self-compiled function, if it is a key function of the system, the information of the function must be indicated at the top of the function implementation section. The format is as follows:
/**
Document directory
1. Use abbreviations
2. Avoid using hack
3. Use white space
4. Remove unnecessary structures (frameworks) and reset (resets)
5. Ensure that CSS can be maintained in the future.
6. Record your work
Summary
As a web designer (front-end engineer), you may still remember the suggested webpage size: One webpage (including HTML, CSS, javacript, Flash, and graph ).Chip) Try not to exceed the size of 30 kb, with the increasing si
I. Use CSS abbreviations
Using abbreviations can help reduce the size of your CSS file and make it easier to read. For the main rules of CSS abbreviations, refer to "common CSS abbreviations syntax summary", which is not described here.
Ii. Define the unit unless the value is 0
Unit that forgets to define the size is a
attributesIf ul> li. item $ * 3 is entered, the following code is generated:Html code
// Of course you can change it to ul> li # item $ * 3. The result is as follows:
Ii. CSS abbreviations1. ValueFor example, to define the width of an element, you only need to enter w100 to generateCss code
Width: 100px;
In addition to px, you can also generate other units, such as input h10p + m5e. The result is as follows:Css code
Height: 10%;
Margin: 5em;
Organization Alias List:
P in
I. Use CSS abbreviations
Using abbreviations can help reduce the size of your CSS file and make it easier to read. For the main rules of CSS abbreviations, see common CSS abbreviations syntax summary, which is not described here.Ii. Define the unit unless the value is 0
Unit that forgets to define the size is a c
will give a general goal of learning computer English in the following table:
Learning objectives of Computer English
Mid-and mid-level general IT industry staffFamiliar with basic terms of Computer English; familiar with common syntaxes and usage in Computer English; able to read the English interface and online help and simple operation manual with the help of dictionaries, and read regular reads of 70-90 words/minute. Familiar with frequently used terms and
be commented to explain their meanings and so on.Four naming conventions1: The names of variables, classes, interfaces and packages should be in English or Chinese initials. It is also not possible to use Chinese characters for naming. Use mixed case to improve the readability of the name. Generally lowercase letters should be used, but the first letter of the name of the class and interface, and the first letter of any intermediate word should be capitalized. The package name is all lowercase.
read and easier to understand. They can also provide some information on identifying features, which helps to better understand the code and the application.1) Rule one: use full English descriptors that can accurately describe variables, functions, prototypes (prototype). It is forbidden to use Hanyu Pinyin, unrelated words and Chinese characters for naming, examples: firstname,listallusers or corporatecustomer, etc.;2) rule two: minimize the use of abbrev
describes several common structure modes and usage methods.
CSS Structure Design Based on Style Features
CSS Structure Design Based on Functions
CSS import and Combination Based on page requirements
6.5 use CSS abbreviations
CSS abbreviation refers to the compilation of multiple CSS attributes in one row. This method can reduce a lot of code and make the code easy to read and understand.
6.5.1 font abbreviat
elements, you can use the * symbol. For example, ULGT;LI*3 can generate the following code: HTML code
7. Define multiple elements with attributes If you enter ul>li.item$*3, the following code will be generated: HTML code
Second, the CSS abbreviation 1. Value For example, to define the width of an element, simply enter w100 to generate CSS Code
width:100px;
In addition to PX, other units can be gen
points. Wait a minute.The appropriate calling method of the function is specified in the comment, and the method of handling the return value is described in detail. In the comments, emphasize the danger aspect of the call, where there may be an error.2.5 Considerations for commenting(1) The proposed side write code side comments, modify the code at the same time to modify the corresponding comments to ensure that the comments and code consistency. Comments that are no longer useful are to be d
they are commonly used abbreviations of slang nature3.1.4 is case-sensitiveDo not assume that all programming languages are case-sensitive, that this is not the case, and that names should not be distinguished only by capitalization.3.2 General Naming conventionsThis chapter describes some common naming conventions, involving the choice of words, abbreviations, the use of acronyms, and how to avoid using n
the "vowel", and the long Word may be abbreviated by the first few letters of the word; some words are generally recognized abbreviations. For example: temp->tmp, flag->flg, statistic->stat, increment->inc, message->msg and other abbreviations can be basically recognized by EVERYONE.(2) If a special convention or abbreviation is used in a name, a note shall be Provided. The
addition, the name of the complex namespace must be used when the complex number is required. For example, use System. Collections instead of System. Collection. However, when you encounter abbreviations, you do not need to use the plural. For example, use System. IO instead of System. IOs.
The same name cannot be used for namespaces and classes. For example, after a class is named Student, Student is no longer used as a namespace.2. Class
Class nami
Interface implementation Class –> Xxximpl.java
Persenter–> Xxxpersenter.java
Public parent class –> Baseactivity.java, Basefragment.java,-Baseadapter.java, etc.
Util class –> Logutil.java
Database Class –> Basesqlitedbhelper.java
Naming conventions for variables采用驼峰命名规则。Java Common variables:
Resultstring
UserBean
Loginpresenter
Android Control variables:
Loginbtn
Inputpwdet
Shownametv
Some people recommend using the "control
The naming convention I use is Google's specification, and the following is excerpted from the Google CPP style guide.The most important consistency rule is named management, and the naming style directly determines that named entities are: types, variables, functions, constants, macros, and so on, without looking up entity declarations, and the pattern matching engine in our brains relies on these naming conventions.Naming rules are arbitrary, but consistency is more important than naming accor
is a hump-named method, the first letter of the first word in lowercase, and the first letter of the following word capitalized, looks like a camel; Imydata is a Hungarian nomenclature, Its lowercase i describes its form, followed by the same name as Pascal, indicating the purpose of the variable.3.2 Basic principles of the nomenclature(1) The name of the identifier should be clear, clear, have a definite meaning, while using the complete word or everyone can understand the basic abbreviation,
follows:height:10%; List of unit aliases:
p =%
E means EM
X means ex
2. Additional PropertiesMaybe you've already learned some abbreviations, such as @f, that you can generate:{ font-family:; src:url ();}Some additional options, such as Background-image, Border-radius, Font, @font-face,text-outline, Text-shadow, etc., can be generated by the "+" symbol, such as input @f+, will be generated:{ font-family:
Tags: gdb c + + Linux GNU If the abbreviation is unambiguous, you can abbreviate a GDB command to a few letters at the beginning, or you can repeat the GDB command with the ENTER key. You can also Use the TAP key to make gdb complete the remainder of a command (or to tell you which commands to choose, if more than one command is optional). 3.1 Command syntaxA GDB command is a separate input line. There is no length limit. The command starts with a command name, followed by the arguments suppl
I,Environment Settings
First, remove the following options in the VS development environment:
Adjust indentation when pasting
Place the left braces of the type in the new line
Place the left braces of the method in the new line.
Place the left braces of the anonymous method on the new line.
Place the left braces of the control block on the new line.
Place "else" on a new line
Place "catch" on a new line
Place "finally" on a new line
Check box removed.
II,Naming rules
1) versatility
L The total
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.