1.1 creativity and motivation, 1.1 creativity motivation

Source: Internet
Author: User

1.1 creativity and motivation, 1.1 creativity motivation

1.1 creativity and motivation

This book is not intended for professional programmers, because the work done by professional programmers requires economic consideration. Creating useful, concise, and smart software for other users is a very creative task. Your PC or PDA is usually equipped with applications developed by many professionals for you. Every software will attract your attention and interest. They try to make these software meet your needs and give you a better experience. In some cases, when you make some demands, professional developers need to pay for them to develop the software functions you need.

When we use a PDA, the software developed by the professional is arranged on the interface and can be executed by selecting it. However, if you have any special requirements, you need to purchase another one.

For our non-professional programmers, our basic programming motivation is not to make money, nor to provide a good experience for others to use the software, it is more creative to process data and information in our life and work. At the beginning, you will assume the roles of programmers and end users. Similarly, when you learn this programming capability, your creativity will be realized, and you can also turn these ideas into software to serve others.

 

1.2 computer hardware architecture

Before learning the computer programming language, let's take a look at how the computer's hardware architecture is made up. If you ever split your computer or smartphone, the general functional layout is as follows:

 

The function shelf diagram consists of the following parts:

L central processor (CPU): the central processor is used to execute "what to do next ?" If your CPU runs at 3.0 GHz, it means that your CPU asks 3 billion times per second "what to do next ?" Therefore, you must keep up with the CPU's pace, so that when it asks you, you can immediately tell it how to do it.

L main memory: memory is mainly used to store information that the CPU needs to know. The memory speed must keep up with the CPU; otherwise, the CPU will slow down. However, the information in the memory disappears with the power failure.

L secondary storage: it is also used to store information, but its speed is relatively slow compared with the main memory, but it has an advantage, that is, after a power failure, all stored information will not be lost. Secondary storage includes hard disks and solid state disks (USB and MP3 ).

L input and output devices: these devices mainly include displays, keyboards, mice, microphones, speakers, touchpad, and so on. All these devices are used to interact with computers.

L in modern days, most computers have NICs to obtain information from the network. We can think that the network is a slow storage peripherals, and can be dropped. In fact, the network can be regarded as a very slow and unreliable hard disk.

Of course, how can we make these components the best and connect them to the best, so we don't have to study them and leave them to those computer designers for research, we mainly learn the exclusive terms of these components so that we can know in our programming that the written code is using that part of the computer function.

As a programmer, the main task is to reasonably use these functional components and coordinate these components to solve the problems you need to solve or analyze the data from the solutions. Therefore, the programmer's main job is to talk to the CPU and tell it what to do next. Sometimes, you also need to tell the CPU where the primary memory is used, where the secondary storage is used, when the network is used, or when the input and output devices are used.

 

 

When you need to answer what the CPU will do next, you will be a programmer, but unfortunately, you cannot answer cputimes per second, that is to say, you can't beat the keyboard 3 billion times per second or speak 3 billion times. How can this problem be solved? Therefore, you need to write all the instructions that let the CPU do things in advance before making the CPU work. We call the files stored in the commands written in advance a program, and the process of writing these commands and ensuring that these commands are correctly executed is called programming.

 



Cai junsheng QQ: 9073204 Shenzhen

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.