What is the most "all-powerful" programming language?

Source: Internet
Author: User
The most versatile programming language is ...

Reply content:

The main question is to pick the head and let the programmers tear each other, and then he secretly laughed in the dark. Really no language in my impression is omnipotent, such as C is a high-level "machine language", but a lot of time to develop something will be very inconvenient ah.
C + + is more versatile if it is really more than universal, but the (binary) cross-platform is not as good as the language on the JVM, or the scripting language.
C + + can of course be used as a Web service, Apache is more than 90% C written, in C + + certainly more can,
C + + can also use QT to create GUI applications, you can use the NDK to do Android development,
But the C + + development cycle is not generally long, and the package does not have much Java, so the sense of writing C + + is to build their own wheels. Before I knew there was a STL, even the vectors were shining. The list in the Net/java itself implements a. The people who turn from java/c# want to have a dead heart. Of course, these days the cows are writing their own comfortable API, then this is a merit.
Of course, you have to say to write the operating system kernel and so on, I have no way, scripting language such as Python currently even compiled to native compiler implementation has not yet, to write kernel I think it is impossible ...
So as far as possible is the use of existing tools, to do things well, language is not difficult to learn, the most exaggerated when a day to learn three, now disdain to list themselves have learned what language is really useful on the good.

Now to summarize, if you have an urgent task to learn a new language, basically except Haskell or Lisp (Scheme/common/clojure) basically can start with this sequence:
0. Figure out the structure of the Hello World program, except for one line
1. Figure out whether the scripting language is bytecode or native, compiler/interpreter/runtime What is the comment compiler ignores, which code is preprocessed
2. Whether the dynamic type or static type, whether it is a strong or weak type, how the variable is declared, what the naming specification is, the integer and floating-point numbers are not clearly distinguished, such as 3/2 is equal to 1 or 1.5 integer range, there is no risk of overflow
3. Learn +-*/Sort of operator, there is no + + increment operator, can i + = 1, and the Math Library, && & | | | << >> >>> ^ can be used
4. Process Control if...else if...else switch for foreach and so on, this I want to say, now many languages can not write for loop like C, this is very uncomfortable
4. Look at the declaration of the function, whether it is necessary to return the type declaration, whether the function prototype needs to be declared, whether the default reference is passed, whether it supports recursion, whether the function can be put into a variable
5. Look at the basic array of data structures, whether the array is a pointer or an object, there are those collection, if there is built-in data structure can be said to be a novice favorite things
6. Look at string representation processing, whether the string is a pointer or an object
7. Exception handling, there is no checked exception, how to throw abnormal and how to catch
8. There is no OOP, support inheritance package polymorphism, class is how to declare, if it is static type how to use generics/templates
Is there a struct without OOP, union? Or is it all?
9. Support does not support explicit pointers, whether unsafe code is supported, memory management (malloc free new Delete), garbage collection
lambda expressions, function pointers/references, and closure functions, are they just syntactic sugars? (for example, Java 8 is basically a syntactic sugar) function callback This thing ah, a boat!
11. Multi-threading, Concurrency, synchronization
12. File Io, stdio

What else is there to add?
That's basically it.
that's a long answer, not a joke.

I mean not to say C language has not learned, C language is the fundamental of programming we can not learn? I'll tell you this clearly.
Do not want to make a big news, said C language has to be useless, and then criticized K&r. You naive.
is not the annotation language???

Harmless support of any compiler

Cross-platform portability distributed

For understanding

Easy to understand grammar and readability

than any machine, assembly, high-level language easy to learn is not Chinese? c, where there is machine language, there is c.
Python, the script language of Swiss Army Knife Python No, I live the day light bulb 0101010101010110101010101010101010 is obviously a brainfuck. The arithmetic ability is equal to the Turing, can realize the algorithm of any language Most programming languages are Turing equivalents. So a language capable of doing things in other languages is also capable.
  • 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.