FIG-PHPPSR specification series 1-basic code specification 1. Introduction to FIG-PHP and PSR
The FIG-PHP has developed a series of PHP Development specifications, called the PSR, which is short for the Framework Interoperability Group, which is short for PHP Standard Recommendation. The FIG-PHP working group initially originated from the project representative's discussion of the commonalities between the two projects and found a way to work together
Basic Requirements
1.1 program structure analysis, easy to understand, the number of program lines of a single function cannot exceed 100.1.2What are you going to do? It should be simple, straightforward, and the code should be streamlined to avoid spam.1.3 try to use standard library functions and public functions.1.4Do not define global variables. Use local variables whenever possible.1.5 use parentheses to avoid ambiguity.
2. Readability requirements2.1 readability first, efficiency second.2.
Document directory
1.1 Conventions
1.2 table name
1.3 stored procedures
1.4 View
1.5 Index
Sequence 1.6
1.7 primary key
1.8 foreign key
2.1 provisions
2.2 field specifications
3.1 Integration
3.2 Query
3.4 Delete
3.5 modify
1 naming principles 1.1 Conventions
Ü refers to naming conventions for databases and database objects, such as tables, fields, indexes, sequences, and stored procedures;
Ü Use meaningful English words for naming.
baselx/LH, or 1000basezx interfaces that follow IEEE 802.3z one by one. Furthermore, Cisco is providing a 1000 baselx/LH interface that fully complies with the IEEE 802.3z 1000baselx standard, but its transmission distance on a single-mode optical fiber is as high as 10 kilometers, it is 5 kilometers farther than the ordinary 1000baselx interface. In short, with the continuous development of new functions, it is easier to upgrade these modules to the latest interface technology, so that the cus
Share PHP instances that comply with the PSR programming specifications, and phppsr programming instances
Preface
With regard to the development standard, it can be said that there have always been different styles, each of which has its own gameplay, and even more private. At present, several well-known frameworks in China (Yii, Laravel) have supported Composer and joined the PHP-FIG (php Framework Program Group ).
The automatic loading of Composer s
For engineers who are familiar with C + + or the Java language, JavaScript is flexible, easy to understand, and relatively loosely formatted for code. It's easy to learn and apply to your own code. Also because of this, JavaScript coding norms are often despised, the development process of tinkering, and eventually evolved into a follow-up maintenance personnel nightmare. The long-term value of software is directly proportional to the quality of the code. Coding
Why should we develop our own php coding specifications?
When we write code, a good coding specification can play a lot of undesirable effects for us. At least, it has the following benefits:1. improve our coding efficiency. Uniform Code makes it easy for us to copy and paste it!2. improve code readability.3. show our major. When others see our code, they find that the entire code writing process is uniform, and the code is immediately pushed up!4. fa
details about the specifications, see the specifications.2.4 each function has a description of the function header. For details about the specifications, see the specifications.2.5 comments can reflect the meaning of a major variable (structure, union, class, or object) when defining or referencing it.2.7 DEFINE a co
ArticleDirectory
I. Review in the previous chapter
Ii. Summary
Iii. Outline of this Chapter
Iv. Multiple Ways to separate concerns
V. Related Design Methods
Vi. Summary in this Chapter
VII. Series progress
8. next announcement
IX. Demo download
I. Review in the previous chapter
In the previous chapter, we mainly discuss the specific principles and norms in the system design specifications and principles. How to ac
Basic Requirements
1.1ProgramStructure analysis is easy to understand. The number of program lines of a single function cannot exceed 100.1.2 What are you going to do? It should be simple and straightforward,CodeStreamline and avoid spam.1.3 try to use standard library functions and public functions.1.4 do not define global variables at will. Use local variables whenever possible.1.5 use parentheses to avoid ambiguity.
2. Readability requirements2.1 readability first, efficiency second.2.2 k
Bluetooth Core Technology Overview (5): Bluetooth protocol specifications (irOBEX, BNEP, AVDTP, AVCTP ),
Keywords: Bluetooth Core Technology protocol irDA BNEP AVDTP AVCTP
Author: xubin341719 (You are welcome to reprint it. Please indicate the author. Please respect copyright. Thank you !)Correct the mistakes and learn and make progress together !!
Download link:Bluetooth PROFILE SPECIFICATIONS(Basically co
C # writing specifications
I. Naming
The naming scheme is the most influential help for understanding the logical flow of an application. The name should indicate "what" rather than "how ". By avoiding the name of the public basic implementation (which may change), you can retain the abstract layer that simplifies the complexity. For example, you can use GetNextStudent () instead of GetNextArrayElement ().
Naming principles:
Selecting the correct name
Of the 13 J2EE specifications (1) JNDI, j2ee13 specification jndi
Recently I was studying J2EE. I thought J2EE was also a high-level language similar to J2SE, c #, and vb. I didn't expect that when I learned the video, I realized that other languages are not like this.
J2EE is a set of technical architecture completely different from traditional application development. It contains many components, which can simplify and standardize the development an
Most of our routers use an external power adapter for power supply. To ensure the normal use of the router, the output specification of the external power adapter must match the router's power specification, which can be confirmed by the following methods.
Confirmation method
1
, the shell label to view the router's power supply specifications
The router is labeled with a power supply specification, as shown below:
The pow
CSS style writing specifications and css style Writing
Different teams may have their own specifications, or many people write what they think when writing CSS. There are no too many constraints.
I think there is still a need for CSS code standards. Especially with the cooperation of teams and multiple people, the standards are particularly important.
The list in this article is a set of good CSS writing st
[ASP. NET] Next-generation ASP. NET development specifications: OWIN, asp. netowin
I submitted my resume for the interview today...
This section contains the following contents:
OWIN Introduction
OWIN specifications
Katana
Hello World (3 hosts)
Custom Middleware
OWIN Introduction
OWIN (Open Web Interface For. Net)
OWIN is A. Net Web development architecture developed by the. Net open-source communi
The following is my summary of the development practices of the. Net platform. The technical specifications here mainly refer to the code specification, database design specification, Com and. Net interoperability specification in the development process. The essence of practice is a summary of the technical practices.
I. Code specifications
A good code style comes from the same code specification. Code wit
To standardize program code writing, improve code readability, reduce post-maintenance costs, and improve office efficiency, we recommend that you write programs in the future according to the following specifications:
I. Unify VBScript and ASP programming specifications:
(1) variable naming rules:
Because no variables need to be declared in ASP and VBScript, and the types of variables cannot be declared a
To standardize program code writing, improve code readability, reduce post-maintenance costs, and improve office efficiency, we recommend that you write programs in the future according to the following specifications:
I. Unify VBScript and ASP programming specifications:
(1) variable naming rules:
Because no variables need to be declared in ASP and VBScript, and the types of variables cannot be declared at
Ethernet port/slot to connect the port with the fiber optic network. GBIC can be used and exchanged on a variety of Cisco Products see Table 2), and can be port-by-port mixed with the 1000 BaseSX, 1000 BaseLX/LH, or 1000BaseZX interface following IEEE 802.3z. Furthermore, Cisco is providing a 1000 BaseLX/LH interface that fully complies with the IEEE 802.3z 1000BaseLX standard, but its transmission distance on a single-mode optical fiber is as high as 10 kilometers, it is 5 kilometers farther 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.