The Nature of Software
The nature of the software medium has many consequences for systems engineering (SE) of software-intensive systems. Fred Brooks has famously observed that four properties of software, taken together, differentiate it from other kinds of engineering artifacts (Brooks 1995). These four properties are:
#complexity, #conformity, #changeability, #invisibility.
Brooks states:
<blockquote>Software entities are more complex for their size than perhaps any other human construct because no two parts are alike (at least above the statement level). If they are, we make the two similar parts into a subroutine — open or closed. In this respect, software systems differ profoundly from computers, buildings, or automobiles, where repeated elements abound. (Brooks 1995, p 82)</blockquote>
ソフトウェアという媒体の性質は、ソフトウェア集約型システムのシステムズエンジニアリング(SE)に多くの影響をもたらす。よく知られているように、Fred Brooks は、ソフトウェアの4つの特性が組み合わさることで、ソフトウェアは他の種類の工学的人工物と区別されると述べている(Brooks 1995)。これら4つの特性は次のとおりである:
Brooks は次のように述べている:
ソフトウェアの実体は、その規模の割に、おそらく他のどんな人間の構築物よりも複雑である。どの2つの部分も同じではないからである(少なくともステートメントレベルより上では)。もし同じ部分があれば、我々はその2つの類似した部分をサブルーチンにする——オープンであれクローズドであれ。この点で、ソフトウェアシステムは、同じ要素が繰り返し数多く現れるコンピュータ、建物、自動車とは根本的に異なる。(Brooks 1995, p 82)
The complexity of software arises from the large number of unique interacting parts in a software system. The parts are unique because they are encapsulated as functions, subroutines, or objects, and invoked as needed rather than being replicated. Software parts have several different kinds of interactions, including serial and concurrent invocations, state transitions, data couplings, and interfaces to databases and external systems.
ソフトウェアの複雑さは、ソフトウェアシステム(software system)を構成する、固有で相互に作用し合う多数の部分から生じる。部分が固有であるのは、それらが複製されるのではなく、関数、サブルーチン、またはオブジェクトとしてカプセル化され、必要に応じて呼び出されるからである。ソフトウェアの部分は、逐次的および並行的な呼び出し、状態遷移、データ結合、データベースや外部システムへのインタフェースを含む、数種類の異なる相互作用を持つ。
Depiction of a software entity often requires several different design representations to portray the numerous static structures, dynamic couplings, and modes of interaction that exist in computer software. Complexity within the parts and in the connections among parts requires that changes undergo substantial design rigor and regression testing. Software provides functionality for components that are embedded, distributed and data centric. Software can implement simple control loops as well as complex algorithms and heuristics.
ソフトウェアの実体を描写するには、コンピュータソフトウェアに存在する多数の静的構造、動的結合、相互作用の様式を表すために、数種類の異なる設計表現が必要になることが多い。部分の内部にも部分間の接続にも複雑さがあるため、変更には相当の設計上の厳密さと回帰テストが求められる。ソフトウェアは、組み込まれ、分散され、データ中心である構成要素に機能を提供する。ソフトウェアは、単純な制御ループだけでなく、複雑なアルゴリズムやヒューリスティクスも実装できる。
Complexity can hide defects that may not be discovered easily, thus requiring significant additional and unplanned rework.
複雑さは、容易には発見されないかもしれない欠陥を覆い隠すことがあり、その結果、計画外の大幅な手戻りが追加で必要になる。
Software, unlike a physical product, has no underlying natural principles which it must conform to, such as Newton’s laws of motion. However, software must conform to exacting specifications in the representation of each of its parts, in the interfaces to other internal parts, and in the connections to the environment in which it operates. A missing semicolon or other syntactic error can be detected by a compiler, but a defect in the program logic or a timing error may be difficult to detect until encountered during operation.
ソフトウェアには、物理的製品とは異なり、ニュートンの運動法則のような、従わなければならない基礎的な自然原理がない。しかし、ソフトウェアは、各部分の表現、他の内部部分とのインタフェース、そして動作環境との接続において、厳密な仕様に適合しなければならない。セミコロンの欠落やその他の構文エラーはコンパイラで検出できるが、プログラムロジックの欠陥やタイミングエラーは、運用中に遭遇するまで検出が困難なことがある。
Unlike software, tolerance among the interfaces of physical entities is the foundation of manufacturing and assembly. No two physical parts that are joined together have, or are required to have, exact matches. There are no corresponding tolerances in the interfaces among software entities or between software entities and their environments. There are no interface specifications for software stating that a parameter can be an integer plus or minus 2%. Interfaces among software parts must agree exactly in numbers, types of parameters and kinds of couplings.
ソフトウェアとは異なり、物理的実体では、インタフェース間の公差が製造と組立ての基礎となっている。接合される2つの物理的部分が正確に一致することはなく、正確な一致が求められることもない。ソフトウェア実体間のインタフェースや、ソフトウェア実体とその環境との間のインタフェースには、これに相当する公差は存在しない。パラメータが「整数プラスマイナス2%」でもよいと規定するソフトウェアのインタフェース仕様は存在しない。ソフトウェア部分間のインタフェースは、パラメータの数、型、結合の種類において正確に一致しなければならない。
Lack of conformity can cause problems when an existing software component cannot be reused as planned because it does not conform to the needs of the product under development. Lack of conformity might not be discovered until late in a project, thus necessitating the development and integration of an acceptable component to replace the one that cannot be reused. This requires an unplanned allocation of resources (usually) and can delay project completion.
適合性の欠如は、既存のソフトウェア構成要素が開発中の製品のニーズに適合せず、計画どおりに再利用できない場合に問題を引き起こし得る。適合性の欠如はプロジェクトの終盤まで発見されないことがあり、その場合、再利用できない構成要素に代わる、許容可能な構成要素を開発して統合する必要が生じる。これには(通常)計画外の資源割当てが必要となり、プロジェクトの完了が遅れるおそれがある。
Software coordinates the operation of physical components and provides most of the functionality in software-intensive systems. Because software is the most malleable (easily changed) element in a software-intensive system, it is the most frequently changed element. This is particularly true during the late stages of a development project and during system sustainment. However, this does not mean that software is easy to change. Complexity and the need for conformity can make changing software an extremely difficult task. Changing one part of a software system often results in undesired side effects in other parts of the system, requiring more changes before the software can operate at maximum efficiency.
ソフトウェアは、ソフトウェア集約型システムにおいて、物理的構成要素の動作を調整し、機能の大部分を提供する。ソフトウェアはソフトウェア集約型システムの中で最も可鍛性の高い(容易に変更できる)要素であるため、最も頻繁に変更される要素となる。これは特に、開発プロジェクトの後期段階とシステムの維持段階に当てはまる。しかし、これはソフトウェアの変更が容易であることを意味するわけではない。複雑さと適合性の必要性から、ソフトウェアの変更は極めて困難なタスクとなり得る。ソフトウェアシステムの一部を変更すると、システムの他の部分に望ましくない副作用が生じることが多く、ソフトウェアが最大の効率で動作できるようになるまでに、さらなる変更が必要になる。
Software is said to be invisible because it has no physical properties. While the effects of executing software on a digital computer are observable, software itself cannot be seen, tasted, smelled, touched, or heard. Software is an intangible entity because our five human senses are incapable of directly sensing it.
ソフトウェアは物理的特性を持たないため、不可視であると言われる。デジタルコンピュータ上でソフトウェアを実行した効果は観察できるが、ソフトウェアそのものを見たり、味わったり、嗅いだり、触れたり、聞いたりすることはできない。ソフトウェアは、人間の5つの感覚では直接感知できないため、無形の実体である。
Work products such as requirements specifications, design documents, source code and object code are representations of software, but they are not the software. At the most elemental level, software resides in the magnetization and current flow in an enormous number of electronic elements within a digital device. Because software has no physical presence, software engineers must use different representations at different levels of abstraction in an attempt to visualize the inherently invisible entity.
要求仕様、設計文書、ソースコード、オブジェクトコードなどの作業成果物はソフトウェアの表現であって、ソフトウェアそのものではない。最も根源的なレベルでは、ソフトウェアは、デジタルデバイス内の膨大な数の電子素子における磁化と電流の流れの中に存在する。ソフトウェアには物理的な存在がないため、ソフトウェアエンジニアは、本質的に不可視であるこの実体を視覚化しようと、異なる抽象レベルで異なる表現を用いなければならない。
One other point about the nature of software that Brooks alludes to but does not explicitly call out is the uniqueness of software. Software and software projects are unique for the following reasons: *Software has no physical properties; *Software is the product of intellect-intensive teamwork; *Productivity of software developers varies more widely than the productivity of other engineering disciplines; *Estimation and planning for software projects is characterized by a high degree of uncertainty, which can be at best partially mitigated by best practices; *Risk management for software projects is predominantly process-oriented; *Software alone is useless, as it is always a part of a larger system; and *Software is the most frequently changed element of software intensive systems.
Brooks がほのめかしてはいるものの明示的には指摘していない、ソフトウェアの性質に関するもう1つの点は、ソフトウェアの固有性である。ソフトウェアとソフトウェアプロジェクトが固有である理由は次のとおりである:
Brooks, F. The Mythical Man-Month, Anniversary Edition. Boston, MA. Addison Wesley Longman Inc. 1995.
Fairley, R. E. Managing and Leading Software Projects. Hoboken, New Jersey. John Wiley and Sons. 2009.
Bourque, P. and R.E. Fairley eds. Guide to the Software Engineering Body of Knowledge (SWEBOK). Los Alamitos, CA. IEEE Computer Society. 2014.
Brooks, F. The Mythical Man-Month, Anniversary Edition. Boston, MA. Addison Wesley Longman Inc. 1995.
Fairley, R. E. Managing and Leading Software Projects. Hoboken, New Jersey. John Wiley and Sons. 2009.