Everyone has his own programming style, and it is inevitable to feel other people's programming style - modify other people's code. "Modifying other people's code" is a very painful thing for us. Because some codes are not so easy to read and maintain, letting another person modify other people's code may only end up modifying one variable and adjusting the calling timing of a function, but it will take an hour or more. Come read and clarify other people's code. This article will take you step by step to reconstruct a "component" that obtains the location - improving the readability and stability of your JavaScript code. The content of this article is as follows: Separate your javascript code. Functions should not rely too much on the external environment. Semantic and reusable components should focus on logic. Behavior is just encapsulation to form your own style of code. Separate your javascript code. The following piece of code demonstrates that it is difficult to read/modify. Code: (function (window, namespace) { var $ = wi
1. Teach you examples of writing more stable and readable JavaScript code
Introduction: Everyone has his own programming style, and it is inevitable to feel other people's programming style - modify other people's code. 'Modifying other people's code' is a very painful thing for us. Because some codes are not so easy to read and maintain, letting another person modify other people's code may only end up modifying one variable and adjusting the calling timing of a function, but it will take an hour or more. Come read and clarify other people's code. This article will take you step by step to reconstruct a 'component' that obtains the position - improving the readability and stability of your javascript code. The content of this article is as follows: Separate your javas..
2. Java&Xml Tutorial (7) Using JDOM to modify the content of XML files
Introduction: JDOM provides a very flexible way to operate XML files. Using JDOM is very simple and the code is concise and readable. Earlier we learned how to use JDOM to parse XML files. This section introduces how to use JDOM to modify the content of XML files.
3. Ten libraries you must know about Python
Introduction: Docopt. Ditch optparse and argparse and use docstrings to build elegant, readable, and (if you need it) complex command line interfaces. IMO created in 2013
4. parallels desktop 9 PHP Summary of the differences in PDO database operations between 51 and 52
Introduction: parallels desktop 9:parallels desktop 9 PHP Summary of the differences in PDO database operations between 51 and 52: Introduction Today I found php5.1.* and php5.2.* precompiled code in the database Differences occur during execution. Advantages of precompilation 1. Use placeholders to avoid entering data into SQL verbatim. Automatically handles escaping of characters such as quotes and backslashes - for added security. 2. "Prepare" a statement in advance, and then bind different values to achieve reuse every time it is executed. ——Commonly used for statements that will be executed multiple times in the future. 3. Highly readable. The code and database connection code are the same. Copy the code such as
#Introduction: It is better to have fun alone than to have fun together. Popularize framework knowledge and launch your own mature framework works and surrounding packaging libraries. Each file of the framework must be run in In utf-8 BOM-free encoding format, in order to prevent garbled characters. The file code is based on the principle of openness, [no disruption, no encryption, and highly readable]. It can basically handle daily problems. You can try the code. Another thing worth recommending is that there is a javascript editor in the included package library. The UBB parsing code is not provided, so you can take a look. Mutually
Introduction: Having fun alone is not as good as having fun with everyone. Popularize framework knowledge and launch your own mature framework works and surrounding packaging libraries. Each file in the framework must be run in utf-8 BOM-free encoding format to prevent garbled characters. The file code is based on the principle of openness, [no disruption, no encryption, and highly readable]. It can basically handle daily problems. You can try the code. Another thing worth recommending is that the attached package library includes javascript
7. Its peripheral packaging library
Introduction: It is better to have fun alone than to have fun with everyone, popularize framework knowledge, and launch your own Each file of the mature framework works and its surrounding packaging libraries must be run in the UTF-8 BOM-free encoding format to prevent garbled characters. The file code is based on the principle of openness, [no disruption, no encryption, and highly readable]. It can basically handle daily problems. You can try the code. Another thing worth recommending is that there is a javascript editor in the included package library, u
8. Solution ideas for framework works and their surrounding packaging libraries
Introduction: It is better to have fun alone than to enjoy the fun of everyone. Popularize framework knowledge and launch your own mature framework works and their surrounding packaging libraries. Framework Each file must be run in UTF-8 BOM-free encoding format to prevent garbled characters. The file code is based on the principle of openness, [no disruption, no encryption, and highly readable]. It can basically handle daily problems. You can try the code. Another thing worth recommending is that there is a javascript editor in the included package library. The UBB parsing code is not provided, so you can take a look. Phase9.
Access tutorial for importing/exporting each database--illustration
Introduction: ACCESS stores data with strong readability and easy data migration. We use it as a backup file for small data to facilitate import and export between various databases. Address of this article: http://blog.csdn.net/chen_zw/article/details/18896259 Local ODBC data source configuration: Whether exporting or importing, we must first configure the local ODBC data source,
10.
First look at JQuery (1) Necessary knowledge points of jquery selectors_jquery
Introduction: JQuery’s powerful selectors allow us to obtain Operate any element on the page, and it is easy to use and highly readable.[Related Q&A Recommendations]:
shell - How does Python achieve multiple interactions in one script?
The above is the detailed content of 10 recommended articles about readability. For more information, please follow other related articles on the PHP Chinese website!