Programming rules-1 Overview-Helping you grow into outstanding programmers outstanding software engineers, designers, analysts and architects

Source: Internet
Author: User
Tags coding standards

By Jon Ji 2011/8/20

Coding standards often only define the specific programming format and detailed requirements, but for improving the programming capability of software personnel, programming rules are more valuable, I will give some of my views and ideas for your reference. I hope you can criticize and correct them. Thank you!

1 Overview

Programming is the basic capability of a software engineer. How can we become an excellent software engineer, compile elegant programs, solve problems beautifully and perfectly, and implement requirements, it will be the constant pursuit of every software engineer.

Programmers want to become designers and architects in the future, but they are relatively small, relatively large, and small. If the design of some small programs is poor, they can talk about architecture design, on the contrary, if your program is clearly designed and well structured, you will not be far from the architect. Therefore, please be ambitious and start from the moment!

This article attempts to guide you to achieve this kind of intent, So that you gradually grow and mature in the programming process, and become a good software engineer.

This article is not a specific software programming specification (the specific software programming specification is also based on the basic rules of this article), nor is it a software architecture and design guide, it is between the specific programming and system architecture, although the details are not clear, but focus on the basic principles and procedures of programming, is not limited to the language (although the example uses Java), can be applied to any object-oriented programming, most of these rules are also applicable to non-OO programming.

All software developers are required to read this article carefully and repeatedly, deeply understand the connotation and extension of each rule, and earnestly implement and deepen the practice in the development process:

The integration of knowledge, behavior, practice, the courage to reconstruct, and the pursuit of perfection.

Code is the face of programmers, code is the work of programmers, code is the honor of programmers, code is the credibility of programmers, excellent software workers, must first be a good programmer.

You try to understand these rules and use them to help you achieve excellence.

This article only briefly describes these Rules. In order to find out their true meanings, you not only need to practice them, but also need to learn through other methods, such as learning related books to enrich your knowledge, consultation and communication are all auxiliary means.

Programming is a practical science. It is the only way to succeed.

Programming is a kind of creative work. It can satisfy your desire to create, let your inspiration shine brightly, and let your thoughts and ideas shine, it brings you success and happiness at work.

Programming is an art. It can show the beauty of structure, the beauty of structure, and the beauty of expression. It can bring joy, comfort, elegance and other high-level spiritual enjoyment to authors and readers, sometimes it is like a beautiful poem, sometimes it is like a precision device with exquisite design and human wisdom, which brings deep touch and pleasure to people.

Let's ride on the programming path with a relaxed, pleasant, and hopeful mood. Wish you success, joy, and health along the way; I hope that your work will bring happiness to others.

 

1.1 focus on small points

Every small thing deserves our effortsPierre Cardin once said to his staff: "If you can really pin a button, it is more valuable than sewing a rough dress ." Engaging in inconspicuous work is actually the beginning of a major business. Whether or not such an idea can mean a person can make great strides.

How can a programmer grow into an architect? First of all, he must be a good programmer. He can write code with a beautiful structure and concise and clear expressions, which is smaller than or equal, he has the ability to reasonably design the architecture of a large system.

Focus on perfection and perfectionIt is the road to success for excellent software workers. Focusing on the whole requires you to have an overall idea, an image, and a global mind. You must take every detail seriously, master and use the rules flexibly, implement the rules, be brave in restructuring, and constantly improve your skills, strive to write good code, good code, and beautiful code.

Set up your ambitious goals, but first do everything you have to do.

1.2 broken windows and scouts military rules

You can use other methods to learn the story of broken windows and Boy Scouts.

We require that the software development process avoid a vicious circle and form a virtuous circle. In the development process, we must conscientiously implement the rules. When anything that violates the rules occurs, we must promptly correct the rules. Everyone has the responsibility to make the code more clean and clear when creating or maintaining the code, this includes sorting out unreasonable structures, restructuring inappropriate names, and decomposing classes or methods with different responsibilities (bloated, manage the odd "magic numbers" in the code.

Why do we mention military rules? Because the army focuses on team spirit, code is not only the face of programmers, but also the quality of an organization, everyone should strive to improve this quality and honor in the software system.Short Board EffectObviously, a bug can collapse the entire system, so remember the scouts military rules and remember that we are a whole.

A broken window is a very bad thing. If it is not controlled, it will become a serious event.

The scouts military rules stipulate that when you leave a place, you should make it cleaner and cleaner than when you come. In this way, the boy scouts camp more and more cleanly. When a programmer develops or maintains a set of code, if he can make the code more clear and tidy, the software system will become more and more structured.

 

Related Article

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.