Introduction to various languages

Source: Internet
Author: User
Before introducing the programming language, let's talk about the necessity of open source code. Nowadays, there is a huge waste in the field of software production in Chile. We put a lot of energy into writing program code that has been implemented by others. Let's see how many text editors there are, how many FTP programs there are, and how many word processing programs there are. Although these programs are different, their main functions are the same. How long does modification save on the basis of existing software to implement personalized functions! How much time is wasted for each program to compile one set? Without such repetitive workloads, programmers in the world can save at least 80% of their work. At the same time, open source code facilitates communication. Reading the source code should be the most direct and effective way to learn. Especially in professional fields.

To open source code, the following are important:
× The language should be popular.
× Unified language functions and class libraries.
× Language syntax and compiler should be unified.
× Whether the compiler is open source code.
× Whether the API is open source code.
× Language reusability, functionality, and friendliness.

The necessity of language unification: if everyone uses the same programming language, functions, and class libraries, there will be a lot of common languages. As long as you learn a language, a set of functions, and a set of class libraries, you can read the source code from each other. In this way, the amount of learning is minimal. Learning new APIs wastes a lot of time and effort on programmers, especially when this API has a large number of repeated functions with other APIs.

To increase the reusability of the Code, start with the following points:
X. code readability. Such as format, whether it is close to English syntax and word.
× The expression ability of code, that is, simplicity, can implement the same function with the least number of statements and words.
× Code structure, such as functions, modules, and classes.

The language functions are powerful in the following aspects:
× Whether a large number of databases are supported. This is the most important and requires strong library support for programs that write any function.
× Is the syntax function powerful, such as error handling. Whether a pointer exists.

Language friendliness:
× The size of the Language Pack. The smaller the Language Pack, the easier it is to learn.
× Whether the language has a friendly editing and debugging environment.
×. Visual language and integrated programming environment.

C language:

In terms of performance, C language is the closest to machine language except assembly language. The default language for programming interfaces of various operating systems is C language. Therefore, you can use C programming to maximize the operating system capabilities. At the same time, because most of the commodity software is implemented by C and has a C programming interface, it can be said that there is no function that C cannot implement.

In the Linux environment, C has good open source code conditions. It has a unified compiler GCC, a powerful but difficult-to-Master programming environment Emacs, and a unified API: POSIX and Linux interfaces. In addition, the compiler and API are open source code.

Write a graphic interface program on Linux. There are two options: KDE and gnome. KDE is more mature. gnome supports coordination between multi-language and object-oriented programs.

In the Windows environment, the Windows OS is now unified to the VC, but there is a disadvantage that the Windows OS upgrade is too fast, from the DOS environment to Windows 31
, From windows31 to Windows95, to Windows2000, To. net. In this way, the lifetime of the program code on Windows is relatively short. In addition, VC compilers and APIs are too complex to master.

At the same time, because C has many characteristics of modern languages, pasical is often used as a programming language for teaching.

In fact, C is also a very simple language without deep learning. If you do not want to learn basic, it is no problem to directly learn C.

Compared with other languages, C has multiple compilers, multiple operating system APIs, and multiple syntaxes and functions. It is difficult to learn and has poor uniformity.

Compared with Java, C syntax is not rich enough and modern.

Java:

Compared with C and Java as modern languages, Java has rich syntax features, such as modules and classes. Unlike C, Java is a company product, it has a unique API, so there is no language gap between Java programmers.

Compared with cross-platform languages, Java has the best GUI programming API.

All Java APIs are class libraries, which are very significant progress compared with C functions. Java has almost all the features of modern languages.

Perl:

Perl features powerful string matching and is the best language for reading and generating text files.

Perl has great freedom and is as casual as English,

Perl has a powerful database interface and other interfaces.

Perl has the largest library.

Perl is not suitable for writing large programs.

Perl has a well-known weakness that is hard to understand and has a well-known advantage that it is concise.

PHP:

I feel that PHP is a freak. Originally, the Perl and embedded HTML functions can fully implement the PHP function and create another language, increasing the Learning Burden.

PHP can be embedded in HTML, making it easier to write server programs.

PHP is naturally combined with web servers and MySQL databases.

PHP can dynamically generate images.

Python:

First of all, python is the same language as basic for beginners and is as easy to understand as English.

Python has the same rich syntax as Java.

Python has a simplicity similar to Perl, but there is no pattern matching.

Python is suitable for writing large programs.

Python is similar to lisp. It uses strings as eval functions executed by programs, stores all data of an object, and transmits functions as parameters to another function.

Python has excellent scalability. Python programs can be well integrated with C Programs and Java programs.

TCL:

TCL has the simplest syntax, the best ability to interact with other programs, and the TK for programming graphic interfaces.

Javascript:

The best tool for writing dynamic web pages.

LISP:

The syntax of lisp is very simple. Only simple functions and parameter statement structures are supported.

The boundaries between lisp data and programs are vague.

Lisp can be nested in depth.

PROLOG:

Prolog is a specialized language. It is used to process knowledge.

I think Prolog is a database processing tool.

It is also a reasoning tool that derives more knowledge based on some knowledge.

Basic:

Currently, the most famous basic is VB,

Basic is a simple elementary language.

VB is a quick interface generation language and a quick database program development language.

VBA is an application version of VB and is embedded in offic. It is easy to compile the program on offic.

VBScript is a VB scripting language that can generate dynamic web pages on servers and clients.

Basic is ugly because the parameter is still the default transfer address. Too dangerous.

Delphi:

Similar to VB, It is a fast development environment, but with better performance and more powerful functions.

. Net:

Supports unified API class libraries in multiple languages,

You can write a webform program, that is, all the logic is on the server, and the standard html3.0 is uploaded to the client, which can be supported by various browsers. Program components exchange messages through soap.

Various languages:

If you write programs that require high performance or are closely integrated with the operating system, You must select C.

If you write a program available everywhere, select Java.

If you write a large program, you may try to use python, but you cannot use Java or C. Because Python brings productivity.

Use Perl to compile text processing programs.

Use prolog to compile the Knowledge Processing Program.

Write the most flexible and fuzzy program using lisp.

Use VBA to compile the Office program.

Compiling server programs. php, Perl, Python, and ASP are all choices.

Use VB or Delphi to compile database programs.

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.