“Every language was created for a specific purpose”

后端 未结 16 1616
轻奢々
轻奢々 2021-02-04 10:57

I was reading the post Why Language is Important (Why I prefer C#) from \'Dot Net Thoughts\' and the first paragraph of the article ends with this statement:

16条回答
  •  孤城傲影
    2021-02-04 11:26

    I think it's better stated to say that, "every language is best-suited for a specific purpose." Not every language was created with specific purpose, but there are usually a handful of domains in which it excels.

    For example, "Scala is a general purpose programming language designed to express common programming patterns in a concise, elegant, and type-safe way." C and C++ are more common general purpose languages.

    And now for a list of languages and what they're actually used for instead of just what people think about them:

    PHP, ASP, JSP, Ruby, Python: Web apps (Haskell is starting to be considered here too [thanks Reddit])

    Javascript: AJAX, DOM manipulation

    BASIC, VB: Rapid prototyping, teaching

    AWK: Text processing

    C & co.: System (OS's, etc), application software, device drivers, embedded systems, server/client applications, etc/

    Objective C: iPhone

    Lisp, Prolog: AI

    Erlang: Multi-threaded, parallel, fault-tolerant programming.

    Scala, Haskell: Couldn't find any one clear thing, they both seem pretty general (I use neither).

    Pascal: Teaching

    Eiffel: Finance, aerospace, health, games and teaching (apparently).

    R: Statistical computing and graphics.

提交回复
热议问题