Discover screenwriting conventions, include the articles, news, trends, analysis and practical advice about screenwriting conventions on alibabacloud.com
type varies by typeResult set DataSet Getbyusername (String UserName)//input parameter type varies by typeBLL The class name Sysuserbll method is consistent with the Dal classThe stored procedure naming table corresponds to the Dal method1. Adding Up_tb_sysuser_Add2, modify Up_tb_sysuser_Edit3. Delete Up_tb_sysuser_Del4. Read a single entity Up_tb_sysuser_Get by ID5, according to the conditions of the page Up_tb_sysuser_PagedIf there are special methods, rules such asSearch by name Up_tb_sysuse
Date Created* @version 1.00*/2. attribute CommentYou must precede each property with a property comment, and the comment template is as follows:/** Tip Information */Private String STRMSG = null;3. Method CommentYou must add a method comment before each method, and the comment template is as follows:/*** Detailed instructions for using the class method** Instructions for use of @param parameter 1 parameter 1* @return A description of the return result* @throws exception type. The error code ind
instance of an abstract class cannot be created.If the first operand of instanceof is null, the instanceof operator returns false, regardless of the type of the second operand.Tips for implementing the high-quality equals method:Use the = = operator to check if the parameter is a reference to this object.Use the instanceof operator to check if the parameter is the correct type.Convert the parameters to the correct type.For each critical field in the class, check that the field in the parameter
to the above 4 words meaning analysis, and in the guarantee of uniqueness, using the first 4 letters of each word as a prefix, exactly and " Com "also made a distinction. As follows:Indi :An individual project, a project that is initiated by an individual but not done on its own, may be public or private, and the copyright is primarily the originator.The package is named "Indi. Initiator name." Project name. Module name ... ".Pers :Individual projects, which are individual initiation, completio
1 package, module naming rules: All are named in lowercase letters. For example: Import random2 class, object naming rules: classes are capitalized on the first letter of each word, other lowercase letters such as: Class MyFamily:, private properties of the class, private methods are prefixed with two underscores, the object accesses properties and methods in the class through a point operator. The first letter of the method name is lowercase, and then the first letter of each word is capitalize
abbreviation for TXTThe object abbreviation is objCount abbreviation for CNTNumber is abbreviated to NUM, and so on.Leading suffix underlineA leading underscore: represents a non-public.One suffix underscore: avoid keyword collisions.Two leading underscores: used when naming a class property that causes a name conflict.Two leading and suffix underscores: "Magic" (with special-purpose diagrams) objects or attributes, such as __init__ or __file__. Never create names like this, just use them.* NOT
Although Google is now the boss, Python naming is often followed by Google, but the individual still feel that the camel name and underline mixed together a little uncoordinated.Or simply underline, but the more you hit an underscore is the cost of hand, or like a Java naming style.ModuleName, PackageName, ClassName, MethodName, Exceptionname, functionname, Global_var_name, Instancevarname, Functionparametername, Localvarname.Complaining to grumble, the new release of the 3.6 inside are full of
"personal" word search, there are "individual, personal, private, one-man", further to the above 4 words meaning analysis, and in the guarantee of uniqueness, using the first 4 letters of each word as a prefix, exactly and " Com "also made a distinction. As follows:Indi :An individual project, a project that is initiated by an individual but not done on its own, may be public or private, and the copyright is primarily the originator.The package is named "Indi. Initiator name." Project name. Mod
HTTP://LPACEC.ITEYE.COM/BLOG/25180 Package Name: The package name is all lowercase nouns, the middle can be separated by points, for example: java.awt.event;Class Name: Capitalized, usually composed of multiple words of a class name, requiring that the first letter of each word should also be capitalized, such as Class Helloworldapp;Interface Name: The naming convention is the same as the class name, for example interface Collection;Method Name: Often composed of multiple words, the first word i
Python Variable Naming conventions1. To have descriptive2. Variable names can only be: numbers, letters, can not be spaces or special characters, such as: (#?. ,¥$*~!) etc.3. Cannot be Chinese4. Cannot start with a number5. Reserved characters cannot be used, as follows:[' and ', ' as ', ' assert ', ' Break ', ' class ', ' Continue ', ' Def ', ' del ', ' elif ', ' Else ', ' except ', ' exec ', ' finally ', ' for ', ' F ' Rom ', ' Global ', ' if ', ' import ', ' in ', ' was ', ' lambda ', ' not '
, contract, etc.2. Database naming specificationA, database name: project name or code + "DB"B, view/table naming: Easy-to-understand uppercase English wordsC, field name: Use a number of easy-to-understand uppercase wordsThe singular plural of words should be consistent (such as the uniform use of odd);Prefix to be consistent, avoid confusion (such as table: T_, view: v_, column field: C_, also can be divided by System module), to avoid and DB reserved word repetition;Depending on the database,
1. Project NameFirst Capital + upper case Hump,ProjectName2. Module name and package nameAll lowercase + underline humpModule_name package_name3. Class name, exceptionFirst Capital + upper case Hump,Class ClassName:, Exceptionname4. Global variables, constantsUse ALL Caps + underline humpGlobal_var_name,constant_name5. Method name, function name, remaining variables, arguments, instanceAll lowercase + underline humpMethod_name,function_name,instance_var_name, Function_parameter_name, Local_var_n
Go Language Bible-interface1. Interface types are abstractions and generalizations of other types of behaviorThe uniqueness of the interface type in 2.Go language is that it satisfies the implicit implementationThere is another type in the 3.Go language: the interface type. An interface type is an abstract type4. One type is free to replace with another type that satisfies the same interface, called replaceable (LSP Richter replacement)Exercise 7.1: Use the idea from bytecounter to implement a c
Well-known variable naming conventionsCamel Labeling MethodThe first letter is lowercase, and the next letter begins with an uppercase character. For example:var testvalue = 0, secondvalue = "HI"; Pascal Labeling MethodThe first letter is capitalized, and the next letter begins with an uppercase character. For example:var testvalue = 0, secondvalue = "HI"; Hungarian type marking methodAppends a lowercase letter (or a lowercase sequence) to a variable named after the Pascal notation, indicating t
Https://www.cnblogs.com/wolf-bing/archive/2013/06/12/3132594.htmlOne, package Name, module name, local variable name, function nameAll-lowercase + underline humpExample:this_is_varSecond, global variablesAll caps + Underline humpExample:global_varThird, class nameFirst-Letter Capital HumpExample:classname ()Four, about the underline
Starting with a single underscore, which is a weak internal use identifier, from M import *, the object will not be imported (Python is all objects).
A vari
record trigger usage tutorials and Naming Conventions 1 1, Introduction to triggers 1 2, examples of triggers 2 3, trigger syntax and function 3 4, example one: row-level triggers 4 5, example two: row-level triggers 4 6, example three: Insteadof triggers 6 7, example four: statement-level triggers one 8 8, example five: statement-level triggers bis 9 9, example six: Package-encapsulated trigger code 10 10, trigger naming convention 11 1, Introduct
In the previous essay, we tested Login_controller, and we used a lot of rails built in assertions and get,put to test it. Take a look at some of the rails ' conventions on functional testing this time.
1.HTTP requested methods (HTTP request method)
The following methods are used to simulate HTTP requests and receive a response (response)
Get () the put ()
post () The
Delete (
) head ()
Each of these five functions has the same four parameters, wi
--Check for field names that do not conform to the database naming conventions
Select Table_name,column_name,data_typeFrom User_tab_columnsWhere column_name in--(Select keyword from v$reserved_words)(' ACCESS ', ' ADD ', ' All ', ' ALTER ', ' and ', ' any ', ' as ', ' ASC ', ' AUDIT ',' BETWEEN ', ' by ', ' CHAR ', ' CHECK ', ' CLUSTER ',' COLUMN ', ' COMMENT ', ' COMPRESS ', ' CONNECT ', ' CREATE ', ' current ',' DATE ', ' DECIMAL ', ' DEFAULT ', '
Programming | specification
Anyone can write code! A few months of programming experience allows you to write "Running applications." Make it easy to run, but coding in the most efficient way requires more effort!
You know, most programmers are writing "run code," not "efficient code." We mentioned earlier in this guide course, do you want to be your company's "Most distinguished professional"? Writing "Efficient Code" is an art that you must learn and practise.
Naming
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.