Programming language Learning

Source: Internet
Author: User
Tags switch case

People, Programs, computers

The birth of a computer is to help people accomplish some tasks. Computer with its fast speed, less error, long duration, save time waiting for the characteristics to compensate for human shortcomings.

A program is a program, instruction, instruction, or procedure for a computer to complete a human task.

Running a program is the process by which the computer performs its task according to the plan.

The programming language is the language in which people write plans. And people write their own plans in Chinese, English and other languages, people write a plan to the computer computer can know the language-machine language, that is, 01 strings. This is also the language that people use when a programmable computer is just appearing.

But 01 this binary language bad memory, bad communication, not good understanding, so people use English short words to replace 01 strings, the emergence of assembly language. Assembly language can at least literally understand its meaning. assembly language to write a good program, using the assembler into machine language, and then the computer to execute.

Here, a point needs to be put forward: the content of the language is limited, like the number of Chinese characters, English words are limited (to a certain extent), but the use of language made out of the article is unlimited. Machine languages, assembly language is also limited, and based on the von * Neumann system computer can understand the machine language not only limited content, the structure is also limited. These two points allow the corresponding assembler to turn all the corresponding assembler programs into machine language programs.

The limited content and structure here is-the data and the operation of the data (transfer, processing).

Assembly language is for a specific machine language, machine languages are specific to the machine, that is, a specific CPU. Different vendors, different architectures, different series, plus the addition of more and more new features, make the CPU corresponding machine language has some differences in content. The corresponding assembly language also has a difference. People develop programs that can only be used on specific machines and not on other machines, and people have to develop the same functionality for new machines. This is certainly not good, so the high-level programming language appears.

A program written in a high-level programming language that uses a compiler/interpreter on a particular machine to convert to the corresponding assembler and then execute it on the machine.

Now it's time for me to learn advanced programming languages.

There are many kinds of advanced programming languages, JAVA/C/C++/C#/PYTHON/RUBY/PERL/JS and so on. As a high-level programming language that comes from the high-level language of machine language, assembler languages, in theory, they can write a plan that allows computers to execute. But the designers of these languages focus and think differently, making these languages different-keywords, naming, capitalization, and so on. But they are all high-level language in assembly language, need to become assembly language program to run, so they have from the machine language, assembly language passed down the same point-their content is the data and the operation of the data.

Key points of the Advanced programming language:

1. Basic syntax--representation of data, structure and meaning of operations on data (operators, operator precedence, statement structure, keywords, etc.)

2, Process Control-the order of operation of the data (goto/if else/do while/switch case/for/foreach).

3. Organization of data and data operations-data type, name, function, module/package, hash, class

4. Some features in program development--error handling, parallel development

Programming language Learning

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.