YII Preference specification is better than configuration. Following the specification allows you to create a mature yii application without the need to write and maintain complex configurations. Of course, when necessary, YII can still be customized in almost all aspects through configuration.
Below we explain the recommended development specifications in YII programming. For simplicity's sake, let's assume that WebRoot is the directory where the YII
Having learned about the Java EE recently, it is mentioned that the study of this project has to mention its 13 specifications:The Java EE platform consists of a suite of services, application interfaces (APIs), and protocols that provide functional support for developing Web-based multi-tier applications, with a simple description of the 13 technical specifications in the Java EE:1.JDBC (Java Database Connectivity):The JDBC API provides a unified way
I. Concepts of opening data and opening data
It is usually called a fully-open sheet of raw paper split according to national standards. In order not to waste paper, facilitate printing and binding production operations, cut the whole paper into several smaller sheets with equal area, which is called the number of opening, and bind them into a book, which is called the number of opening.For the text of a book, The number of openings is the same as the meaning of the book, but for the number of
Recently, Google released C ++CodeStyle specifications can be found here: http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml.
This is a detailed C ++ development code style specification. Like many other companies, this specification specifies a large number of questions about what to do and what not to do, excerpt from several interesting aspects:
1. Try to avoid writing exceptions as much as possible. I am afraid this is intolerable
reading.V. Text specification1, the first paragraph of the article must appear the page keyword, and can be the first paragraph appeared in some of the page keywords bold.2, the end of the article also to appear page keywords, as far as possible the page keyword in the end part of the article.3, page keywords in the text of the article to have a certain proportion of distribution (under normal circumstances is 2-8%), in the premise of not affecting reading, some pronouns can be replaced with pa
I used to write CSS without a discipline and then read a few blog about CSS writingOriginal address: http://www.qingdou.me/2142.htmlCSS Writing Order1. Position attributes (position, top, right, z-index, display, float, etc.)2. Size (width, height, padding, margin)3. Text series (font, Line-height, letter-spacing, color-text-align, etc.)4. Background (background, border, etc.)5. Other (animation, transition, etc.)CSS writing specifications use CSS abb
Java advanced (iii) ------ java programming specifications-Comparison of FindBugs, PMD, and CheckStyle code quality detection tools
In the previous article, we have learned how to automatically set the code format in myeclipse.
During the development process, we will find that we do not have much time to perform code check and review. However, we can use tools to automatically check the code to improve work efficiency. FindBugs, PMD, and CheckStyle a
I. modular specifications of js:
Server: commonjs
Browser end: AMD (abbreviation of "Asynchronous Module Definition", meaning "Asynchronous Module Definition ")Ii. Why AMD
The following code
var math = require('math'); math.add(2, 3);You must wait until the math. js loading is complete. Otherwise, the loading takes a long time.
Iii. define
Define (id ?, Dependencies ?, Factory );
Where:
Id: module id, which can be omitted.
Dependencies: the depe
Never noticed this before, because when you see some good web site source code, open their referenced CSS file format does not look like a specification. But luckily, I saw it yesterday. By enhancing the readability of the CSS specification, you can optimize page performance and resolve to repent.I've sorted out the CSS specifications I can understand, which may not be complete, but it does add some readability to the code.1. It is advisable to use tw
before custom variable, layout control variable does not add m prefix
Constant name, all uppercase, and between words with underscores3. Other specifications
Activity inherits Basefragmentactivity or swipebackactivity, you can use Butterknife annotations instead of Findviewbyid
Method
Split the bloated method, one thing for each method
Do the same logical approach, as close as possible to a piece, for easy viewing
D
The first part of this series introduces the basic wording of the JavaScript module, and today describes how to use the module in a canonical manner.VII. Specification of modulesFirst think about why the module is important?Because of the module, we can more easily use other people's code, want what function, load what module.However, this has a premise, that is, we must write the module in the same way, otherwise you have your writing, I have my writing, it is not messy set! This is even more i
1. Position attributes (position, top, right, z-index, display, float, etc.)2. Size (width, height, padding, margin)3. Text series (font, Line-height, letter-spacing, color-text-align, etc.)4. Background (background, border, etc.)5. Other (animation, transition, etc.)CSS writing specifications use CSS abbreviation propertiesCSS Some properties can be abbreviated, such as Padding,margin,font, and so on, so that the refinement of the code at the same ti
iOS Code specification:All code specifications follow the Apple SDK principles, not clear please visit the Apple SDK documentation or download the official demo view.1. Project section:Place the corresponding source files for each functional module in the project into the same directory, using the virtual directory.Referenced. A and related files. Separate use of directory storage. and indicated that it is the SDK2. Class:Name: Capitalize the first le
AMD specifications are here:https://github.com/amdjs/amdjs-api/wiki/amd The CMD specification is here:https://github.com/seajs/seajs/issues/242 AMD is the normalized output of the module defined by Requirejs during the promotion process.CMD is the normalized output of the module defined by Seajs in the process of generalization.Difference:1. For dependent modules, AMD is executed in advance and CMD is deferred. However, starting from 2.0, Requirejs
IOS Development Specifications Recommendations1. Streamline the code and return the value of the last sentence, this method has one advantage, all the variables in the code block, that is, only in the area of the code block, which means that you can reduce the naming pollution of other scopes. But the disadvantage is that the readability is poorNsurl *url = ({nsstring *urlstring = [NSString stringWithFormat:@ "%@/%@", baseurlstring , endpoint]; [Nsur
Here are 9 specifications for C # language naming:A) classRule 1-1 uses the Pascal rule to name the class name, which is capitalized on the first letter."Rule 1-2" uses a noun or noun phrase that can reflect class functionality to name a class."Rule 1-3" do not use specific meaning prefixes such as "I", "C", "_", and so on.The "Rule 1-4" Custom exception class should end with exception.The "rule 1-5" file name can reflect the contents of the class, pr
Translated from: http://blog.jobbole.com/56243/This article mainly describes the CSS3 transition specifications and differences in the use of different browsers, on specific solutions or how to avoid the problem of the comments can refer to another very insightful article, "All of you need to Know about CSS transitions." Alex Maccaw is talking about achieving a specific effect, and I'm going to talk about a technical background that focuses on issues
Note In the code writing process of importance, write code more than half a year can be deeply realized. Code that is not annotated is not a good code. For others to learn, at the same time for their own later to the code "upgrade" to see the Js/javascript Code annotation specifications and examples. From: http://www.56.com/style/-doc-/v1/tpl/js_dev_spec/spec-comment.htmlfile CommentsThe file comments are located at the very front of the file and shou
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.