Java programming 2-What is program design?

Source: Internet
Author: User

Java programming 2-What is program design? Author: Chen yuefeng from: http://blog.csdn.net/mailbomb programming, commonly known as programming, is a professional concept. Beginners and even some developers cannot simply explain this concept. Therefore, it makes beginners feel that programming is a very scientific or advanced discipline. In fact, these are misunderstandings. So what is program design? The program is to describe what needs to be done in the program language. For example, a writer describes the idea in his mind in words. Therefore, learning a program involves three main questions: what to do, how to do it, and how to describe it as follows: 1. What to do is what the program needs to implement. 2. How to do it is how to implement the functions of the program. In programming, logic is actually the implementation step. 3. How to describe is to describe how to use the format of the program language. Therefore, for experienced programmers, learning new programming languages is faster, because 1st and 2nd problems are basically solved, you only need to learn about the 3rd questions. For the question of "what to do", it may be relatively simple for beginners. In fact, in large-scale project development, such as ERP, enterprises cannot elaborate on the need to implement specific functions, this requires dedicated personnel to explore specific functions. The terminology of this application is called requirement analysis. For example, if someone is looking for a girlfriend, if you ask him about it, he will say that it is okay to find a medium one, but this is not a specific requirement, you may need to ask specific questions about your girlfriend's age, height, and so on. Therefore, figuring out what to do is not a simple task and requires dedicated personnel to do the job. The question of "how to do" is a headache for beginners and even experienced developers. This is called program logic. Because the actual function description and programming language cannot be directly converted, just as the writer needs to organize his own ideas and languages, the programmers also need to switch, there are also some differences between the real world and the program world. Therefore, it is a very painful process for beginners and the biggest obstacle in learning. Due to the characteristics of the computer itself, the problem of "how to do" is actually the problem of data and operations. A top-level master once said: "program = Data Structure + algorithm ", describe the problem simply and accurately. Then the question of "how to do" becomes the question of holding the data and how to operate the data. Let's take a closer look at this. The question of "how to describe" is the easiest and most boring problem to learn programs. In fact, it is to learn a set of "Transparent" formats and have a deep understanding of the characteristics of the language. Learning a programming language is similar to learning Chinese. You need to learn how to write words and grammar structures. You just don't need to learn Chinese for so many years, but you still need to be able to learn a language. Grammar learning requires careful consideration. Only when you have a deep understanding of the syntax format can you use the language skillfully. The previous section introduced the concept of program. Why is it called program design? In fact, this design is the same as the design in reality. For example, if you build a small tent on your own, you only need simple planning, that is, the small program in programming. If you need to build a building, you must design it. The same is true for the program. So we call programming.
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.