Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the use and classification of each programming language?

2025-04-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

What is the use and classification of each programming language? I believe many inexperienced people are at a loss about it. Therefore, this paper summarizes the causes and solutions of the problem. Through this article, I hope you can solve this problem.

Summary of common programming languages and their uses

C: operating system, embedded, driver development

Graphics: graphics, scientific research, communications, desktop software, games, game servers

C#:Windows desktop software, .NET Web, server

Java: Java SE: cross-platform desktop applications, Android;Java EE: enterprise applications, web development, server backend; Java ME: mobile applications, popular in the non-smartphone era; Java Android: for Android development applications

GO: high-performance server applications, relatively young

Erlang: highly concurrent server applications, mostly for games

Python:Web, Scientific Computing, Operation and maintenance

Ruby:web

Perl: operation and maintenance, text processing, less used

Lisp: scientific research, a logical language for artificial intelligence

Node: a JavaScript runtime environment (runtime)

Haskell:Haskell is a standardized, general-purpose pure functional programming language, mathematical logic.

Scala: a programming language similar to Java that integrates the features of object-oriented programming and functional programming

Javascript: the front end, which can be used as the back end in node

HTML/CSS: markup language, mainly for front-end engineers to build pages to use

Classification of programming languages

1. High-level and low-level languages:

High-level languages: C, C++, Java, Python, Pascal, Lisp, Prolog, FoxPro, easy language and so on are high-level languages. Compared with low-level languages, high-level languages use characters that are easy to recognize and remember as keywords, but also closer to the human way of thinking, easy to read and write, and more efficient development.

The expression of a=a+b:

Int a

Int b

A=a+b

The point is that high-level languages are portable, and code can be run on computers on different platforms with little or no modification.

Low-level languages (including machine language and assembly language):

Machine language:

Computer hardware can only recognize "open" and "closed" physical states, that is, 0 and 1. It is most efficient to use machine instructions because there is no need to translate the instructions. But machine language is not friendly to human beings, with a long list of zeros and ones, which are difficult to identify and remember, and are prone to errors.

But for machines, seconds understand.

Assembly language:

Assembly language (assembly language) is a low-level language used in computers, microprocessors, microcontrollers or other programmable devices, also known as symbolic language. In assembly language, a mnemonic (Mnemonics) is used to replace the operating code of a machine instruction, and an address symbol (Symbol) or label (Label) is used to replace the address of an instruction or Operand. In different devices, assembly language corresponds to different machine language instruction sets and is converted into machine instructions through the assembly process. Generally speaking, specific assembly language and specific machine language instruction set are one-to-one corresponding, and can not be directly transplanted between different platforms.

Assembly language uses mnemonics that are easy for humans to remember and recognize to represent 0 and 1 instructions, such as AND for addition.

The expression of a=a+b:

MOV AX,2

MOV BX,3

ADD AX,BX

The lower the language is, the more friendly it is to the machine, and the more consistent it is with the machine's way of thinking, so the execution efficiency is higher.

The more advanced the language is, the more friendly it is to human beings, and the more it conforms to the human way of thinking, so the development efficiency is high.

2. Compiled language and interpreted language (relative to high-level language).

The portability of high-level languages is based on the process of compiling or interpreting. Human-friendly high-level languages can only be recognized by the operating system and loaded into computer hardware for final execution.

The compilation and interpretation of high-level languages are for the operating system, not for computer hardware.

Compiled language

Compilation is the installation of a pre-programmed machine language program called "compiler" in the computer. When the high-level language program needs to be executed, the compiler translates the entire "high-level language source program" into "machine language target program".

Interpretive language

After the high-level language enters the computer, the interpreter scans and interprets, translates sentence by sentence, and the computer executes one line without producing the target program.

For example, JAVA is an interpretive high-level language.

3. Strongly typed languages (static languages) and weakly typed languages (dynamic languages)

Strongly typed language (static language): a language in which the data type of a variable can be determined at compile time, and most static languages require a life data type before using a variable. Such as Java, C, C++, C # and so on.

String s = "hello"; / / variables of type String

Boolean bounded truth; / / variables of type boolean

Int iTun0; / / variables of type int

Weakly typed language (dynamic language): a language in which data types are determined at run time. Variables do not need to declare the type before they are used. Usually, the value of the variable is the type of the value assigned. Such as Php, Asp, JavaScript, Python, Perl and so on.

Var s = "hello"

Var I = 0

Var b = true

Weakly typed languages are languages in which data types can be ignored. In contrast to strongly typed languages, a variable can assign values of different data types. The type of a variable is determined by its context and is more efficient.

A strongly typed language is a language that must force the determination of a data type, and once a variable is specified a data type, it will always be that data type if it is not cast. The type of a variable is determined when it is declared, which is safer.

Due to the mandatory declaration of data types in static languages, development tools (IDE) have a strong ability to judge the code. In the implementation of complex business logic and the development of large business systems, as well as those applications with a long declaration cycle, developers can rely on powerful IDE to develop more efficiently and securely.

Dynamic language thinking is unconstrained and can be played at will, putting more energy on the product itself; focus on the realization of business logic, and the thinking process is the realization process.

After reading the above, have you mastered the use and classification of each programming language? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report