15个流行编程语言及其应用

在这里,我节录了一些关于PHP和Python比较的文章和讨论,让我们能从另外一个
角度来看待PHP的优点和缺点。同样作为一种脚本语言,底层同样是由C语言来开发的,Python是OO的,现在PHP也OO了。Python是多用途的(可用于桌面应用和web应用),PHP是专长于web应用的。当PHP还在苦恼如何整合进去大程序时,Python早就可与Java,。NET相连了。。。。
* Python的可读性,可维护性比PHP好; *
PHP的发展存在一个向后兼容性的问题,Python不存在; *澳门新葡萄京官网注册
PHP的入门门槛底,Python比较高(其实Python语言是挺简单的,难在要有OO的思想,PHP在OO化后,面临同样的问题);
* 到目前为止,支持PHP的服务器多,支持Python的少
(随着硬件成本的降低,估计状况很快会改变)。曾经有人说过,PHP的底层架构不适合用OO,那Python为什么OO用的那么好?曾经有人说过,PHP用OO速度慢,那用Python的人,为什么并不觉得慢?PHP用OO个人觉得是件好事,但看过Python以后,感觉PHP现在实现OO的功能与方法比Python还多,是好还是坏?作为一种脚本语言是否能很好的承载得起呢?感觉PHP有点像当年的C++,既要面向OO,又要兼容C,搞得倍复杂。而Python有点像当年的Java,从开始就是面向OO的,并立足于脚本语言,对OO的功能与方法作了相当的简化,做自己力所能做的事情。PHP以简单易学而名,现在为了企业化应用,如果搞得像C++一样既要顾及兼容性,又几乎全盘copy
Java的OO功能,难免会变得复杂,之后会不会被其他语言所代替呢?他山之石,可以攻玉。我们是否应该学习一下Python,从中得到一些启发呢?现在当大家都一致看好PHP时,结合种种迹绍,我似乎感到了背后的一丝寒风,。。。希望只是己人忧天。从PHP发展的角度,为今之计,我想最好的办法,就是大力普及推广PHP在中国的应用,先占领市场再说,因此写了个建议
(连接),可惜看来也是胎死腹中了。。。==========================================================================第一部分:介绍PythonWhat
is Python?(PYTHON的中文解释 :)Python is a programming language that is
freely available and that makes solving a computer problem almost as
easy as writing out one”s thoughts about the solution. It can be
written once and run on almost any computer without needing to change
the program. In this section, you can learn more about what Python is,
how it is used, and how it compares to other programming languages. Use
the menu below to browse the various sections of this article.Python was
first created by Guido von Rossum in 1990 and was named after the
Brit-com Monty Python”s Flying Circus. It has since been developed by a
large team of volunteers and is freely available from the Python
Software Foundation. The most recent version of Python, 2.5, was
released in September, 2006.Python is now found in many incarnations. At
the website of the Python Software Foundation, Python is written in C.
Other incarnations exist. A Java-based version of Python exists in
Jython and may be used to work with Java c

之前自己一直在找自己感兴趣的方向,以及在这个方向上流行的语言并尝试学习这些语言其中的几个但是没有什么重大发现,这篇文章主要介绍了15个出现在3个编程语言排行榜的编程语言和他们的擅长的领域,他们分别是:Python,Java,JavaScript,PHP,C#,C,C++,Ruby,Swift,Go/Golang,Scala,R,Objective-C,Perl。

Python

Python is a general purpose programming languagethat can be used on
any modern computer operating system.It can be used for processing
text, numbers, images,scientific data and just about anything else you
might save on a computer.

Java

In today’s world, Java has a vast variety of different uses.For
example, Java is used for web-applications like Google docs,as well as
for things like mobile games. Perhaps most notably,Java is widely used
to build small application modulesor applets for use as part of a web
page.

Javascript

JavaScript is most commonly used as a client side scripting
language.This means that JavaScript code is written into an HTML
page.When a user requests an HTML page with JavaScript in it,the
script is sent to the browser and it’s up to the browserto do
something with it.

PHP

PHP is a server-side scripting language designed primarily forweb
development but also used as a general-purpose programming
language.Originally created by Rasmus Lerdorf in 1994, the PHP
reference implementationis now produced by The PHP Development Team.

C#

C# is mostly used with Microsoft’s .NET framework to design web
forms,web applications, windows applications etc. Websiteand web
application development using Asp. net is the most popularand most
commercial use of C# currently.

C

C was initially used for system development work,in particular the
programs that make-up the operating system.Why use C? Mainly because
it produces code that runs nearlyas fast as code written in assembly
language.

C++

C++ is one of the most versatile languages in the world.It is used
nearly everywhere for everything….systems programming (operating
systems, device drivers,database engines, embedded, Internet of
Things, etc.) numericaland scientific computing.

Ruby

The Ruby Programming language is a general purpose programming
language.It is used in a wide range of fields, but is best known as a
language forWeb Applications, because of the Ruby on Rails framework.

Swift

Swift is a general-purpose, multi-paradigm, compiled programming
languagedeveloped by Apple Inc. for iOS, macOS, watchOS, tvOS, and
Linux.Swift is designed to work with Apple’s Cocoa and Cocoa Touch
frameworksand the large body of existing Objective-C code written for
Apple products.

Go/Golang

Golang is the best programming language for developingserver side
applications. Golang has capability tohandle multiple requests at a
time and can deal with itby giving high performance. Again it is very
easy to use as its syntaxis simple and everyone can be familiar with
it easily.

Scala

Scala is a general-purpose programming language providing support
forfunctional programming and a strong static type system.Designed to
be concise, many of Scala’s design decisions aimed toaddress
criticisms of Java.

R

R is a programming language and free software environment
forstatistical computing and graphics that is supported bythe R
Foundation for Statistical Computing. The R language is widely
usedamong statisticians and data miners fordeveloping statistical
software and data analysis.

Objective-C

Objective-C is a general-purpose, object-oriented programming
languagethat adds Smalltalk-style messaging to the C programming
language.It was the main programming language used by Apple for the OS
Xand iOS operating systems, and their respectiveapplication
programming interfaces Cocoa and Cocoa Touchprior to the introduction
of Swift.

Perl

Perl can be used and was utilized for a variety of
uses.Bio-Informatics, Databases, E-mail Handling with Perl, Games and
Multimedia,GUI (Graphical User Interface) Development, Multi-tasking
and Networking,Quality Assurance and Testing, andTelnet/SSH (Remote
login and command execution)

发表评论

电子邮件地址不会被公开。 必填项已用*标注