编写代码的软件用什么编写的

tech2024-04-15  12

编写代码的软件用什么编写的

Writing great code that is not only functional and bug-free but also leverages all aspects of its environment to run efficiently is something all of us would aspire to. Randall Hyde is hoping to make that road a bit easier beginning with the first book in a series of four entitled Write Great Code, Understanding the Machine.

我们所有人都希望编写出不仅功能齐全,无错误而且还利用其环境的各个方面有效运行的出色代码。 兰德尔·海德(Randall Hyde)希望从这四本名为《 编写伟大的代码,理解机器》的系列中的第一本书开始,使这条路更轻松一些。

Hyde is taking on a topic that continues to lie at the core of all development, the foundations of computer architecture. In this case Hyde is predominantly speaking to those on x86 platforms, though the fundamentals carry over to Power PC and others. Previous to this series one would be initiated into programming by way of training courses, how-to books and trial and error.

海德所提出的主题一直是所有开发的核心,即计算机体系结构的基础。 在这种情况下,Hyde主要针对x86平台上的产品,尽管基本原理可以延续到Power PC和其他产品上。 在本系列之前,将通过培训课程,使用方法书和反复试验来开始编程。

However, the author is hoping he delivered the equivilant of a university course on systems architecture for the programmer without needing to first learn assembly language.

但是,作者希望他能为程序员提供一门大学的系统体系结构课程,而无需先学习汇编语言。

Prior to the world wide web becoming a central element in professional development, programmers traversed a traditional road of learning a procedural language, perhaps in university or through trial and error on their own, such as C. However, since the late 1990’s, many a developer’s first taste of code has been Perl, PHP or Python.

在万维网成为专业发展的核心要素之前,程序员穿越了学习过程语言的传统道路,可能是在大学或通过诸如C的尝试和错误尝试的。然而,自1990年代末以来,许多开发人员对代码的初衷是Perl,PHP或Python。

In some cases missing the functional building blocks of programming and the code’s interaction with the hardware elements of processor, memory and more may be invisible obstacles to writing great code. In my own experience, Code Complete was a book similar to Hyde’s effort that took me to the next level of thinking about code prior to writing it. Hyde’s book is challenging me on a whole new level.

在某些情况下,缺少编程的功能构建块以及代码与处理器,存储器和硬件元素之间的交互性,可能是编写出色代码的无形障碍。 以我自己的经验, 《代码完成》是一本类似于海德的著作,使我在编写代码之前进入了代码的下一个层次。 海德的书以全新的面貌挑战着我。

According to Randall Hyde, it is this new generation of developer’s his book is aiming to reach – “Because this is the group of programmers who’ve probably never seen this material elsewhere,” he told SitePoint.

据兰德尔·海德(Randall Hyde)所说,这是新一代开发人员的书所要达到的目标-“因为这是一群程序员,他们可能从未在其他地方看到过此材料,”他告诉SitePoint。

Before some might suggest the books may stray to far from relevance to web development languages, Hyde says three of the four volumes will directly address developer’s who choose to stay with the interpreted languages of the web.

在某些人可能认为这些书可能与网络开发语言失去联系之前,海德说,这四本书中的三本将直接针对选择使用网络解释语言的开发人员。

“Volumes I, III, and IV will be applicable to those wanted to stick with [Perl, PHP and the like]. Volume II will be of little interest — since it covers how compilers generate code, which is N/A to script/interpreted languages,” Hyde added.

“第一,第三和第四卷将适用于那些希望使用[Perl,PHP等]的用户。 第II卷的兴趣不大,因为它涵盖了编译器如何生成代码,而脚本/解释语言则不适用。

Volume I covers basic machine data types, basic machine architecture, I/O, and other such topics which are relatively independent of the language.

第I卷介绍了基本的机器数据类型,基本的机器体系结构,I / O以及与语言相对无关的其他此类主题。

“The book uses examples in C, Pascal, Assembly, and Basic, but someone with familiarity with *any* imperative language will understand what’s going on,” Hyde said.

Hyde说:“这本书使用C,Pascal,Assembly和Basic的示例,但是熟悉*任何*命令式语言的人都可以理解正在发生的事情。”

While the first volume does not deal heavily with object-oriented development, which is an item of interest to LAMP programmers, there is a discussion of how objects are implemented at the machine level and their costs.

虽然第一卷并没有过多地涉及面向对象的开发,这是LAMP程序员感兴趣的一个项目,但这里讨论的是如何在机器级别实现对象及其成本。

Significant to me was the focus on providing an understanding of how computers execute code – which causes one to pause and consider the organization of one’s applications.

对我而言,重点是提供对计算机如何执行代码的理解,这将导致人们暂停并考虑应用程序的组织。

A parting comment from Hyde: “No matter what language facility a programmer uses, understanding how the machine represents data, executes code, and processes I/O is crucial to those who want to write great code.”

海德(Hyde)的一则分开的评论说:“无论程序员使用哪种语言工具,了解机器如何表示数据,执行代码以及处理I / O对于想要编写出色代码的人来说都是至关重要的。”

翻译自: https://www.sitepoint.com/write-great-code/

编写代码的软件用什么编写的

最新回复(0)