Make sure that no warning uses the Code analysis tool to remove unused using check null conditions to avoid run-time null Reference Exception naming rule consistency follows the solid principle (single duty, open closure, Liskov substitution principle, interface isolation principle , dependency inversion principle) code reusability Code Consistency code readability release unmanaged Resources Reasonable handling exception method code cannot be too timely check-in Check-out Mutual Review Code unit test try to avoid nested loops if your code is used only once, use LINQ and LAMBD with anonymous types A rational use of Var, object, dynamic use of access qualifiers to maintain decoupling with the interface on demand using sealed, static, abstract multiple concatenation with StringBuilder check if there is no execution code to annotate the method Use a tool like Silverlight spy to check network conditions using fiddler, track performance with WCFTestClient.exe to check service methods other than Visual Studio, or mount its processes to vs for debugging Use const and readonly to avoid casts and type conversions overload ToString to provide custom class information avoid direct copy and paste follow expert best practices avoid memory leaks participate in expert organization technical seminars, get in touch with latest trends, techniques, and best practices to thoroughly understand OOP and embody in code Understand the project design framework, understand the program execution process as a whole avoid cross script attacks, SQL injection, and other security vulnerabilities encrypt confidential and sensitive information encryption for known types avoid using default Microsoft does not recommend out and ref
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service