1.1 Creativity and motivation

Source: Internet
Author: User

1.1 Creativity and motivation

Because this book is not intended for professional programmers. Because the work of a professional programmer needs to consider economics.

Creating useful, concise, and intelligent software for other users is a very innovative work. Your PC or PDA is usually installed with many applications developed by professionals for you, and every software will attract your attention and interest. They try to get the software to meet your needs and make you feel better.

In some cases, when you ask for something, a professional developer needs you to pay them to develop the software functionality you need.

When we use PDA , the software developed by professionals is arranged on the interface. Just select it to be able to run. But if there is any particular need, then you need to buy it separately.

For our non-professional programmers, our basic programming motivation is not to make money, not to be a good experience for others to use the software, but to be more creative in dealing with data information in our lives and at work. When you start, you will play the role of the program ape and the end user.

The same is because you learn this kind of programming ability, your creativity will play out, at the same time you can also turn these ideas into software to serve others.

1.2 Computer Hardware architecture

Before we start learning computer programming languages, let's look at how the hardware architecture of the computer is structured. Assuming you have previously opened your computer or smartphone, the general functional layout is as follows:

The functional architecture diagram consists mainly of the following sections:

L Central processing Unit (CPU): CPU is used to run "What to do next?" "Assuming your CPU is running at 3.0GHz, it means your CPU is asking billions of times per second . " What to do next? "So you have to keep up with the CPU to ask your rhythm so that when it asks you, you tell it what to do right away."

L Main Memory: memory is primarily used to store information that the CPU needs to know.

The speed of memory must keep up with the CPU, otherwise the CPU will slow down. Only the information in memory disappears with the power outage.

L Secondary Storage: It is also used to hold information, but it is very slow relative to the main memory. But it has one advantage. Is that the information that is saved after the power outage is not lost. Secondary storage is primarily a hard drive, solid-state drive (the most used on a USB Drive,MP3).

L Input: This kind of equipment mainly has the display, the keyboard, the mouse, the microphone, the speaker, the touch board and so on. All of these devices are devices that are used to interact with the computer.

L in modern days, most computers have network cards. To get information from the network.

We can feel that the network is a slower storage peripheral. and a storage peripheral that can be dropped.

In fact, it is possible to treat the network as a slow and unreliable hard drive.

Of course. How to do the best with these components and connect them to the best. These will not have to study, left to those computer designers to study. We mainly learn the proper terminology of these parts so that in our programming we can know that the written code is using that part of the computer function.

Ape as a program. The basic job is to use these features properly, and to coordinate the components to solve the problems you need to solve, or the data you need to analyze from the solution. Thus, the basic work of a program ape is to talk to the CPU and tell it what to do next. Sometimes. You also need to tell the CPU where to use the main memory, where to use secondary storage and when to use the network. or input.

When you need to be the one to answer what the CPU is doing next, it's a program ape, but unfortunately, you can't answer CPU30 billions of times per second, meaning you can't hit the keyboard every second . billions of times. It is impossible to speak Hundreds of millions of times, so how to do it? So you need to get the CPU working. Write all the instructions in advance to get the CPU to do things first. We call these pre-written instructions saved as programs, and the process of writing these instructions and ensuring that they run correctly is called programming.



Cai Junsheng qq:9073204 Shenzhen

1.1 Creativity and motivation

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.