Efficient jQuery coding skills and jQuery coding skills
Cache variableDOM traversal is expensive, so we try to cache elements that will be reused.
1 // bad 2 h = $ ('# element '). height (); 3 values ('{element'}.css ('height', h-20); 4 5 // recommended 6 $ element = $ ('# elements'); 7 h = $ element. height (); 8 rows element.css ('height', h-20 );
Avoid global variablesJQuery is the same as javascript. In
C # Coding Standard-coding habits
1. Avoid placing multiple classes in one file.
2. A file should have only one namespace. Avoid placing multiple namespaces in the same file.
3. A file should not exceed 500 rowsCode(Excluding the code generated by the machine ).
4. The code length of a method should not exceed 25 lines.
5. Avoid more than five parameters in the method. Use the structure to pass mu
Java Development specification summary_code coding specification, java Coding
It is a good habit to gradually develop codes.
1. Basic Principles
Mandatory principle:1. The StringBuilder must be used for string addition;2. try... Catch usage
Try {} catch {Exception e. printStackTrace ();} finally {} // It Can Be Used in the Action on the outermost layer, and will not be used elsewhere;
Try {// program code}
Software Engineering: Summary of C coding practices, and summary of c CodingExperiment 4: the reusable linked list module is used to implement the experiment requirements of the command line menu applet V2.5.
The Reusable linked list module is used to implement the command line menu applet. When executing a command, a specific function is called as the execution action. The interface design of the linked list module must be general enough, the func
Reprinted please indicate the source: http://blog.csdn.net/horkychen
(Excerpt from msdn-coding techniques and programming practices)
Names)
Naming is most helpful for understanding the logical structure of a program. A name description is "what" is more important than "how. Naming can avoid exposing the underlying implementation, thus retaining an abstract layer, simplifying the complexity of the program. For example, you can use getnextstudent () in
..CSS Coding
CSS transform allows you to add CSS styles to any website and share your masterpiece through Transient connections. You can also invite others to help you improve your website. (Note: This tool is immune to Chinese websites )!
Skeleton
Skeleton is an application of CSS and JS, which can be used to quickly develop websites. Whether it's a 17-inch laptop or iPhone, it looks pretty good. .CSS3 Patterns Gallery
CSS3 Patterns Gallery prov
Copy Code code as follows:
Implementation class of Havermann encoding
public class Hffmancoding {
private int charsandweight[][];//[][0] is a character, [][1] holds the weighted value of the character (number of times)
private int hfmcoding[][];//Storage Haverman
private int i = 0;//loop variable
Private String hcs[];
Public hffmancoding (int[][] chars) {
TODO Construction Method
Charsandweight = new Int[chars.length][2];
Charsandweight = chars;
hfmcoding = new Int[2 * chars.lengt
In a page encoded with UTF-8, the URL encoded by the ASP built-in object Server.URLEncode () is not able to locate the file correctly, and the solution is to encode it using the JavaScript escape () function.
Coding comparison Program
ASP version
Copy Code code as follows:
Response.Write ("server object output Response.Write (Server.URLEncode ("ether.エーテル.gif"));
Response.Write ("Response.Write ("javascript function Encodeurl output Res
Abraham silberschatz, Henry F. korth, S. sudarshan, Yang Dongqing, Ma xiuli, and Tang Shiwei. Comprehensive and in-depth, well-detailed, and both popular and theoretical is a classic.
6. Author: Brian W. kernighan Rob Pike, translated by Qiu zongyan. Or it is better to read the practice of programming in English. It is recommended to teach beginners how to design programs instead of simply coding excellent books
Recently on the Internet read a very good post "programmer life must read the book" (My Tencent Weibo on the share of the link, interested in the click to see it), the post of the first picture is a radar map, This map is provided by ThoughtWorks, a leading enterprise in the global Software design and customization field, which divides the books that programmers are reading into four categories, each categorized into elementary, advanced, and high-lev
already a programmer.
27. Unix programming Art
It is useful regardless operating system you use.-J.F. SebastianThis book is useful no matter what operating system you use. -J.F. Sebastian
28. 45 habits of Practices of an Agile Developer/efficient programmer: Practices of Agile development
45 habits are divided into seven aspects: work attitude, learning, Software Delivery, feedback, coding, debugging and collaboration.
In each specific habit, a parad
Editor's note: August 4, 2008, StackOverflow user Bert F post questions: Which of the most influential books, is every programmer should read?
"If you can turn back the clock and return to the past, as a developer, you can tell yourself that you should read a book early in your career,Which book would you choose? I hope this book is rich in content and can cover a lot of things. ”
Many programmers respond by writing their own comments wh
books shorten the process of developing programming skills, and others may spend years.
The most influential book last year was the cathedral and market, which taught me how to operate the open source development process and how to handle bugs in my code. -John Channing
15. Programming Pearl River
Recommendation: 282
Although I have to be ashamed to admit that I do not understand half of the content in the book, I really recommend programming Pearl,
not rule out the waste companies expect fresh students come in to solve technical difficulties). BASIC programming literacy is not a stereotype, which includes the thinking ability of programming, coding style, and the degree of mastery of the language used. These things can be greatly improved by reading books and practicing more frequently. For programmers who have just entered the industry, improving th
Many programming friends like reading books. But why should I study? What books do I read? How many books are read? How to read? This has become a big problem. I want to talk about these issues. Note: It is best for readers of this article to have friends who have little time and hope to have a great harvest by reading some good
you use, this book is very useful. –j.f. Sebastian28.45 Habits of practices of an agile Developer/high-efficiency programmer: The path of agile development and cultivation45 habits, divided into 7 areas: work attitude, learning, software delivery, feedback, coding, debugging and collaboration.In every specific habit, start with a fallacy, then analyze it, then have the right approach and put yourself in the right hands to give you a personal "feel",
later "more effective C ++" both have a direct impact on my programming capabilities. As a friend said at the time, these books shorten the process of developing programming skills, and others may spend years.
The most influential book last year was the cathedral and market, which taught me how to operate the open source development process and how to handle bugs in my code. -John Channing
15. Programming Pearl River
Recommendation: 282
Altho
. Sebastian
This book is useful no matter what operating system you use. -J.f. Sebastian
28. 45 habits of practices of an agile developer/efficient programmer: practices of agile development
45 habits are divided into seven aspects: work attitude, learning, Software Delivery, feedback, coding, debugging and collaboration.
In each specific habit, a paradox is first put forward, then an analysis is carried out, and then a correct approach is put
what a neat code is. Refactoring is still an essential skill for experienced programmers, and when you want to improve refactoring code, reading this book will let you rule it out.The way of code cleanlinessThis is my favorite book, more than once I recommend it to my colleagues, readers and students. I think it can be called software development and coding the most convenient book. Uncle Bob. I don't want to introduce him, he wrote a series of
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.