Home > Article > Web Front-end > 10 recommended articles about practical work
Preface In actual work, we should often see some code that has no problem in function, but has very poor coding style and specifications. This often makes people afraid to read further, and even affects the reader's mood for the day. These codes are not only difficult to read, but also difficult to maintain. They are usually written by novice programmers who have just started programming, or by experienced programmers who have been working for several years. Therefore, the purpose of this article is to help JavaScript learners who have not developed a good coding style and lack awareness of corresponding coding standards to improve their coding image. coded image Above I proposed the concept of coding image. I personally think: coding image = coding style + coding specification A good coding image is equivalent to a well-dressed young man. For programmers, this is the most direct and simple way for peers to understand your excellent abilities. Let’s take a look at an image of bad coding: //Say hello function func(){ var 
1. How to write good JavaScript
##Introduction : In actual work, we should often see some code that has no problem in function, but has very poor coding style and specifications. This often makes people afraid to read further, and even affects the reader's mood for the day. These codes are not only difficult to read, but also difficult to maintain. They are usually written by novice programmers who have just started programming, or by experienced programmers who have been working for several years. Therefore, the purpose of this article is to help JavaScript learners who have not developed a good coding style and lack awareness of corresponding coding standards to improve their coding image.
2. Make your JavaScript coding more standardized
##Introduction: In actual work, we should often see some codes that have no problems in function, but have very poor coding style and specifications. This often makes people dare not read any more, and even affects reading. the mood of the day. The purpose of this article is to help JavaScript learners who have not developed a good coding style and lack awareness of corresponding coding standards to improve their coding image.
3.
Detailed code examples of 12 very practical JavaScript tips
Introduction: In this article, I will share with you 12 tips about JavaScript. These tips may help you solve some problems in your actual work. Use the !! operator to convert Boolean values Sometimes we need to check whether a variable exists or check whether the value has a valid value, and return a true value if it exists. In order to do such verification, we can use the !! operator, which is very convenient and simple. You can use !!variable to detect variables. As long as the value of the variable is: 0, null, ' ', undefined or NaN, false will be returned..
##4.
How to use dependency injection in webapi##Introduction: This article will share with you how to use dependency injection in webapi Use dependency injection. Dependency injection is commonly used in interfaces and is also used frequently in actual work. Therefore, two methods of dependency injection in APIs, Ninject and Unity, are shared here. Let’s take a look with the editor below
5. Java thread pool that supports production blocking
Introduction: Among various concurrent programming models, the producer-consumer model is probably the most commonly used. In actual work, there is usually a trade-off between the speed of production and consumption
6. In-depth understanding of HTML forms
Introduction: From HTML to HTML5, form-related elements have been greatly expanded and can basically meet our common needs. But in actual work, due to the need for interaction or browser compatibility, native form elements sometimes have to be extended or simulated. But before that, it is still important to clearly understand and master the various form elements. In this article, we will explain the form elements (HTML5 form elements by default) in detail. 7. Some suggestions for writing css
##Introduction: JavaScripty has embarked on the road of engineering. Various mvm and mvvm frameworks have been dizzying. We will not discuss js here. Let me talk about some of my experience in writing CSS in actual work. Of course, many people have also summarized this experience. What I am talking about is definitely not as good as those written by some big names. I just simply bring out my work experience and compare it with Share it with everyone. 8. 【CSS Notes 10】Tips for CSS style setting ##Introduction: In actual work, we often encounter scenarios where horizontal centering is required. For example, for the sake of beauty, the title of an article is generally displayed horizontally and centered. 9. javascript - Questions about the difference between some ideas 10. Java/Scala Interop Practice 1: Basic Operations [Related Q&A recommendations]: javascript - An interview question, how to prevent link jumps in HTML? php - Do you have any recommendations for good design patterns or architecture books that focus on practical application scenarios? How to write object-oriented examples in php? linux - How to install mysql-devel without root permissions? javascript - What are some practical js design patterns in actual work and production?
The above is the detailed content of 10 recommended articles about practical work. For more information, please follow other related articles on the PHP Chinese website!