ArticleDirectory
1. Use reset but not global Reset
2. Good naming habits
3. Code abbreviations
4. Use CSS inheritance
5. Use multiple Selector
6. Proper code comments
7. Sort your CSS code
8. Keep CSS readable
9. Select a better style property value
10. Replace @ import with
11. Use an external style sheet
12. Avoid usin
quality management1, quantifiable----can be measured2, the tool----visualization, transparent, using tool detection (Java language can use Sourcemonitor)3. Automation----4, optimize----continuous improvementCriteria for checking if the code is getting bad1. Format Standard2. Naming3, class, function name length4, the amount of comments5, the degree of repetition6. Conditional expressions7. Cyclomatic Complexity8. Function parameters9. The number of v
CleanCode code clean training Summary (2015), holiday schedule
The four-day CleanCode training is very short, and it is difficult to grasp some knowledge accurately, but it gives me a new understanding and inspiration for the Code; I have read books such as design patterns and refactoring before, and I have some feelings after reading them. I still cannot use the
Write a Web page just like we build a house, the foundation is strong and the house won't fall. The same, we make Web pages as well, a good HTML structure is the beginning of making a beautiful website, the same, good CSS only exists in the same good HTML, so a clean, semantic HTML has many advantages, so peacetime production, we do this? Let's take a look at a picture:
The image above shows two pieces of code
this class, and can be called in more places.6. Single entry of Function pointIn code, some functional logic is relatively fixed, but in many places it repeats itself.For example, the login function, in addition to user active login, and in the non-logged in state to use some of the features required to log in, will call the login page. I looked at the current code, and there were 14 calls to the login pag
How do I clean up the previously cached opcode when the online PHP code is updated?
Reply content:
How do I clean up the previously cached opcode when the online PHP code is updated?
opcache.validate_timestampsDefault isOFF
Opcache sets the number of seconds per opcache.revalidate_freq to check if the scrip
code is short enough, the coupling degree is 2. Refactoring: In the process of writing code in time to refactor, keep the code elegant 3. Non-repeatable: existing code to use , de-duplication 4. Strong expression: This should be a goal or result, do a good job in front of the work can naturally reach 13, concurrent pr
-----------------------Chapter1: Neat code----------------------1, "C + +" programming language author--c++ 's father Bjarne Stroustrup for the definition of neat code:I like the elegant and efficient code. The code logic should be straightforward, it is difficult to conceal the defect, reduce the dependency relationship, make it easy to maintain; Move to some so
To keep software systems clean at the system level, appropriate abstract levels and modules must be developed for the system. An effective method is to separate the construction and use of the system, because the construction and use are very different processes.
The software system should split the START process and the runtime logic after the START process. If the application objects are constructed during the START process, there will be tangle dep
circumstances. Because Oracle defines "unchecked exception for unrecoverable or unexpected errors, exceptions"2. However, checked exception does violate the OCP principle, (if a checked exception is thrown in the system's underlying code, the compiler will force each method that calls the method to catch or declare a throw.) )And I'm going to think about it .....Don ' t Return Nulldon ' t Pass NullInstead of returning null in the
The parameters of the del command/F Forces a read-only file to be deleted./s Deletes the specified file from all subdirectories./q Quiet mode. Confirmation is not required when global wildcard characters are deleted.
Parameters for Rd Command/s In addition to the directory itself, all subdirectories and files under the specified directory are also deleted. Used to delete a directory tree./q Quiet mode/s does not require confirmation when deleting a tree.
C
Tags: use different problem object Methods Solution Search note Encoding
I. Naming rules1. We can see why it exists, what it does, and how to use it by name.2. avoid misleading, avoid using words that are contrary to the intention, and avoid using small names with differences3. Remove unnecessary nonsense such as A and. Ambiguity is prone to lack of clear conventions4. Use the read-out and searchable names,Ii. Avoid Coding1. Add the variable type to the variable name2. Member prefixIii. Others1
PowerShell cleans up temporary folders, and when disk space changes, we can resolve them by cleaning up the Temp folder. We use PowerShell to write a program that can clean up files that were 30 days old in the Windows Temp folder.
PowerShell Clean up temporary folders
When disk space changes to an hour, we can resolve it by cleaning up the temporary folder. We use PowerShell to write a program that can
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.