哪种语言最容易学?

发布于 2024-09-15 07:30:35 字数 269 浏览 7 评论 0原文

这是一个主观问题,只是为了获得总体印象。由于 Java 是目前最流行的编程语言,因此它被用作基准。

可以说我必须花费 T 大量的时间/精力来学习/掌握 Java。我应该乘以什么因子来获得学习/掌握其他语言(例如 C、C++、C#、python、perl、Lisp、Haskel、PHP)所需的时间/精力?

我的猜测是:

0.5T PHP
0.9T python
1.1T C#
2.0T C++
3.0T C

你觉得怎么样?

This is a subjective question just to get a general impression. As Java is the most popular programming language right now it is used as a benchmark.

Lets say I have to spend T amount of time/effort to learn/master Java. By what factor should I multiply T to get a time/effort needed to learn/master other language instead, say C, C++, C#, python, perl, Lisp, Haskel, PHP?

My guess is:

0.5T PHP
0.9T python
1.1T C#
2.0T C++
3.0T C

What do you think?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

三生一梦 2024-09-22 07:30:35

就我个人而言,我建议 Brainfuck。这是我最喜欢的初学者语言。别担心,这个名字就是个笑话!

Personally, I'd suggest Brainfuck. It's my favourite language for beginners. Don't worry, the name is joke!

夜未央樱花落 2024-09-22 07:30:35

Dartmouth BASIC 的设计目标是易于学习和使用。就其所做的而言,它在这两方面都取得了巨大的成功。

麻省理工学院在课程 6.001 中使用Scheme(LISP 的方言)多年,并得出结论认为它更容易学习,至少在最初是这样,因为基本上没有任何语法会绊倒学生。

回到蒸汽时代后期,当大型机恐龙仍然统治地球时,德克萨斯大学奥斯汀分校计算机科学系进行了并行测试,向一些新生教授 FORTRAN,向其他学生教授 PASCAL。他们的结论是,PASCAL 更挑剔的语法最初更难学,但 PASCAL 学生始终花费更少的计算机时间和更少的运行时间(批处理、打孔卡)来运行他们的作业,尽管他们的作业通常更难。

C 和 C++ 具有非常非常相似的核心语言。在考虑到设计和命名约定的个人品味后,您在所有四种语言中编写的 90% 的代码将是相同的。 C 实际上没有核心语言之上的任何东西,而 C++ 添加了类和模板。我不熟悉 C# 或 Java,只是初步感觉它们都是从 C 开始并从那里发展而来的。

根据我个人的经验,Ada 并不难学,而且编译器非常挑剔,语法正确的代码通常在第一次尝试时就能按预期工作。其他人也注意到了艾达的这个属性。

Dartmouth BASIC was designed to be easy to learn and easy to use. For what it did, it was a howling success on both counts.

MIT used Scheme (dialect of LISP) in course 6.001 for many years, and concluded that it was a lot easier to learn, at least initially, because there was essentially no syntax to trip students up.

Back in the late Steam Era, when mainframe dinosaurs still ruled the Earth, the UT Austin Computer Science Department did side-by-side tests, teaching FORTRAN to some of the freshman and PASCAL to others. Their conclusion was that PASCAL's pickier syntax was INITIALLY harder to learn, but the PASCAL students consistently spent less computer time, and less runs (batch processing, punched cards), getting their homework running, even though their homework assignments were typically harder.

C and C++ have very, very similar core languages. 90% of the code you write will be identical in all four languages, after allowing for personal taste in design and naming conventions. C doesn't really have anything above the core language, while C++ adds classes and templates. I'm not familiar with C# or Java, beyond a rudimentary feeling that they both started with C and went from there.

Ada was, in my personal experience, not difficult to learn, and the compilers were picky enough that syntactically-correct code generally worked as intended on the first try. Other people have also noticed that property of Ada.

z祗昰~ 2024-09-22 07:30:35

这个问题太主观了,无法回答。这完全取决于您需要使用该语言做什么。

This is so subjective that it cannot be answered. It totally depends on what you need to do with the language.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文