Discover screenwriting conventions, include the articles, news, trends, analysis and practical advice about screenwriting conventions on alibabacloud.com
The formation of a new team is a huge problem, especially for students who have just graduated, they need to strengthen their learning and training in this area. Last week, I explained the. NET Programming specification to our new colleagues. By the way, I also reviewed the programming specification. Because there are not many preparations in the early stage, and the company does not have such documents, write down the documents and keep them for future use. These are just some of the
Label: style blog color ar SP data Div Log Code
The core of code first is Convention. These default rules allow us to create models using our own classes. The EF framework requires that a class must have a key attribute. Rule Conventions: if an attribute is in the form of ID or class name + ID (such as patientid), this attribute is automatically configured as a key. If the attribute meeting this rule cannot be found, an exception will be thrown durin
There are a few simple rules to follow when writing module code using Sea.js.
Just write and debug when the specification!!! The built-in code does not have to follow these conventions at all!!!!!!
1. Correct spellingThe first parameter of the module factory construction method must be named require .Error! Define (function (req) { //...}); //correct! Define (function (//...}); 2. Do not modifyDo not rename the require function,
This article mainly and everyone to share the CSS naming specification can save Debug time related knowledge, interested friends to see together, hope to help everyone. Debug CSS is a time-consuming operation and can save a lot of debug time if you have a good naming convention.
Comment: Debug CSS is a very time-consuming operation, if you have a good naming specification can save a lot of Debug time.
Use hyphens ('-') to separate strings
You may be used to naming a small hump in Javascript:
v
there are similar things in the module, and if you don't make them into components and extensions, you can also use descendant selectors and extensions.
Descendant selector:. M-login. btn{}.
Descendant selector extension:. m-login. Btn-1{},.m-login. btn-dis{}.
You can also take the standalone state classification (. Z) method:. M-login. btn.z-dis{}, and then use: class= "btn Z-dis" like this.
Note: This method is used for class selectors, and it is not necessary to use the l
that this nomenclature was invented by a Hungarian programmer named Charles Simonyi, who later spent several years at Microsoft, and the nomenclature spread through Microsoft's various products and documentation. Today, most programmers use this nomenclature, no matter what software they use to develop them. The starting point of this nomenclature is to combine the order of magnitude: attribute + Type + object description, so that programmers make variables with a visual understanding of the ty
documents are expressed in a modular format. The approximate format is as follows:‘-------------------------------------------' Table name: Tbuser_info' Founding man: Uam_richard' Date: 2004-12-17' Version: 1.0' Description: Save user profile' Specific content:' UserId int, automatic incremental user code' UserName char (12) User name‘ ......‘--------------------------------------------Naming conventions in CSS classes and IDsWeb developers can iden
Naming conventionsThe most important consistency rule is naming management. The naming style quickly learns what the name represents: type? Variable? Function? Constant? Macro...? You don't even need to find a type declaration. The pattern matching engine in our brains can handle these naming conventions very reliably.Naming rules are arbitrary, but they are more consistent than they are by personal preference, so no matter what you think, the rules a
Sometimes there are similar things in the module, and if you don't make them into components and extensions, you can also use descendant selectors and extensions.
Descendant selector:. M-login. btn{}.
Descendant selector extension:. m-login. Btn-1{},.m-login. btn-dis{}.
You can also take the standalone state classification (. Z) method:. M-login. btn.z-dis{}, and then use: class= "btn Z-dis" like this.
Note: This method is used for class
long names (less than 15 letters for normal selection)
6, avoid the use of similar names, or just the case of different names
7. Avoid using underscores (except static constants, etc.)
2. Identifier type description1. Naming of packages (package)The package name should be in full English descriptors, which are made up of a lowercase word. And the prefix of the package name is always a top-level domain,Usually com, edu, gov, mil, net, org, etc.;such as: Com.yjhmily.test2. Naming of
To find the minimum number of conventions, the most easy to think of is Euclid algorithm, the algorithm is relatively easy to understand, the efficiency is very good. Also known as the Euclidean method.For any two number A, a (a>b), D=GCD (A, A, b), gcd (b) =gcd (B,A%B)Proof: Make r=a%b, that exists K, make a=b*k+r, then r=a-b*k; obviously R>=0, r%d= ((a%d)-(b*k)%d)%d, because a%d=b%d=0, so r%d=0;So GCD (A, A, b) can be transferred to GCD (b,a%b), the
used identifiers in a program, and the naming conventions of variables are the most important part of a set of C + + naming conventions:1 . Name: The variable name consists of the scope prefix + type prefix + one or more words. A variable is combined with a word that starts with a lowercase letter, and the first letter of the second word is capitalized. For example: int ndrawmode. The variable cannot be lo
One, Java file naming specification1. Package NameThe name must all be in English lowercase letters, prohibit the use of "underline" characters. (in addition to constants, the use of underscore characters is not recommended in Java naming conventions)Project package naming rules:2.class/object, InterfaceClasses and interfaces using the big hump naming methodAbstract class uses "abstract" as the beginning of a class namingException class naming uses "E
byte
char
double
float
int
long
short
null
True
False
Variable reference
Super
This
void
Reserved words
Goto
Const
standard naming Conventionsclass Name: first letter uppercase, the rest lowercase. If more than one word is composed, the fi
contains a word abbreviation, each letter of the word should be capitalized, such as: Xmlexample, One more naming technique is that because a class is designed to represent an object, you should choose a noun when you name the class.For example: GraphicsName of method (first letter lowercase, letter start uppercase)The first word of the name of the method should begin with a lowercase letter, and the following words begin with a capital letter.Example: DrawImageName of the constant (all upperca
CSS naming conventions OneThe name of the variable in JS is best used camel case Hump-style nomenclature, but CSS is more suitable for the Red-box naming specification.CSS naming conventions two BEM Naming conventionsB=>block e=>element M=>modifier1. subassembly sub-components are named with two underscores Stick-man__head2. The decoration of the component is named with two short lines stick-man--red3. With
Preface
Because of the frequent use of C + +, Java, and C # as a development language in development work, the problem of naming conventions often causes me some trouble. On the one hand, there is no single standard answer to the naming code, on the other hand, although the naming of the language is not a fixed form, the style of three languages is not the same, but also each has some unique characteristics. In the process of writing code, the naming
coding efficiency will be much lower. We must standardize our naming, let us more professional!
Today we introduce three kinds of naming rules on the basis of previous knowledge. These three naming conventions apply not only to the CSS and HTML encoding described above, but also to other types of programming webjx.com. They are: Camel nomenclature, Hungarian nomenclature, Pascal nomenclature. Below we give the introduction separately:
Camel-style nom
Continue
function
This
With
Default
If
Throw
Delete
Inch
Try
Do
instanceof
typeof
The above is the reserved word of ecma-script, of course, there are some JS special words, they are reserved words in the browser, these can not be used as variables, such as the following table:
Alert
Eval
Location
Open
Array
Focus
prefixes for three libraries are now given:①, the General function library, with cm as the prefix.②, the three-dimensional function library, using the VR prefix.③, the image function library, using the IMG prefix.For macro definitions, the result code is prefixed with the same prefix.5. Naming conventions for file names (including dynamic libraries, components, controls, engineering files, and so on):The name of the filename requires the content of t
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.