gpt4 book ai didi

java - 征服复杂性,Eckel 谈 Java 和 Python 以及 block 理论

转载 作者:太空狗 更新时间:2023-10-29 20:39:12 27 4
gpt4 key购买 nike

<分区>

在 Bruce Eckel 的 Thinking In Java 的介绍中,他在 1998 年说:

Programming is about managing complexity: the complexity of the problem you want to solve, laid upon the complexity of the machine in which it is solved. Because of this complexity, most of our programming projects fail. And yet, of all the programming languages of which I am aware, none of them have gone all-out and decided that their main design goal would be to conquer the complexity of developing and maintaining programs.

在第二版和以后的版本中,他添加了这个脚注(大约 2003 年):

I take this back on the 2nd edition: I believe that the Python language comes closest to doing exactly that. See www.Python.org.

我是 Java 的初学者,具有 Delphi (Pascal)、C、C++ 和 Python 的背景。这是我想知道的:

  1. 当 Eckel 称 Python 在克服复杂性方面“更好”时,他到底考虑了什么?他的想法是否与其他同时使用这两种语言的人一致?

  2. 您如何看待征服复杂性? Python 的更短、更简洁的语法是克服复杂性的关键方法(因此,例如,Jython 可能是 Java 的优秀库和 Python 的简洁语法的一个很好的桥梁),还是 Java 的强类型心态,它从 C++ 继承了这个想法,从 simula 继承了这个想法,我认为这是征服复杂性的关键?还是 Rapid Application Designer(想想 Delphi,或者对于 Java,优秀的免费 NetBeans 窗口/表单设计器工具)或组件、bean 或 J2EE?对你来说,什么能征服一切?

这已经被标记为主观的。 [编辑]

Note: More on Bruce's thoughts, on why he loves Python are found here.文章中的关键引述:

Bruce Eckel: They say you can hold seven plus or minus two pieces of information in your mind. I can't remember how to open files in Java. I've written chapters on it. I've done it a bunch of times, but it's too many steps. And when I actually analyze it, I realize these are just silly design decisions that they made. Even if they insisted on using the Decorator pattern in java.io, they should have had a convenience constructor for opening files simply. Because we open files all the time, but nobody can remember how. It is too much information to hold in your mind.

那么,组 block 理论。根据组 block 理论指标,Python 杀死了其他所有人。我会答应他的。但是您使用的指标是什么?如果您愿意的话,我想特别邀请人们为 Java 挺身而出,反对 Bruce。

[请不要投票重新开放,这个主题本质上是煽动性的,而我的失态使它更是如此。我同意版主的意见。]

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com