boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - 语言区别
相关主题
我现在常用语言是LABVIEW和ACCESS
大牛们说话看,哪种计算机编程语言最接近自然语言呢
大家不觉得这篇文章很有道理么?未来语言的趋势?
程序员薪水
问-最近几年流行的计算机语言会是什么?想学 (转载)
未来ruby能不能挤掉python
估计javascript 最初设计时就基本没考虑好scope问题
这个行当真是没落了
Python真是一种长得很丑的语言
教小孩C++?
相关话题的讨论汇总
话题: c++话题: java话题: language话题: perl
进入Programming版参与讨论
1 (共1页)
r*********r
发帖数: 1892
1
一位美国CS写的,各位大拿如何看?
The Languages
C++ is well-suited for large projects because it has an object-oriented
structure. People can collaborate on one program by breaking it up into
parts and having a small group or even one individual work on each part. The
object-oriented structure also allows code to be reused a lot, which can
cut down development time. C++ is also a fairly efficient language -
although many C programmers will disagree.
C is a popular language, especially in game programming, because it doesn't
have the extra packaging of the object-oriented C++. Programmers use C
because it makes programs slightly faster and smaller than programs written
in C++. You might wonder, however, whether it's worth giving up the
reusability of C++ to get the small increase in performance with C,
especially when C++ can, where necessary, be written in a C programming
style.
Pascal is primarily a teaching language. Few industrial programs are written
in Pascal. Pascal tends to use keywords instead of C-style braces and
symbols, so it is a bit easier for beginners to understand than languages
like C++. Still, not everyone thinks Pascal is just for the schools. Borland
, the huge compiler software company, has been pushing Delphi as an
industrial strength programming language. Delphi is an object-oriented
version of Pascal, and currently, only Borland compilers use it.
Fortran is a number-crunching program, and it is still used by scientists
because the language allows variables of any size up to the memory limit of
the machine. Fortran is especially convenient for engineers, who have to
mathematically model and compute values to high precision. Fortran, however,
isn't nearly as flexible as C or C++. Programming in Fortran is rigid, with
strict rules on whitespace and formatting, which sometimes makes reading
Fortran programs difficult.
Java is a multi-platform language that is especially useful in networking.
Of course, the most famous usage of Java is on the web, with Java applets,
but Java is also used to build cross-platform programs that stand alone.
Since it resembles C++ in syntax and structure, learning Java is usually
quite easy for most C++ programmers. Java offers the advantages provided by
object-oriented programming, such as reusability; on the other hand, it can
be difficult to write highly efficient code in Java, and Swing, its primary
user interface, is notoriously slow. Nevertheless, Java has increased in
speed in recent years, and version 1.5 offers some new features for making
programming easier.
Perl was originally a file management language for Unix, but it has become
well known for its use in CGI programming. CGI (Common Gateway Interface) is
a term for programs that web servers can execute to allow web pages
additional capabilities. Perl is great with regular expression pattern
matching, which is a method for searching text. Perl can be used for
databases and other useful server functions, and it is simple to pick up the
basics if you have experience in any imperative language. Web hosting
services prefer Perl over C++ as a CGI language because the web hosts can
inspect Perl script files, since they're just text files, while C++ is
compiled, so it can't be inspected for potentially dangerous code. Perl is,
however, notorious for its "write once" style of code -- it's very easy to
write Perl scripts taking advantage of lots of shortcuts that you later
cannot understand.
PHP is a common language for webpage design that is sometimes used as a
scripting language in *nix. PHP is designed for rapid website development,
and as a result contains features that make it easy to link to databases,
generate HTTP headers, and so forth. As a scripting language, it contains a
relatively simple set of basic components that allow the programmer to
quickly get up to speed, though it does have more sophisticated object-
oriented features.
LISP is functional language used mostly in computer science research. LISP
is unusual in that it stores (nearly) all data in lists, which are like
arrays, but without index numbers. The syntax for lists is very simple,
making it easy for programmers to implement complex structures.
Scheme A well-known variant of LISP, Scheme has a slightly simpler syntax
and not quite as many features. A common joke is that any large project
undertaken in Scheme will result in the reimplementation of most of LISP.
Nevertheless, Scheme is quite popular in academic circles and is the
introductory language of MIT's computer science department (and is taught as
part of Harvard's introductory sequence). Scheme's simplicity makes it a
good way to get started solving problems instead of worrying about
programming language syntax.
Of course, there are still many, many languages not discussed, a few major
ones being Prolog, Tcl, Python, COBOL, Smalltalk, and C#. Those are
generally related or similar to the programming languages I have described
above. The take home message is that different programming languages have
their advantages and disadvantages, and picking the appropriate language for
the task is often an important step in the process of developing an
application or program.
g*****g
发帖数: 34805
2
Whatever written 10 yrs ago is stale.
i***h
发帖数: 12655
3
是啊,perl都有一大段

【在 g*****g 的大作中提到】
: Whatever written 10 yrs ago is stale.
s*i
发帖数: 5025
4
Prolog,曾经写过小程序,哈哈

【在 i***h 的大作中提到】
: 是啊,perl都有一大段
n****l
发帖数: 1739
5
C++ is well-suited for large projects b/c most new kids in town
knew it. C is not cool anymore but it still powers some of the
largest software projects including Linux Kernel.
Anyway, golden rule of engineering(or anything else in life): with
sufficient thrust, pigs fly just fine.

The
t

【在 r*********r 的大作中提到】
: 一位美国CS写的,各位大拿如何看?
: The Languages
: C++ is well-suited for large projects because it has an object-oriented
: structure. People can collaborate on one program by breaking it up into
: parts and having a small group or even one individual work on each part. The
: object-oriented structure also allows code to be reused a lot, which can
: cut down development time. C++ is also a fairly efficient language -
: although many C programmers will disagree.
: C is a popular language, especially in game programming, because it doesn't
: have the extra packaging of the object-oriented C++. Programmers use C

d*******r
发帖数: 3299
6
只看了 C++, C 那两段,感觉都是瞎说

The
t

【在 r*********r 的大作中提到】
: 一位美国CS写的,各位大拿如何看?
: The Languages
: C++ is well-suited for large projects because it has an object-oriented
: structure. People can collaborate on one program by breaking it up into
: parts and having a small group or even one individual work on each part. The
: object-oriented structure also allows code to be reused a lot, which can
: cut down development time. C++ is also a fairly efficient language -
: although many C programmers will disagree.
: C is a popular language, especially in game programming, because it doesn't
: have the extra packaging of the object-oriented C++. Programmers use C

t*****n
发帖数: 4908
7
此人估计是专门写作的,没写过程序。语言对产品的影响,比数学/商业模型对产品的
影响小的太多。高手写的vb,比入门的写的java,强之百倍。

The
t

【在 r*********r 的大作中提到】
: 一位美国CS写的,各位大拿如何看?
: The Languages
: C++ is well-suited for large projects because it has an object-oriented
: structure. People can collaborate on one program by breaking it up into
: parts and having a small group or even one individual work on each part. The
: object-oriented structure also allows code to be reused a lot, which can
: cut down development time. C++ is also a fairly efficient language -
: although many C programmers will disagree.
: C is a popular language, especially in game programming, because it doesn't
: have the extra packaging of the object-oriented C++. Programmers use C

r*********r
发帖数: 1892
8
你看看:
http://www.cprogramming.com/tutorial.html
Google 一搜索关键词,头几条就蹦出来了。

【在 t*****n 的大作中提到】
: 此人估计是专门写作的,没写过程序。语言对产品的影响,比数学/商业模型对产品的
: 影响小的太多。高手写的vb,比入门的写的java,强之百倍。
:
: The
: t

P*******L
发帖数: 2637
9
这文章也太老了,连 Python 和 JavaScript 都没提到
语言的好坏不重要,重要的是生态圈

The
t

【在 r*********r 的大作中提到】
: 一位美国CS写的,各位大拿如何看?
: The Languages
: C++ is well-suited for large projects because it has an object-oriented
: structure. People can collaborate on one program by breaking it up into
: parts and having a small group or even one individual work on each part. The
: object-oriented structure also allows code to be reused a lot, which can
: cut down development time. C++ is also a fairly efficient language -
: although many C programmers will disagree.
: C is a popular language, especially in game programming, because it doesn't
: have the extra packaging of the object-oriented C++. Programmers use C

w**z
发帖数: 8232
10
在说上世纪吧。
Java is a multi-platform language that is especially useful in networking.
Of course, the most famous usage of Java is on the web, with Java applets,
but Java is also used to build cross-platform programs that stand alone.

【在 g*****g 的大作中提到】
: Whatever written 10 yrs ago is stale.
相关主题
程序员薪水
问-最近几年流行的计算机语言会是什么?想学 (转载)
未来ruby能不能挤掉python
估计javascript 最初设计时就基本没考虑好scope问题
进入Programming版参与讨论
r*********r
发帖数: 1892
11
现在工程界流行的Matlab,统计界流行的R也没提,确实看来有年子了,或者这两个在CS领
域里不值一提。
但在特定领域里的生态圈是dominant的,ME/EE的学生不会Matlab,在学校没法生存呀,
公司里到好一点,八仙过海,各显神通,会点Excel, pptx打遍天下的“高手”也是无处
不在:)

【在 P*******L 的大作中提到】
: 这文章也太老了,连 Python 和 JavaScript 都没提到
: 语言的好坏不重要,重要的是生态圈
:
: The
: t

r*********r
发帖数: 1892
12
看上去不像,上世纪还没有C#,他已经提了,可能像bug提的,十来年有可能。
MS是哪年推出C#?
应该是2001/2002年以后了,那时Visual C++ 6.0 流行着。

【在 w**z 的大作中提到】
: 在说上世纪吧。
: Java is a multi-platform language that is especially useful in networking.
: Of course, the most famous usage of Java is on the web, with Java applets,
: but Java is also used to build cross-platform programs that stand alone.

r*********r
发帖数: 1892
13
VB好像是老古董了,公司好多人称为“old school"的产品。
高手用VB吗?大拿们说说。。。

【在 t*****n 的大作中提到】
: 此人估计是专门写作的,没写过程序。语言对产品的影响,比数学/商业模型对产品的
: 影响小的太多。高手写的vb,比入门的写的java,强之百倍。
:
: The
: t

g*****g
发帖数: 34805
14
都提到1.5了,应该是04年左右。

【在 w**z 的大作中提到】
: 在说上世纪吧。
: Java is a multi-platform language that is especially useful in networking.
: Of course, the most famous usage of Java is on the web, with Java applets,
: but Java is also used to build cross-platform programs that stand alone.

w**z
发帖数: 8232
15
说的是。俺看到他提applet 就没细看了。

【在 g*****g 的大作中提到】
: 都提到1.5了,应该是04年左右。
d********t
发帖数: 9628
16
说得很对啊

【在 d*******r 的大作中提到】
: 只看了 C++, C 那两段,感觉都是瞎说
:
: The
: t

c*********r
发帖数: 2733
17
too oooold.
No one use java applets any more.
p******h
发帖数: 1783
18
为什么 java 流行起来了,java applet没流行起来?

【在 c*********r 的大作中提到】
: too oooold.
: No one use java applets any more.

g*****g
发帖数: 34805
19
因为你太年轻了。

【在 p******h 的大作中提到】
: 为什么 java 流行起来了,java applet没流行起来?
1 (共1页)
进入Programming版参与讨论
相关主题
教小孩C++?
[bssd] 教小孩functional programming
python象C/C++, ruby象java
Java EE这东西还有必要学吗
会Python就可以当码工了?
c写CGI
有朋友了解shen和Mark Tarver吗?
为什么说 lisp 是AI 的语言?
prolog, lisp, sql,这些算functional programming么?
rust现在很火
相关话题的讨论汇总
话题: c++话题: java话题: language话题: perl