识字编程在软件工程生命周期中的作用

ACM-SE 28 Pub Date : 1990-04-01 DOI:10.1145/98949.99007
Marcus Brown, D. Cordes
{"title":"识字编程在软件工程生命周期中的作用","authors":"Marcus Brown, D. Cordes","doi":"10.1145/98949.99007","DOIUrl":null,"url":null,"abstract":"The software life-cycle identifies a formal strategy for the systematic development of software. It pro­ vides a broad organizational platform for the genera­ tion of both small-scale and large-scale software sys­ tems. This platform defines a methodology for the specification, design, implementation, testing and maintenance of computer systems. Knuth's Literate Programming pnradigm presents a novel approach to coding software. It has proven beneficinl to the process of system implementation. This paper ex­ plores the fundamental characteristics of the literate parndigm, and looks at how they might be utilized within other stages of system development. The current (and potential) role of a literate pnradigm within the overall software life-cycle is examined. I n t r o d u c t io n As the demand for reliable, maintainable soft­ ware continues to increase, a growing concern is be­ ing placed on a developmental process that promotes comprehension and understandability. Such a tech­ nique would provide the development team with an effective tool for mnnnging the demands plnced upon them by software that is increasing in both size nnd complexity. Additionally, the method would sim­ plify maintenance of the developed product, nnd also promote code reusability. Permission lo copy without fee nil or part of this material is granted provided that the copies nre not made or distributed for direct com­ mercial advantage, the ACM copyright notice and (lie title of the publication and its date appear, and notice is given that copying is by permission of the Association for Computing Machinery. To copy otherwise, or to republish, requires a fee and/or specific per­ mission. © 1990 ACMO-8979I-356-6/90AMOO/OIOI $1.50 Knuth’s literate programming pnradigm [8] in­ troduces a technique for the coding of software that focuses on understandability. While literate pro­ gramming is normally associated with system im­ plementation, the general concerns addressed by the literate environment are not confined to the cod­ ing phase of software development. In fact, these concerns arise during all stages of softwnre devel­ opment. Issues such as underslandnbility, compre­ hension, readability, traceability nnd documentation are realized throughout the life-cycle. The literate paradigm represents a novel approach in addressing these items. To dale, the literate paradigm has remained entrenched within the implementation phase of the software life-cycle. System specification, design, test­ ing and maintenance must all rely on other develop­ ment techniques. However, the literate paradigm addresses issues of concern to these stages of de­ velopment. This paper reviews the current literate parndigm, identifies the underlying concepts central to this paradigm, nnd exnmines the impact of a fil­ trate approach on other phases of the software lifecycle. T h e C u r r e n t LH etnl.e I’n rn d igm Typical computer programs are conceived of as a set of instructions from a human programmer to a computer telling the computer what actions to per­ form. Due to the rising costs associated with soft­ ware development, it is imperative that such pro­ grams be developed in a readable, understandable format. Therefore, emphasis in softwnre develop­ ment has shifted from a quick generation of work­ able instruction sets lo the methodical construction of readable, comprehendnble instructions. The ma­ jor concern in writing programs must now be fo­ cused on enabling the human progrnmmer(s) to undcrstnnd the program. This is the basic philosophy underlying the concept of Literate Programming. Tlie WEB system represents Knuth’s implemen­ tation of the literate programming paradigm. Orig­ inally created for the Pascal language, it has since been adapted to C [10, 15j, Ada [13] and other lan­ guages. It has been used for both small programs [2, 3, 4] and large ones [9]. In all enses, writing a program designed for user comprehension has been the primary goal. The literate program is designed for two dis­ tinct audiences: other programmers and a compiler. To address these two different audiences, the WEB program must be processed in two different paths. For the human audience, the WEB source code is pro­ cessed by WEAVE, producing a TfeX document for typesetting. This in turn generates an indexed, struc­ tured listing of the original program. For the com­ puter, the WEB source is processed by TAIGLE, pro­ ducing a source code progrnm suitable for the com­ piler but unfit for human consumption (rending). This processing path is shown in Figure 1. m y f ile .T E X Typeset listing","PeriodicalId":409883,"journal":{"name":"ACM-SE 28","volume":"46 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"1990-04-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"The role of literate programming in the software engineering life-cycle\",\"authors\":\"Marcus Brown, D. Cordes\",\"doi\":\"10.1145/98949.99007\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"The software life-cycle identifies a formal strategy for the systematic development of software. It pro­ vides a broad organizational platform for the genera­ tion of both small-scale and large-scale software sys­ tems. This platform defines a methodology for the specification, design, implementation, testing and maintenance of computer systems. Knuth's Literate Programming pnradigm presents a novel approach to coding software. It has proven beneficinl to the process of system implementation. This paper ex­ plores the fundamental characteristics of the literate parndigm, and looks at how they might be utilized within other stages of system development. The current (and potential) role of a literate pnradigm within the overall software life-cycle is examined. I n t r o d u c t io n As the demand for reliable, maintainable soft­ ware continues to increase, a growing concern is be­ ing placed on a developmental process that promotes comprehension and understandability. Such a tech­ nique would provide the development team with an effective tool for mnnnging the demands plnced upon them by software that is increasing in both size nnd complexity. Additionally, the method would sim­ plify maintenance of the developed product, nnd also promote code reusability. Permission lo copy without fee nil or part of this material is granted provided that the copies nre not made or distributed for direct com­ mercial advantage, the ACM copyright notice and (lie title of the publication and its date appear, and notice is given that copying is by permission of the Association for Computing Machinery. To copy otherwise, or to republish, requires a fee and/or specific per­ mission. © 1990 ACMO-8979I-356-6/90AMOO/OIOI $1.50 Knuth’s literate programming pnradigm [8] in­ troduces a technique for the coding of software that focuses on understandability. While literate pro­ gramming is normally associated with system im­ plementation, the general concerns addressed by the literate environment are not confined to the cod­ ing phase of software development. In fact, these concerns arise during all stages of softwnre devel­ opment. Issues such as underslandnbility, compre­ hension, readability, traceability nnd documentation are realized throughout the life-cycle. The literate paradigm represents a novel approach in addressing these items. To dale, the literate paradigm has remained entrenched within the implementation phase of the software life-cycle. System specification, design, test­ ing and maintenance must all rely on other develop­ ment techniques. However, the literate paradigm addresses issues of concern to these stages of de­ velopment. This paper reviews the current literate parndigm, identifies the underlying concepts central to this paradigm, nnd exnmines the impact of a fil­ trate approach on other phases of the software lifecycle. T h e C u r r e n t LH etnl.e I’n rn d igm Typical computer programs are conceived of as a set of instructions from a human programmer to a computer telling the computer what actions to per­ form. Due to the rising costs associated with soft­ ware development, it is imperative that such pro­ grams be developed in a readable, understandable format. Therefore, emphasis in softwnre develop­ ment has shifted from a quick generation of work­ able instruction sets lo the methodical construction of readable, comprehendnble instructions. The ma­ jor concern in writing programs must now be fo­ cused on enabling the human progrnmmer(s) to undcrstnnd the program. This is the basic philosophy underlying the concept of Literate Programming. Tlie WEB system represents Knuth’s implemen­ tation of the literate programming paradigm. Orig­ inally created for the Pascal language, it has since been adapted to C [10, 15j, Ada [13] and other lan­ guages. It has been used for both small programs [2, 3, 4] and large ones [9]. In all enses, writing a program designed for user comprehension has been the primary goal. The literate program is designed for two dis­ tinct audiences: other programmers and a compiler. To address these two different audiences, the WEB program must be processed in two different paths. For the human audience, the WEB source code is pro­ cessed by WEAVE, producing a TfeX document for typesetting. This in turn generates an indexed, struc­ tured listing of the original program. For the com­ puter, the WEB source is processed by TAIGLE, pro­ ducing a source code progrnm suitable for the com­ piler but unfit for human consumption (rending). This processing path is shown in Figure 1. m y f ile .T E X Typeset listing\",\"PeriodicalId\":409883,\"journal\":{\"name\":\"ACM-SE 28\",\"volume\":\"46 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"1990-04-01\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"ACM-SE 28\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1145/98949.99007\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"ACM-SE 28","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/98949.99007","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

摘要

软件生命周期确定了软件系统开发的正式策略。它为小型和大型软件系统的生成提供了一个广泛的组织平台。该平台为计算机系统的规范、设计、实现、测试和维护定义了一种方法学。Knuth的识字编程范式提出了一种编程软件的新方法。实践证明,这对系统的实施过程是有益的。本文探讨了识字范式的基本特征,并探讨了如何在系统开发的其他阶段利用它们。考察了在整个软件生命周期中识字范式的当前(和潜在)角色。随着对可靠的、可维护的软件的需求不断增加,人们越来越关注促进理解和可理解性的开发过程。这样一种技术将为开发团队提供一种有效的工具,用于处理由规模和复杂性都在增加的软件强加给他们的需求。此外,该方法将简化开发产品的维护,并提高代码的可重用性。允许免费复制或部分复制本材料,前提是该副本不是为直接商业利益而制作或分发的,必须出现ACM版权声明和出版物的标题及其日期,并注明复制是由计算机协会许可的。以其他方式复制,或重新发布,需要费用和/或特定的任务。Knuth的识字编程范式[8]介绍了一种以可理解性为重点的软件编码技术。虽然识字编程通常与系统实现相关联,但识字环境所关注的一般问题并不局限于软件开发的编码阶段。事实上,这些问题在软件开发的所有阶段都会出现。可理解性、可理解性、可读性、可追溯性和文档化等问题贯穿整个生命周期。文学范式代表了一种解决这些问题的新方法。对戴尔来说,识字范例在软件生命周期的实现阶段仍然根深蒂固。系统规范、设计、测试和维护都必须依赖其他开发技术。然而,文学范式解决了与这些发展阶段有关的问题。本文回顾了当前的文学范式,确定了该范式的核心概念,并检查了文档方法对软件生命周期其他阶段的影响。这是一个很好的例子。典型的计算机程序被认为是人类程序员向计算机发出的一组指令,告诉计算机应该执行什么动作。由于与软件开发相关的成本不断上升,必须以可读、可理解的格式开发这些程序。因此,软件开发的重点已经从快速生成可工作的指令集转移到系统地构建可读、可理解的指令。现在编写程序的主要关注点必须集中在使人类程序员能够理解程序上。这是识字编程概念背后的基本哲学。Tlie WEB系统代表了Knuth对识字编程范式的实现。它最初是为Pascal语言创建的,后来被用于C [10,15j], Ada[13]和其他语言。它既用于小程序[2,3,4],也用于大型程序[9]。无论如何,编写一个便于用户理解的程序一直是主要目标。识字程序是为两个不同的受众设计的:其他程序员和编译器。为了处理这两种不同的受众,必须以两种不同的路径处理WEB程序。对于人类读者,WEB源代码由WEAVE处理,生成用于排版的TfeX文档。这反过来又生成原始程序的索引结构化列表。对于计算机,WEB源代码由TAIGLE处理,产生一个适合编译器但不适合人类消费(阅读)的源代码程序。此处理路径如图1所示。X格式列表
本文章由计算机程序翻译,如有差异,请以英文原文为准。
The role of literate programming in the software engineering life-cycle
The software life-cycle identifies a formal strategy for the systematic development of software. It pro­ vides a broad organizational platform for the genera­ tion of both small-scale and large-scale software sys­ tems. This platform defines a methodology for the specification, design, implementation, testing and maintenance of computer systems. Knuth's Literate Programming pnradigm presents a novel approach to coding software. It has proven beneficinl to the process of system implementation. This paper ex­ plores the fundamental characteristics of the literate parndigm, and looks at how they might be utilized within other stages of system development. The current (and potential) role of a literate pnradigm within the overall software life-cycle is examined. I n t r o d u c t io n As the demand for reliable, maintainable soft­ ware continues to increase, a growing concern is be­ ing placed on a developmental process that promotes comprehension and understandability. Such a tech­ nique would provide the development team with an effective tool for mnnnging the demands plnced upon them by software that is increasing in both size nnd complexity. Additionally, the method would sim­ plify maintenance of the developed product, nnd also promote code reusability. Permission lo copy without fee nil or part of this material is granted provided that the copies nre not made or distributed for direct com­ mercial advantage, the ACM copyright notice and (lie title of the publication and its date appear, and notice is given that copying is by permission of the Association for Computing Machinery. To copy otherwise, or to republish, requires a fee and/or specific per­ mission. © 1990 ACMO-8979I-356-6/90AMOO/OIOI $1.50 Knuth’s literate programming pnradigm [8] in­ troduces a technique for the coding of software that focuses on understandability. While literate pro­ gramming is normally associated with system im­ plementation, the general concerns addressed by the literate environment are not confined to the cod­ ing phase of software development. In fact, these concerns arise during all stages of softwnre devel­ opment. Issues such as underslandnbility, compre­ hension, readability, traceability nnd documentation are realized throughout the life-cycle. The literate paradigm represents a novel approach in addressing these items. To dale, the literate paradigm has remained entrenched within the implementation phase of the software life-cycle. System specification, design, test­ ing and maintenance must all rely on other develop­ ment techniques. However, the literate paradigm addresses issues of concern to these stages of de­ velopment. This paper reviews the current literate parndigm, identifies the underlying concepts central to this paradigm, nnd exnmines the impact of a fil­ trate approach on other phases of the software lifecycle. T h e C u r r e n t LH etnl.e I’n rn d igm Typical computer programs are conceived of as a set of instructions from a human programmer to a computer telling the computer what actions to per­ form. Due to the rising costs associated with soft­ ware development, it is imperative that such pro­ grams be developed in a readable, understandable format. Therefore, emphasis in softwnre develop­ ment has shifted from a quick generation of work­ able instruction sets lo the methodical construction of readable, comprehendnble instructions. The ma­ jor concern in writing programs must now be fo­ cused on enabling the human progrnmmer(s) to undcrstnnd the program. This is the basic philosophy underlying the concept of Literate Programming. Tlie WEB system represents Knuth’s implemen­ tation of the literate programming paradigm. Orig­ inally created for the Pascal language, it has since been adapted to C [10, 15j, Ada [13] and other lan­ guages. It has been used for both small programs [2, 3, 4] and large ones [9]. In all enses, writing a program designed for user comprehension has been the primary goal. The literate program is designed for two dis­ tinct audiences: other programmers and a compiler. To address these two different audiences, the WEB program must be processed in two different paths. For the human audience, the WEB source code is pro­ cessed by WEAVE, producing a TfeX document for typesetting. This in turn generates an indexed, struc­ tured listing of the original program. For the com­ puter, the WEB source is processed by TAIGLE, pro­ ducing a source code progrnm suitable for the com­ piler but unfit for human consumption (rending). This processing path is shown in Figure 1. m y f ile .T E X Typeset listing
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信