merhaba
- User
merhaba
- Assistant
Merhaba! Size nasıl yardımcı olabilirim?
- User
- Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
merhaba
Merhaba! Size nasıl yardımcı olabilirim?
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
aşağıdaki metni teknik ve yazılım konularına dikkat ederek Türkçeye çevirir misin?
No Silver Bullet: Essence and Accidents of Software Engineering by Frederick P. Brooks, Jr. Of all the monsters that fill the nightmares of our folklore, none terrify more than werewolves, because they transform unexpectedly from the familiar into horrors. For these, one seeks bullets of silver that can magically lay them to rest. The familiar software project, at least as seen by the nontechnical manager, has something of this character; it is usually innocent and straightforward, but is capable of becoming a monster of missed schedules, blown budgets, and flawed products. So we hear desperate cries for a silver bullet--something to make software costs drop as rapidly as computer hardware costs do. But, as we look to the horizon of a decade hence, we see no silver bullet. There is no single development, in either technology or in management technique, that by itself promises even one order-of-magnitude improvement in productivity, in reliability, in simplicity. In this article, I shall try to show why, by examining both the nature of the software problem and the properties of the bullets proposed. Skepticism is not pessimism, however. Although we see no startling breakthroughs--and indeed, I believe such to be inconsistent with the nature of software--many encouraging innovations are under way. A disciplined, consistent effort to develop, propagate, and exploit these innovations should indeed yield an order-of-magnitude improvement. There is no royal road, but there is a road. The first step toward the management of disease was replacement of demon theories and humours theories by the germ theory. That very step, the beginning of hope, in itself dashed all hopes of magical solutions. It told workers that progress would be made stepwise, at great effort, and that a persistent, unremitting care would have to be paid to a discipline of cleanliness. So it is with software engineering today. Does It Have to Be Hard?--Essential Difficulties Not only are there no silver bullets now in view, the very nature of software makes it unlikely that there will be any--no inventions that will do for software productivity, reliability, and simplicity what electronics, transistors, and large-scale integration did for computer hardware. We cannot expect ever to see twofold gains every two years. First, one must observe that the anomaly is not that software progress is so slow, but that computer hardware progress is so fast. No other technology since civilization began has seen six orders of magnitude in performance price gain in 30 years. In no other technology can one choose to take the gain in either improved performance or in reduced costs. These gains flow from the transformation of computer manufacture from an assembly industry into a process industry.
Second, to see what rate of progress one can expect in software technology, let us examine the difficulties of that technology. Following Aristotle, I divide them into essence, the difficulties inherent in the nature of software, and accidents, those difficulties that today attend its production but are not inherent. The essence of a software entity is a construct of interlocking concepts: data sets, relationships among data items, algorithms, and invocations of functions. This essence is abstract in that such a conceptual construct is the same under many different representations. It is nonetheless highly precise and richly detailed. I believe the hard part of building software to be the specification, design, and testing of this conceptual construct, not the labor of representing it and testing the fidelity of the representation. We still make syntax errors, to be sure; but they are fuzz compared with the conceptual errors in most systems. If this is true, building software will always be hard. There is inherently no silver bullet. Let us consider the inherent properties of this irreducible essence of modern software systems: complexity, conformity, changeability, and invisibility. Complexity. 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. Digital computers are themselves more complex than most things people build: They have very large numbers of states. This makes conceiving, describing, and testing them hard. Software systems have orders-of-magnitude more states than computers do. Likewise, a scaling-up of a software entity is not merely a repetition of the same elements in larger sizes, it is necessarily an increase in the number of different elements. In most cases, the elements interact with each other in some nonlinear fashion, and the complexity of the whole increases much more than linearly. The complexity of software is an essential property, not an accidental one. Hence, descriptions of a software entity that abstract away its complexity often abstract away its essence. For three centuries, mathematics and the physical sciences made great strides by constructing simplified models of complex phenomena, deriving properties from the models, and verifying those properties by experiment. This paradigm worked because the complexities ignored in the models were not the essential properties of the phenomena. It does not work when the complexities are the essence. Many of the classic problems of developing software products derive from this essential complexity and its nonlinear increases with size. From the complexity comes the difficulty of communication among team members, which leads to product flaws, cost overruns, schedule delays. From the complexity comes the difficulty of enumerating, much less understanding, all the possible states of the program, and from that comes the unreliability. From complexity of function comes the difficulty of invoking function, which makes programs hard to use. From complexity of structure comes the difficulty of extending programs to new functions
without creating side effects. From complexity of structure come the unvisualized states that constitute security trapdoors. Not only technical problems, but management problems as well come from the complexity. It makes overview hard, thus impeding conceptual integrity. It makes it hard to find and control all the loose ends. It creates the tremendous learning and understanding burden that makes personnel turnover a disaster. Conformity. Software people are not alone in facing complexity. Physics deals with terribly complex objects even at the "fundamental" particle level. The physicist labors on, however, in a firm faith that there are unifying principles to be found, whether in quarks or in unifiedfield theories. Einstein argued that there must be simplified explanations of nature, because God is not capricious or arbitrary. No such faith comforts the software engineer. Much of the complexity that he must master is arbitrary complexity, forced without rhyme or reason by the many human institutions and systems to which his interfaces must conform. These differ from interface to interface, and from time to time, not because of necessity but only because they were designed by different people, rather than by God. In many cases, the software must conform because it is the most recent arrival on the scene. In others, it must conform because it is perceived as the most conformable. But in all cases, much complexity comes from conformation to other interfaces; this complexity cannot be simplified out by any redesign of the software alone. Changeability. The software entity is constantly subject to pressures for change. Of course, so are buildings, cars, computers. But manufactured things are infrequently changed after manufacture; they are superseded by later models, or essential changes are incorporated into later-serial-number copies of the same basic design. Call-backs of automobiles are really quite infrequent; field changes of computers somewhat less so. Both are much less frequent than modifications to fielded software. In part, this is so because the software of a system embodies its function, and the function is the part that most feels the pressures of change. In part it is because software can be changed more easily--it is pure thought-stuff, infinitely malleable. Buildings do in fact get changed, but the high costs of change, understood by all, serve to dampen the whims of the changers. All successful software gets changed. Two processes are at work. First, as a software product is found to be useful, people try it in new cases at the edge of or beyond the original domain. The pressures for extended function come chiefly from users who like the basic function and invent new uses for it. Second, successful software survives beyond the normal life of the machine vehicle for which it is first written. If not new computers, then at least new disks, new displays, new printers come along; and the software must be conformed to its new vehicles of opportunity. In short, the software product is embedded in a cultural matrix of applications, users, laws, and machine vehicles. These all change continually, and their changes inexorably force change upon the software product.
Invisibility. Software is invisible and unvisualizable. Geometric abstractions are powerful tools. The floor plan of a building helps both architect and client evaluate spaces, traffic flows, views. Contradictions and omissions become obvious. Scale drawings of mechanical parts and stick-figure models of molecules, although abstractions, serve the same purpose. A geometric reality is captured in a geometric abstraction. The reality of software is not inherently embedded in space. Hence, it has no ready geometric representation in the way that land has maps, silicon chips have diagrams, computers have connectivity schematics. As soon as we attempt to diagram software structure, we find it to constitute not one, but several, general directed graphs superimposed one upon another. The several graphs may represent the flow of control, the flow of data, patterns of dependency, time sequence, name-space relationships. These graphs are usually not even planar, much less hierarchical. Indeed, one of the ways of establishing conceptual control over such structure is to enforce link cutting until one or more of the graphs becomes hierarchical. [1] In spite of progress in restricting and simplifying the structures of software, they remain inherently unvisualizable, and thus do not permit the mind to use some of its most powerful conceptual tools. This lack not only impedes the process of design within one mind, it severely hinders communication among minds. Past Breakthroughs Solved Accidental Difficulties If we examine the three steps in software technology development that have been most fruitful in the past, we discover that each attacked a different major difficulty in building software, but that those difficulties have been accidental, not essential, difficulties. We can also see the natural limits to the extrapolation of each such attack. High-level languages. Surely the most powerful stroke for software productivity, reliability, and simplicity has been the progressive use of high-level languages for programming. Most observers credit that development with at least a factor of five in productivity, and with concomitant gains in reliability, simplicity, and comprehensibility. What does a high-level language accomplish? It frees a program from much of its accidental complexity. An abstract program consists of conceptual constructs: operations, data types, sequences, and communication. The concrete machine program is concerned with bits, registers, conditions, branches, channels, disks, and such. To the extent that the high-level language embodies the constructs one wants in the abstract program and avoids all lower ones, it eliminates a whole level of complexity that was never inherent in the program at all. The most a high-level language can do is to furnish all the constructs that the programmer imagines in the abstract program. To be sure, the level of our thinking about data structures, data types, and operations is steadily rising, but at an ever decreasing rate. And language development approaches closer and closer to the sophistication of users. Moreover, at some point the elaboration of a high-level language creates a tool-mastery burden that increases, not reduces, the intellectual task of the user who rarely uses the esoteric constructs. Time-sharing. Time-sharing brought a major improvement in the productivity of programmers and in the quality of their product, although not so large as that brought by high-level languages.
Time-sharing attacks a quite different difficulty. Time-sharing preserves immediacy, and hence enables one to maintain an overview of complexity. The slow turnaround of batch programming means that one inevitably forgets the minutiae, if not the very thrust, of what one was thinking when he stopped programming and called for compilation and execution. This interruption is costly in time, for one must refresh one's memory. The most serious effect may well be the decay of the grasp of all that is going on in a complex system. Slow turnaround, like machine-language complexities, is an accidental rather than an essential difficulty of the software process. The limits of the potential contribution of time-sharing derive directly. The principal effect of timesharing is to shorten system response time. As this response time goes to zero, at some point it passes the human threshold of noticeability, about 100 milliseconds. Beyond that threshold, no benefits are to be expected. Unified programming environments. Unix and Interlisp, the first integrated programming environments to come into widespread use, seem to have improved productivity by integral factors. Why? They attack the accidental difficulties that result from using individual programs together, by providing integrated libraries, unified file formats, and pipes and filters. As a result, conceptual structures that in principle could always call, feed, and use one another can indeed easily do so in practice. This breakthrough in turn stimulated the development of whole toolbenches, since each new tool could be applied to any programs that used the standard formats. Because of these successes, environments are the subject of much of today's software-engineering research. We look at their promise and limitations in the next section. Hopes for the Silver Now let us consider the technical developments that are most often advanced as potential silver bullets. What problems do they address--the problems of essence, or the remaining accidental difficulties? Do they offer revolutionary advances, or incremental ones? Ada and other high-level language advances. One of the most touted recent developments is Ada, a general-purpose high-level language of the 1980's. Ada not only reflects evolutionary improvements in language concepts, but indeed embodies features to encourage modern design and modularization. Perhaps the Ada philosophy is more of an advance than the Ada language, for it is the philosophy of modularization, of abstract data types, of hierarchical structuring. Ada is over-rich, a natural result of the process by which requirements were laid on its design. That is not fatal, for subsetted working vocabularies can solve the learning problem, and hardware advances will give us the cheap MIPS to pay for the compiling costs. Advancing the structuring of software systems is indeed a very good use for the increased MIPS our dollars will buy. Operating systems, loudly decried in the 1960's for their memory and cycle costs, have proved to be an excellent form in which to use some of the MIPS and cheap memory bytes of the past hardware surge. Nevertheless, Ada will not prove to be the silver bullet that slays the software productivity monster. It is, after all, just another high-level language, and the biggest payoff from such languages came from the first transition -- the transition up from the accidental complexities of the machine into the more abstract statement of step-by-step solutions. Once those
accidents have been removed, the remaining ones will be smaller, and the payoff from their removal will surely be less. I predict that a decade from now, when the effectiveness of Ada is assessed, it will be seen to have made a substantial difference, but not because of any particular language feature, nor indeed because of all of them combined. Neither will the new Ada environments prove to be the cause of the improvements. Ada's greatest contribution will be that switching to it occasioned training programmers in modern software-design techniques. Object-oriented programming. Many students of the art hold out more hope for object-oriented programming than for any of the other technical fads of the day. [2] I am among them. Mark Sherman of Dartmouth notes on CSnet News that one must be careful to distinguish two separate ideas that go under that name: abstract data types and hierarchical types. The concept of the abstract data type is that an object's type should be defined by a name, a set of proper values, and a set of proper operations rather than by its storage structure, which should be hidden. Examples are Ada packages (with private types) and Modula's modules. Hierarchical types, such as Simula-67's classes, allow one to define general interfaces that can be further refined by providing subordinate types. The two concepts are orthogonal_one may have hierarchies without hiding and hiding without hierarchies. Both concepts represent real advances in the art of building software. Each removes yet another accidental difficulty from the process, allowing the designer to express the essence of the design without having to express large amounts of syntactic material that add no information content. For both abstract types and hierarchical types, the result is to remove a higher-order kind of accidental difficulty and allow a higher-order expression of design. Nevertheless, such advances can do no more than to remove all the accidental difficulties from the expression of the design. The complexity of the design itself is essential, and such attacks make no change whatever in that. An order-of-magnitude gain can be made by object-oriented programming only if the unnecessary type-specification underbrush still in our programming language is itself nine-tenths of the work involved in designing a program product. I doubt it. Artificial intelligence. Many people expect advances in artificial intelligence to provide the revolutionary breakthrough that will give order-of-magnitude gains in software productivity and quality. [3] I do not. To see why, we must dissect what is meant by "artificial intelligence." D.L. Parnas has clarified the terminological chaos: [4] Two quite different definitions of AI are in common use today. AI-1: The use of computers to solve problems that previously could only be solved by applying human intelligence. Al-2: The use of a specific set of programming techniques known as heuristic or rule-based programming. In this approach human experts are studied to determine what heuristics or rules of thumb they use in solving problems.... The program is designed to solve a problem the way that humans seem to solve it.
The first definition has a sliding meaning.... Something can fit the definition of Al-1 today but, once we see how the program works and understand the problem, we will not think of it as Al any more.... Unfortunately I cannot identify a body of technology that is unique to this field.... Most of the work is problem-specific, and some abstraction or creativity is required to see how to transfer it. I agree completely with this critique. The techniques used for speech recognition seem to have little in common with those used for image recognition, and both are different from those used in expert systems. I have a hard time seeing how image recognition, for example, will make any appreciable difference in programming practice. The same problem is true of speech recognition. The hard thing about building software is deciding what one wants to say, not saying it. No facilitation of expression can give more than marginal gains. Expert-systems technology, AI-2, deserves a section of its own. Expert systems. The most advanced part of the artificial intelligence art, and the most widely applied, is the technology for building expert systems. Many software scientists are hard at work applying this technology to the software-building environment. [3, 5] What is the concept, and what are the prospects? An expert system is a program that contains a generalized inference engine and a rule base, takes input data and assumptions, explores the inferences derivable from the rule base, yields conclusions and advice, and offers to explain its results by retracing its reasoning for the user. The inference engines typically can deal with fuzzy or probabilistic data and rules, in addition to purely deterministic logic. Such systems offer some clear advantages over programmed algorithms designed for arriving at the same solutions to the same problems: • Inference-engine technology is developed in an application-independent way, and then applied to many uses. One can justify much effort on the inference engines. Indeed, that technology is well advanced. • The changeable parts of the application-peculiar materials are encoded in the rule base in a uniform fashion, and tools are provided for developing, changing, testing, and documenting the rule base. This regularizes much of the complexity of the application itself. The power of such systems does not come from ever-fancier inference mechanisms but rather from ever-richer knowledge bases that reflect the real world more accurately. I believe that the most important advance offered by the technology is the separation of the application complexity from the program itself. How can this technology be applied to the software-engineering task? In many ways: Such systems can suggest interface rules, advise on testing strategies, remember bug-type frequencies, and offer optimization hints. Consider an imaginary testing advisor, for example. In its most rudimentary form, the diagnostic expert system is very like a pilot's checklist, just enumerating suggestions as to possible causes of difficulty. As more and more system structure is embodied in the rule base, and as the rule base takes more sophisticated account of the trouble symptoms reported, the
testing advisor becomes more and more particular in the hypotheses it generates and the tests it recommends. Such an expert system may depart most radically from the conventional ones in that its rule base should probably be hierarchically modularized in the same way the corresponding software product is, so that as the product is modularly modified, the diagnostic rule base can be modularly modified as well. The work required to generate the diagnostic rules is work that would have to be done anyway in generating the set of test cases for the modules and for the system. If it is done in a suitably general manner, with both a uniform structure for rules and a good inference engine available, it may actually reduce the total labor of generating bring-up test cases, and help as well with lifelong maintenance and modification testing. In the same way, one can postulate other advisors, probably many and probably simple, for the other parts of the software-construction task. Many difficulties stand in the way of the early realization of useful expert-system advisors to the program developer. A crucial part of our imaginary scenario is the development of easy ways to get from program-structure specification to the automatic or semiautomatic generation of diagnostic rules. Even more difficult and important is the twofold ,task of knowledge acquisition: finding articulate, self-analytical experts who know why they do things, and developing efficient techniques for extracting what they know and distilling it into rule bases. The essential prerequisite for building an expert system is to have an expert. The most powerful contribution by expert systems will surely be to put at the service of the inexperienced programmer the experience and accumulated wisdom of the best programmers. This is no small contribution. The gap between the best software engineering practice and the average practice is very wide_perhaps wider than in any other engineering discipline. A tool that disseminates good practice would be important. "Automatic" programming. For almost 40 years, people have been anticipating and writing about "automatic programming," or the generation of a program for solving a problem from a statement of the problem specifications. Some today write as if they expect this technology to provide the next breakthrough. [5] Parnas [4] implies that the term is used for glamour, not for semantic content, asserting, In short, automatic programming always has been a euphemism for programming with a higher-level language than was presently available to the programmer. He argues, in essence, that in most cases it is the solution method, not the problem, whose specification has to be given. One can find exceptions. The technique of building generators is very powerful, and it is routinely used to good advantage in programs for sorting. Some systems for integrating differential equations have also permitted direct specification of the problem, and the systems have assessed the parameters, chosen from a library of methods of solution, and generated the programs. These applications have very favorable properties: • The problems are readily characterized by relatively few parameters.
• There are many known methods of solution to provide a library of alternatives. • Extensive analysis has led to explicit rules for selecting solution techniques, given problem parameters. It is hard to see how such techniques generalize to the wider world of the ordinary software system, where cases with such neat properties are the exception. It is hard even to imagine how this breakthrough in generalization could occur. Graphical programming. A favorite subject for PhD dissertations in software engineering is graphical, or visual, programming--the application of computer graphics to software design. [6, 7] Sometimes the promise held out by such an approach is postulated by analogy with VLSI chip design, in which computer graphics plays so fruitful a role. Sometimes the theorist justifies the approach by considering flowcharts as the ideal program-design medium and by providing powerful facilities for constructing them. Nothing even convincing, much less exciting, has yet emerged from such efforts. I am persuaded that nothing will. In the first place, as I have argued elsewhere [8], the flowchart is a very poor abstraction of software structure. Indeed, it is best viewed as Burks, von Neumann, and Goldstine's attempt to provide a desperately needed high-level control language for their proposed computer. In the pitiful, multipage, connection-boxed form to which the flowchart has today been elaborated, it has proved to be useless as a design tool--programmers draw flowcharts after, not before, writing the programs they describe. Second, the screens of today are too small, in pixels, to show both the scope and the resolution of any seriously detailed software diagram. The so-called "desktop metaphor" of today's workstation is instead an "airplane-seat" metaphor. Anyone who has shuffled a lap full of papers while seated between two portly passengers will recognize the difference--one can see only a very few things at once. The true desktop provides overview of, and random access to, a score of pages. Moreover, when fits of creativity run strong, more than one programmer or writer has been known to abandon the desktop for the more spacious floor. The hardware technology will have to advance quite substantially before the scope of our scopes is sufficient for the software-design task. More fundamentally, as I have argued above, software is very difficult to visualize. Whether one diagrams control flow, variable-scope nesting, variable cross references, dataflow, hierarchical data structures, or whatever, one feels only one dimension of the intricately interlocked software elephant. If one superimposes all the diagrams generated by the many relevant views, it is difficult to extract any global overview. The VLSI analogy is fundamentally misleading--a chip design is a layered two-dimensional description whose geometry reflects its realization in 3-space. A software system is not. Program verification. Much of the effort in modern programming goes into testing and the repair of bugs. Is there perhaps a silver bullet to be found by eliminating the errors at the source, in the system-design phase? Can both productivity and product reliability be radically enhanced by following the profoundly different strategy of proving designs correct before the immense effort is poured into implementing and testing them? I do not believe we will find productivity magic here. Program verification is a very powerful concept, and it will be very important for such things as secure operating-system kernels. The
technology does not promise, however, to save labor. Verifications are so much work that only a few substantial programs have ever been verified. Program verification does not mean error-proof programs. There is no magic here, either. Mathematical proofs also can be faulty. So whereas verification might reduce the program-testing load, it cannot eliminate it. More seriously, even perfect program verification can only establish that a program meets its specification. The hardest part of the software task is arriving at a complete and consistent specification, and much of the essence of building a program is in fact the debugging of the specification. Environments and tools. How much more gain can be expected from the exploding researches into better programming environments? One's instinctive reaction is that the big-payoff problems-- hierarchical file systems, uniform file formats to make possible uniform program interfaces, and generalized tools--were the first attacked, and have been solved. Language-specific smart editors are developments not yet widely used in practice, but the most they promise is freedom from syntactic errors and simple semantic errors. Perhaps the biggest gain yet to be realized from programming environments is the use of integrated database systems to keep track of the myriad details that must be recalled accurately by the individual programmer and kept current for a group of collaborators on a single system. Surely this work is worthwhile, and surely it will bear some fruit in both productivity and reliability. But by its very nature, the return from now on must be marginal. Workstations. What gains are to be expected for the software art from the certain and rapid increase in the power and memory capacity of the individual workstation? Well, how many MIPS can one use fruitfully? The composition and editing of programs and documents is fully supported by today's speeds. Compiling could stand a boost, but a factor of 10 in machine speed would surely leave thinktime the dominant activity in the programmer's day. Indeed, it appears to be so now. More powerful workstations we surely welcome. Magical enhancements from them we cannot expect. Promising Attacks on the Conceptual Essence Even though no technological breakthrough promises to give the sort of magical results with which we are so familiar in the hardware area, there is both an abundance of good work going on now, and the promise of steady, if unspectacular progress. All of the technological attacks on the accidents of the software process are fundamentally limited by the productivity equation:
If, as I believe, the conceptual components of the task are now taking most of the time, then no amount of activity on the task components that are merely the expression of the concepts can give large productivity gains. Hence we must consider those attacks that address the essence of the software problem, the formulation of these complex conceptual structures. Fortunately, some of these attacks are very promising. Buy versus build. The most radical possible solution for constructing software is not to construct it at all. Every day this becomes easier, as more and more vendors offer more and better software products for a dizzying variety of applications. While we software engineers have labored on production methodology, the personal-computer revolution has created not one, but many, mass markets for software. Every newsstand carries monthly magazines, which sorted by machine type, advertise and review dozens of products at prices from a few dollars to a few hundred dollars. More specialized sources offer very powerful products for the workstation and other Unix markets. Even software tools and environments can be bought off-the-shelf. I have elsewhere proposed a marketplace for individual modules. [9] Any such product is cheaper to buy than to build afresh. Even at a cost of one hundred thousand dollars, a purchased piece of software is costing only about as much as one programmeryear. And delivery is immediate! Immediate at least for products that really exist, products whose developer can refer products to a happy user. Moreover, such products tend to be much better documented and somewhat better maintained than home-grown software. The development of the mass market is, I believe, the most profound long-run trend in software engineering. The cost of software has always been development cost, not replication cost. Sharing that cost among even a few users radically cuts the per-user cost. Another way of looking at it is that the use of n copies of a software system effectively multiplies the productivity of its developers by n. That is an enhancement of the productivity of the discipline and of the nation. The key issue, of course, is applicability. Can I use an available off-the-shelf package to perform my task? A surprising thing has happened here. During the 1950's and 1960's, study after study showed that users would not use off-the-shelf packages for payroll, inventory control, accounts receivable, and so on. The requirements were too specialized, the case-to-case variation too high. During the 1980's, we find such packages in high demand and widespread use. What has changed? Not the packages, really. They may be somewhat more generalized and somewhat more customizable than formerly, but not much. Not the applications, either. If anything, the business and scientific needs of today are more diverse and complicated than those of 20 years ago. The big change has been in the hardware/software cost ratio. In 1960, the buyer of a two-million dollar machine felt that he could afford 50,000 office machine cannot conceivably afford a customized payroll program, so he adapts the payroll procedure to the packages available.
Computers are now so commonplace, if not yet so beloved, that the adaptations are accepted as a matter of course. There are dramatic exceptions to my argument that the generalization of software packages has changed little over the years: electronic spreadsheets and simple database systems. These powerful tools, so obvious in retrospect and yet so late in appearing, lend themselves to myriad uses, some quite unorthodox. Articles and even books now abound on how to tackle unexpected tasks with the spreadsheet. Large numbers of applications that would formerly have been written as custom programs in Cobol or Report Program Generator are now routinely done with these tools. Many users now operate their own computers day in and day out on various applications without ever writing a program. Indeed, many of these users cannot write new programs for their machines, but they are nevertheless adept at solving new problems with them. I believe the single most powerful software-productivity strategy for many organizations today is to equip the computer-naive intellectual workers who are on the firing line with personal computers and good generalized writing, drawing, file, and spreadsheet programs and then to turn them loose. The same strategy, carried out with generalized mathematical and statistical packages and some simple programming capabilities, will also work for hundreds of laboratory scientists. Requirements refinement and rapid prototyping. The hardest single part of building a software system is deciding precisely what to build. No other part of the conceptual work is as difficult as establishing the detailed technical requirements, including all the interfaces to people, to machines, and to other software systems. No other part of the work so cripples the resulting system if done wrong. No other part is more difficult to rectify later. Therefore, the most important function that the software builder performs for the client is the iterative extraction and refinement of the product requirements. For the truth is, the client does not know what he wants. The client usually does not know what questions must be answered, and he has almost never thought of the problem in the detail necessary for specification. Even the simple answer_"Make the new software system work like our old manual information-processing system"_is in fact too simple. One never wants exactly that. Complex software systems are, moreover, things that act, that move, that work. The dynamics of that action are hard to imagine. So in planning any software-design activity, it is necessary to allow for an extensive iteration between the client and the designer as part of the system definition. I would go a step further and assert that it is really impossible for a client, even working with a software engineer, to specify completely, precisely, and correctly the exact requirements of a modern software product before trying some versions of the product. Therefore, one of the most promising of the current technological efforts, and one that attacks the essence, not the accidents, of the software problem, is the development of approaches and tools for rapid prototyping of systems as prototyping is part of the iterative specification of requirements. A prototype software system is one that simulates the important interfaces and performs the main functions of the intended system, while not necessarily being bound by the same hardware speed, size, or cost constraints. Prototypes typically perform the mainline tasks of
the application, but make no attempt to handle the exceptional tasks, respond correctly to invalid inputs, or abort cleanly. The purpose of the prototype is to make real the conceptual structure specified, so that the client can test it for consistency and usability. Much of present-day software-acquisition procedure rests upon the assumption that one can specify a satisfactory system in advance, get bids for its construction, have it built, and install it. I think this assumption is fundamentally wrong, and that many software-acquisition problems spring from that fallacy. Hence, they cannot be fixed without fundamental revision--revision that provides for iterative development and specification of prototypes and products. Incremental development--grow, don't build, software. I still remember the jolt I felt in 1958 when I first heard a friend talk about building a program, as opposed to writing one. In a flash he broadened my whole view of the software process. The metaphor shift was powerful, and accurate. Today we understand how like other building processes the construction of software is, and we freely use other elements of the metaphor, such as specifications, assembly of components, and scaffolding. The building metaphor has outlived its usefulness. It is time to change again. If, as I believe, the conceptual structures we construct today are too complicated to be specified accurately in advance, and too complex to be built faultlessly, then we must take a radically different approach. Let us turn nature and study complexity in living things, instead of just the dead works of man. Here we find constructs whose complexities thrill us with awe. The brain alone is intricate beyond mapping, powerful beyond imitation, rich in diversity, self-protecting, and selfrenewing. The secret is that it is grown, not built. So it must be with our software-systems. Some years ago Harlan Mills proposed that any software system should be grown by incremental development. [10] That is, the system should first be made to run, even if it does nothing useful except call the proper set of dummy subprograms. Then, bit by bit, it should be fleshed out, with the subprograms in turn being developed--into actions or calls to empty stubs in the level below. I have seen most dramatic results since I began urging this technique on the project builders in my Software Engineering Laboratory class. Nothing in the past decade has so radically changed my own practice, or its effectiveness. The approach necessitates top-down design, for it is a top-down growing of the software. It allows easy backtracking. It lends itself to early prototypes. Each added function and new provision for more complex data or circumstances grows organically out of what is already there. The morale effects are startling. Enthusiasm jumps when there is a running system, even a simple one. Efforts redouble when the first picture from a new graphics software system appears on the screen, even if it is only a rectangle. One always has, at every stage in the process, a working system. I find that teams can grow much more complex entities in four months than they can build. The same benefits can be realized on large projects as on my small ones. [11] Great designers. The central question in how to improve the software art centers, as it always has, on people.
We can get good designs by following good practices instead of poor ones. Good design practices can be taught. Programmers are among the most intelligent part of the population, so they can learn good practice. Hence, a major thrust in the United States is to promulgate good modern practice. New curricula, new literature, new organizations such as the Software Engineering Institute, all have come into being in order to raise the level of our practice from poor to good. This is entirely proper. Nevertheless, I do not believe we can make the next step upward in the same way. Whereas the difference between poor conceptual designs and good ones may lie in the soundness of design method, the difference between good designs and great ones surely does not. Great designs come from great designers. Software construction is a creative process. Sound methodology can empower and liberate the creative mind; it cannot inflame or inspire the drudge. The differences are not minor--they are rather like the differences between Salieri and Mozart. Study after study shows that the very best designers produce structures that are faster, smaller, simpler, cleaner, and produced with less effort. [12] The differences between the great and the average approach an order of magnitude. A little retrospection shows that although many fine, useful software systems have been designed by committees and built as part of multipart projects, those software systems that have excited passionate fans are those that are the products of one or a few designing minds, great designers. Consider Unix, APL, Pascal, Modula, the Smalltalk interface, even Fortran; and contrast them with Cobol, PL/I, Algol, MVS/370, and MS-DOS. (See Table 1.) Hence, although I strongly support the technology-transfer and curriculumdevelopment efforts now under way, I think the most important single effort we can mount is to develop ways to grow great designers. No software organization can ignore this challenge. Good managers, scarce though they be, are no scarcer than good designers. Great designers and great managers are both very rare. Most organizations spend considerable effort in finding and cultivating the management prospects; I know of none that spends equal effort in finding and developing the great designers upon whom the technical excellence of the products will ultimately depend. Table 1. Exciting Vs. Useful But Unexciting Software Products. Exciting Products Yes No Unix Cobol APL PL/I Pascal Algol Modula MVS/370 Smalltalk MS-DOS Fortran My first proposal is that each software organization must determine and proclaim that great designers are as important to its success as great managers are, and that they can be expected to be similarly nurtured and rewarded. Not only salary, but the perquisites of recognition--
office size, furnishings, personal technical equipment, travel funds, staff support--must be fully equivalent. How to grow great designers? Space does not permit a lengthy discussion, but some steps are obvious: • Systematically identify top designers as early as possible. The best are often not the most experienced. • Assign a career mentor to be responsible for the development of the prospect, and carefully keep a career file. • Devise and maintain a careerdevelopment plan for each prospect, including carefully selected apprenticeships with top designers, episodes of advanced formal education, and short courses, all interspersed with solo-design and technicalleadership assignments. • Provide opportunities for growing designers to interact with and stimulate each other. Acknowledgments I thank Gordon Bell, Bruce Buchanan, Rick Hayes-Roth, Robert Patrick, and, most especially, David Parnas for their insights and stimulating ideas, and Rebekah Bierly for the technical production of this article. REFERENCES [1] D.L. Parnas, "Designing Software for Ease of Extension and Contraction," IEEE Transactions on Software Engineering, Vol. 5, No. 2, March 1979, pp. 128-38. [2] G. Booch, "Object-Oriented Design," Software Engineering with Ada, 1983, Menlo Park, Calif.: Benjamin/ Cummings. [3] lEEE Transactions on Software Engineering (special issue on artificial intelligence and software engineering), l. Mostow, guest ed., Vol. 11, No. 11, November 1985. [4] D.L. Parnas, "Software Aspects of Strategic Defense Systems:" American Scientist, November 1985. [5] R. Balzer, "A 15-year Perspective on Automatic Programming," IEEE Transactions on Software Engineering (special issue on artificial intelligence and software engineering), J. Mostow, guest ed., Vol. 11, No. 11 (November 1985), pp. 1257-67. [6] Computer (special issue on visual programrning), R.B. Graphton and T. Ichikawa, guest eds., Vol. 18, No. 8, August 1985. [7] G. Raeder, "A Survey of Current Graphical Programming Techniques," Computer (special issue on visual programming), R.B. Graphton and T. Ichikawa, guest eds., Vol. 18, No. 8, August 1985, pp. 11-25. [8] F.P. Brooks, The Mythical Man Month, Reading, Mass.: Addison-Wesley, 1975, Chapter 14.
[9] Defense Science Board, Report of the Task Force on Military Software in press. [10] H.D. Mills, "Top-Down Programming in Large Systems," in Debugging Techniques in Large Systems, R. Ruskin, ed., Englewood Cliffs, N.J.: Prentice-Hall, 1971. [11] B.W. Boehm, "A Spiral Model of Software Development and Enhancement," 1985, TRW Technical Report 21-371-85, TRW, Inc., 1 Space Park, Redondo Beach, Calif. 90278. [12] H. Sackman, W.J. Erikson, and E.E. Grant, "Exploratory Experimental Studies Comparing Online and Offline Programming Performance," Communications of the ACM, Vol. 11, No. 1 (January 1968), pp. 3-11. Brooks, Frederick P., "No Silver Bullet: Essence and Accidents of Software Engineering," Computer, Vol. 20, No. 4 (April 1987) pp. 10-19.
Gümüş Kurşun Yok: Yazılım Mühendisliğinin Öz ve Kazalarına Dair - Frederick P. Brooks, Jr.
Efsanelerimizin kabuslarındaki canavarlardan hiçbiri, ani bir şekilde tanıdık bir şeyden korkunç bir şeye dönüşen kurt adamlar kadar ürkütücü değildir. Bu canavarlara karşı, onları sihirli bir şekilde dindirecek gümüş kurşunlar ararız. Tanıdık yazılım projeleri, en azından teknik olmayan yöneticilerin gözünde, bu karakterin bir parçasını taşır; genellikle masum ve basittir, ancak kaçırılan takvimler, patlayan bütçeler ve kusurlu ürünler gibi canavarlara dönüşebilir. Bu nedenle yazılım maliyetlerinin bilgisayar donanım maliyetleri kadar hızlı düşmesini sağlamak için gümüş kurşunlar için çaresiz çağrılar duyuyoruz. Ancak, on yıl sonraki ufka baktığımızda, gümüş bir kurşun göremiyoruz. Verimlilik, güvenilirlik ve sadelik açısından tek başına bir gelişim, ya teknolojide ya da yönetim tekniğinde, bir düzen büyüklüğünde bir iyileşme vaat eden bir şey yok. Bu makalede, hem yazılım probleminin doğasını hem de önerilen kurşunların özelliklerini inceleyerek neden böyle olduğunu göstermeye çalışacağım.
Bununla birlikte, şüphecilik umutsuzluk değildir. Çarpıcı bir atılım göremesek de – ve gerçekten de bunun yazılımın doğasıyla çelişkili olduğunu düşünüyorum – birçok umut verici yenilik gelişmekte. Bu yenilikleri geliştirme, yayma ve istismar etme konusunda disiplinli ve tutarlı bir çaba, gerçekten bir düzen büyüklüğünde bir iyileşme sağlamalıdır. Kraliyet yolu yok ama bir yol var. Hastalığın yönetiminde ilk adım, demon teorileri ve humör teorilerini mikrop teorisiyle değiştirmek olmuştur. Bu adım, umut başlamış olsa da, sihirli çözümler umudunu yok etti. Çalışanlara ilerlemenin aşamalı olarak, büyük çaba ile yapılacağını ve temizliği disiplinli şekilde sürdürmeye devam etmeleri gerektiğini söyledi. Bugün yazılım mühendisliği de böyle.
Zor Olmalı Mı? - Temel Zorluklar
Şu anda hiçbir gümüş kurşun yok, yazılımın doğası gereği hiçbir gümüş kurşunun ortaya çıkması pek olası değildir; yazılım verimliliği, güvenilirliği ve sadeliğinde elektronik, transistörler ve büyük ölçekli entegrasyonun bilgisayar donanımına yaptığını yapacak icatlar yok. Her iki yılda bir iki kat kazancı göremeyeceğimiz gerçeğini kabul etmeliyiz.
Öncelikle, anomali yazılım ilerlemesinin bu kadar yavaş olması değil, bilgisayar donanımındaki ilerlemenin bu kadar hızlı olmasıdır. Medeniyet başladığından beri hiçbir teknoloji, 30 yıl içinde performans-fiyat kazancı açısından altı düzen büyüklüğü görmemiştir. Başka hiçbir teknikte, kazanımı geliştirilmiş performans veya azalmış maliyetler arasında seçme şansımız yoktur. Bu kazanımlar, bilgisayar üretimindeki montaj endüstrisinden süreç endüstrisine dönüşümden kaynaklanmaktadır.
İkincisi, yazılım teknolojisinde beklenen ilerleme oranını görmek için bu teknolojinin zorluklarını inceleyelim. Aristoteles’ten yola çıkarak onları iki kategoriye ayırıyorum: öz, yazılımın doğasında bulunan zorluklar ve kazalar, günümüzde üretimde karşılaşılan fakat özünde bulunmayan zorluklar. Bir yazılım varlığının özünün, birbirine kenetlenen kavramların bir yapısı olduğunu düşünüyorum: veri setleri, veri öğeleri arasındaki ilişkiler, algoritmalar ve fonksiyon çağrıları. Bu öz, birçok farklı temsil altında aynı olan soyut bir kavramsal yapıdır. Ancak son derece kesin ve detaylıdır. Yazılım inşa etmenin zor kısmının, bu kavramsal yapının belirlenmesi, tasarımı ve test edilmesi olduğunu düşünüyorum; bu yapıyı temsil etme ve temsili test etme işleminin değil. Elbette sözdizim hataları yapıyoruz; ancak, çoğu sistemdeki kavramsal hatalara kıyasla bunlar önemsizdir.
Eğer bu doğruysa, yazılım inşa etmek her zaman zor olacaktır. İçtenlikle bir gümüş kurşun yoktur. Modern yazılım sistemlerinin bu azaltılamaz özünün doğasına bakalım: karmaşıklık, uyum, değişkenlik ve görünmezlik.
Karmaşıklık. Yazılım varlıkları, boyutları açısından, belki de diğer insan yapısı nesnelerden daha karmaşıktır çünkü hiçbir iki parça birbirine benzemez (en azından ifade düzeyinin üzerinde). Benzemeler varsa, benzer parçaları bir alt program haline getiririz; açık veya kapalı. Bu anlamda, yazılım sistemleri, tekrar eden unsurların bolca bulunduğu bilgisayarlar, binalar veya otomobillerden derin bir şekilde farklıdır. Dijital bilgisayarlar kendileri bile insanların ürettiği çoğu nesneden daha karmaşıktır: Çok büyük sayıda duruma sahiptirler. Bu durum, onları tasarlamayı, tanımlamayı ve test etmeyi zorlaştırır. Yazılım sistemleri, bilgisayarlardan çok daha fazla duruma sahiptir.
Aynı zamanda, bir yazılım varlığının ölçeklendirilmesi, yalnızca aynı unsurların daha büyük boyutlarda tekrar edilmesi değil, aynı zamanda farklı unsurların sayısının artışı anlamına gelir. Çoğu durumda, unsurlar birbiriyle bazı doğrusal olmayan şekillerde etkileşim kurar ve bütünün karmaşıklığı lineer olandan çok daha fazladır. Yazılımın karmaşıklığı, özsel bir özellik olup, tesadüfi bir özellik değildir. Dolayısıyla, bir yazılım varlığının karmaşıklığını soyutlayan tanımlar genellikle onun özünü de soyutlar. Üç yüzyıldır, matematik ve fizik bilimleri karmaşık fenomenlerin basitleştirilmiş modellerini inşa ederek, bu modellerden özellikler türeterek ve bu özellikleri deneyle doğrulayarak büyük ilerlemeler kaydetmiştir. Bu paradigmada, göz ardı edilen karmaşıklıklar, olguların özsel özellikleri olmadığından işe yaramıştır. Ancak karmaşıklıklar öz olduğunda işe yaramaz. Yazılım ürünlerinin geliştirilmesinin klasik problemlerinin birçok nedeni, bu özsel karmaşıklıktan ve onun boyutla birlikte doğrusal olmayan artışlarından kaynaklanmaktadır. Karmaşıklıktan, takım üyeleri arasında iletişim zorlukları gelir ki bu da ürün kusurlarına, maliyet aşımlarına ve takvim gecikmelerine yol açar. Karmaşıklıktan, programın tüm olası durumlarını saymanın ve anlamanın zorluğu gelir; bu da güvenilmezliği doğurur. Fonksiyonun karmaşıklığından, fonksiyon çağırmak zorlaşır ki bu da programları kullanmayı zorlaştırır. Yapının karmaşıklığından, programları yeni fonksiyonlara genişletmek zordur; bu da yan etkiler yaratmadan gerçekleştirilmelidir. Yapının karmaşıklığından, güvenlik açıklarını oluşturan görünmez durumlar doğar.
Yalnızca teknik sorunlar değil, aynı zamanda yönetim sorunları da karmaşıklıktan kaynaklanmaktadır. Genel bakış zordur ve bu, kavramsal bütünlüğü engeller. Bütün gevşek uçları bulmak ve kontrol etmek zordur. Yönetim kadrosunun devamsızlığı nedeniyle, öğrenme ve anlama yükü büyük hale gelir ki bu da personel devrimini felaket haline getirir.
Uyum. Yazılım uzmanları, karmaşıklıkla yalnız değillerdir. Fizik, temel parçacık düzeyinde bile son derece karmaşık nesnelerle uğraşır. Ancak fizikçiler, kuarklar veya birleştirilmiş alan teorilerindeki birleşim ilkelerini bulma konusunda sıkı bir inançla çabalarını sürdürmektedirler. Einstein, doğanın basitleştirilmiş açıklamaları olması gerektiğini savunmuştur çünkü Tanrı keyfi veya rastgele değildir. Yazılım mühendisliğini bu tür bir inanç teselli etmez. Yazılım mühendisinin ustalaşması gereken karmaşıklıkların çoğu, arayüzlerinin uyum sağladığı birçok insan kurum ve sistem tarafından zorlanmış keyfi karmaşıklıklardır. Bu karmaşıklıklar, ihtiyaçtan değil, yalnızca farklı insanlar tarafından tasarlandıkları için arayüzden arayüze ve zaman zaman değişir.
Birçok durumda yazılım, sahneye en son gelen olduğu için uyum sağlamak zorundadır. Diğerlerinde, en uyumlu olarak algılandığı için uyum sağlamak zorundadır. Ancak her durumda, çok fazla karmaşıklık başka arayüzlere uyum sağlanmasından kaynaklanır; bu karmaşıklık, yazılımın yeniden tasarımı ile ortadan kaldırılamaz.
Değişkenlik. Yazılım varlığı, sürekli değişiklik baskısına tabidir. Elbette binalar, arabalar, bilgisayarlar da öyle. Ancak üretilen nesneler, üretildikten sonra nadiren değişir; sonraki modellerle değiştirilir ya da temel değişiklikler, aynı temel tasarımın sonraki seri numaralarındaki kopyalara dahil edilir. Otomobiller için geri çağırmalar, aslında oldukça seyrektir; bilgisayarlardaki alan değişiklikleri ise biraz daha sık olabilir. Her iki durum da, saha yazılımlarındaki değişikliklerden çok daha az sıklıkta gerçekleşir. Bunun bir nedeni, bir sistemin yazılımının işlevi içermesi ve işlevin değişiklik baskılarını en çok hissettiği kısımdır. Bunun bir başka nedeni, yazılımın daha kolay değiştirilmesidir; çünkü yazılım saf düşünce maddesidir ve sonsuz bir şekilde şekil alabilir. Binalar aslında değiştirilebilir fakat, herkes tarafından anlaşılan yüksek değişiklik maliyetleri, değişiklik taleplerini sınırlayan bir etki yaratır.
Başarılı yazılımlar mutlaka değişir. İki süreç bir arada çalışır. İlk olarak, bir yazılım ürününün yararlı olduğu bulunursa, insanlar bunu, orijinal alanın sınırında veya ötesinde yeni durumlarda denemeye çalışırlar. Uzun süredir kullanılan işlevin genişletilmesi talepleri, esasen temel işlevi beğenen kullanıcılar tarafından icat edilen yeni kullanımlardan gelir. İkinci olarak, başarılı yazılımlar, ilk yazıldıkları makine aracının normal ömrünün ötesine geçer. Yeni bilgisayarlar bulunmasa bile, en azından yeni diskler, yeni ekranlar, yeni yazıcılar ortaya çıkar; ve yazılım yeni fırsat araçlarına uyum sağlamalıdır.
Kısacası, yazılım ürünü uygulamaların, kullanıcıların, yasaların ve makine araçlarının kültürel bir matrisine gömülüdür. Bunlar sürekli değişir ve değişimleri kaçınılmaz olarak yazılım ürününde değişikliği zorlar.
Görünmezlik. Yazılım görünmez ve soyutlanamaz. Geometrik soyutlamalar güçlü araçlardır. Bir binanın kat planı, hem mimar hem de müşteri için alanları, trafik akışlarını ve görüntüleri değerlendirmek açısından yardımcı olur. Çelişkiler ve eksiklikler ortaya çıkar. Mekanik parçaların ölçekli çizimleri ve moleküllerin çubuk figür modelleri, soyutlamalar olsa da, aynı amaca hizmet eder. Bir geometrik gerçeklik, bir geometrik soyutlamada yakalanmıştır.
Yazılımın gerçeği aslında mekana yerleştirilmiş değildir. Dolayısıyla, arazi haritaları, silikon çiplerin diyagramları, bilgisayarların bağlantı şemaları gibi doğrudan bir geometrik temsili yoktur. Yazılım yapısını diyagramlaştırmaya çalıştığımızda, bunun bir değil, birkaç genel yönlendirilmiş grafiği farklı bir biçimde üst üste koyduğumuzu görürüz. Bu grafiker, kontrol akışını, veri akışını, bağımlılık desenlerini, zaman dizisini ve ad alanı ilişkilerini temsil edebilir. Genellikle, bu grafiker düzlemsel bile değildir; hiyerarşik olmak bir yana! Hatta böyle bir yapının kavramsal kontrolünün sağlanmasının yollarından biri, grafikerden bir veya daha fazlasının hiyerarşik hale gelmesini sağlamak için bağlantı kesmeyi zorlamaktır.
Yazılım yapılarını kısıtlama ve sadeleştirmedeki ilerlemelere rağmen, bu yapılar özünde soyutlanamaz ve bu nedenle zihnin en güçlü kavramsal araçlarından bazılarının kullanılmasına izin vermez. Bu eksiklik yalnızca bir zihinde tasarım sürecini zorlaştırmakla kalmaz, aynı zamanda zihinler arasında iletişimi da büyük ölçüde engeller.
Geçmişteki İlerlemeler Tesadüfi Zorlukları Çözdü
Eğer geçmişte yazılım teknoloji geliştirmede en verimli olan üç adımı inceleyecek olursak, her birinin yazılım inşa etmedeki farklı büyük zorluklarla başa çıktığını, ancak bu zorlukların özsel değil tesadüfi zorluklar olduğunu keşfederiz. Her bir saldırının doğal sınırlamalarını da görebiliriz.
Yüksek düzey diller. Yazılım verimliliği, güvenilirliği ve sadeliği açısından kesinlikle en güçlü yenilik, programlama için yüksek düzey dillerin kullanımı olmuştur. Çoğu gözlemci bu gelişmeyi en az beş katlık bir verimlilik ile ilişkilendirmekte ve buna bağlı güvenilirlik, sadelik ve anlaşılabilirlikte kazanımlar sağlamaktadır. Yüksek düzey diller neyi başarmaktadır? Bir programı, ilk önce herhangi bir karmaşadan kurtarır. Soyut bir program, kavramsal yapıların bir bütünüdür: işlemler, veri türleri, diziler ve iletişim. Somut makine programı ise, bitleri, kayıtları, koşulları, dalları, kanalları, diskleri ve benzeri unsurları içerir. Yüksek düzey dil, soyut programda istediğimiz yapıları barındırıyorsa ve alt düzey unsurlardan kaçınıyorsa, hiçbir gizli şekilde özünde bulunmayan bir karmaşıklık katmanını ortadan kaldırır. Yüksek düzey dilin en fazla yapabileceği, programcının soyut programda hayal ettiği tüm yapıları sunmaktır. Elbette, veri yapıları, veri türleri ve işlemler üzerindeki düşünce seviyemiz sürekli olarak artmakta, ancak bu oran her geçen gün azalmakta. Ayrıca, dil geliştirme ise, kullanıcıların karmaşıklığına daha yakın bir noktaya gelmektedir.
Daha önce, yüksek düzey bir dil geliştirmek, kullanıcıların daha karmaşık yapılar oluşturmasını güçlendirir, ancak bu dille daha az sık kullanır.
Zaman paylaşımı. Zaman paylaşımı, programcıların verimliliğinde ve ürünlerinin kalitesinde önemli bir iyileşme sağladı, ancak yüksek düzey diller kadar büyük bir iyileşme sağlamadı. Zaman paylaşımı, başka bir zorluğa saldırır. Zaman paylaşımı, ani durumsallığı korur ve bu nedenle karmaşıklığa genel bir bakış sağlayabilir. Paket programlamanın yavaş dönüşü, kaynaktan çıktığı anda, ayrıntıları unutmamak için zorlamak zorundadır. Bu da zaman açısından maliyetlidir.
Yavaş dönüş, makine dili karmaşıklıkları gibi bir yazılım sürecinin tesadüfi bir zorluğudur. Zaman paylaşımının potansiyel katkısının sınırları doğrudan çıkar. Zaman paylaşımının önemli etkisi, sistem yanıt süresini kısaltmaktır. Bu yanıt süresi sıfıra doğru ilerledikçe, bir noktada insan algılama eşiğini aşar ki bu da yaklaşık 100 milisaniyedir. Bu eşikten sonra, herhangi bir fayda beklenemez.
Birleşik programlama ortamları. Unix ve Interlisp, yaygın kullanıma giren ilk entegre programlama ortamları, verimliliği integral faktörlerle artırmış gibi görünmektedir. Neden? Çünkü bireysel programların birlikte kullanılmasından kaynaklanan tesadüfi zorluklarla başa çıkar, entegre kütüphaneler, birleştirilmiş dosya formatları ve boru hatları ve filtreler sunar. Bunun sonucunda, pratikte birbirini arayabilen, besleyebilen ve kullanabilen kavramsal yapılar aslında kolayca gerçekleştirilebilir. Bu atılım, her yeni aracın standart formatları kullanan herhangi bir program için uygulanabileceği yeni alet takımları geliştirilmesini teşvik etti.
Bu başarılar nedeniyle, ortamlar, günümüz yazılım mühendisliği araştırmalarının çoğunun konusu olmuştur. Sıradaki bölümde, olanaklarını ve sınırlamalarını inceleyeceğiz.
Gümüş Kurşun Ümidini Şimdi Değerlendirelim
Şimdi en sık potansiyel gümüş kurşun olarak sunulan teknik gelişmeleri inceleyelim. Hangi sorunlarla başa çıkıyorlar? Öz sorunları mı, yoksa kalan tesadüfi zorlukları mı? Devrim niteliğinde bir ilerleme sunuyorlar mı, yoksa artımlı mı?
Ada ve diğer yüksek düzey dil gelişmeleri. En çok öne çıkan son gelişmelerden biri, 1980'lerin genel amaçlı yüksek düzey dili olan Ada'dır. Ada sadece dil kavramlarında evrimsel iyileştirmeleri yansıtmakla kalmaz, aynı zamanda modern tasarımı ve modülerliği teşvik eden özellikleri de içerir. Belki de Ada felsefesi, Ada dilinden daha fazla bir ilerlemedir; çünkü modülerleşme, soyut veri türleri ve hiyerarşik yapılandırmanın felsefesidir. Ada aşırı zengin, tasarımına iliştirilen gereksinimlerin doğal bir sonucu olarak. Bu öldürücü değil; çünkü alt küme içinde çalışan sözcük dağarcıkları öğrenme sorununu çözebilir ve donanım gelişmeleri, derleme maliyetlerini ödemek için ucuz MIPS’ler de temin eder. Yazılım sistemlerinin yapılandırılmasını ilerletmek, gerçekten artırılmış MIPS’lerin satın alınmasının çok iyi bir kullanımıdır.
İşletim sistemleri, 1960'larda bellek ve döngü maliyetleri nedeniyle seslendirilen konular, geçmiş donanım patlamasının bazı MIPS'leri ve ucuz bellek baytlarını kullanabileceğimiz bir form olarak çok iyi bir biçimde kullanılmaktadır.
Yine de Ada, yazılım verimliliği canavarını ortadan kaldıracak gümüş kurşun olmayacaktır. Sonuçta, sadece bir başka yüksek düzey dil ve bu tür dillerden elde edilen en büyük getiriler, ilk geçişten geldi; yani makinelerin tesadüfi karmaşıklıklarından daha soyut adımla çözümlere geçiştir. O kazalar ortadan kaldırıldığında, kalanlar daha küçük olacaktır ve bunların kaldırılmasından elde edilecek getiri kesinlikle daha az olacaktır.
Bir on yıl sonra, Ada’nın etkinliğinin değerlendirileceğine dair bir tahminim vardır ki bunun önemli bir fark yaratmış olduğu görülecektir, ancak bu yalnızca belirli bir dil özelliği veya nihayetinde her birinin birleşiminden kaynaklanmamaktadır. Yeni Ada ortamlarının iyileşmelere neden olacağı sonucu da geçerli değildir. Ada’nın en büyük katkısı, bu dile geçişin modern yazılım tasarım teknikleri konusunda programcıları eğitme olanağı sağladığıdır.
Nesne yönelimli programlama. Sanatın birçok öğrencisi, nesne yönelimli programlamaya, günün diğer teknik modalarından daha fazla umut beslemektedir. Ben de bu grubun içindeyim. Dartmouth Üniversitesi'nden Mark Sherman, CSnet Haber bülteninde bu adlı alt alanda ayrı iki düşünce olduğunu belirtmektedir: soyut veri türleri ve hiyerarşik türler. Soyut veri türü kavramı, bir nesnenin türünün ad, uygun değerler seti ve uygun işlemler seti ile tanımlanması gerektiği, saklama yapısının ise gizli tutulması gerektiği anlamına gelir. Ada paketleri (özel türlerle) ve Modula'nın modülleri buna örnek olarak verilebilir. Simula-67’nin sınıfları gibi hiyerarşik türler, alt türler sağlamayı sağlayarak genel arayüzlerin tanımlanmasına izin verir. Bu iki kavram birbiriyle bağımsızdır; hiyerarşiler gizlenmeden sağlanabilir ve gizlenmeden hiyerarşiler elde edilebilir. Her iki kavram da yazılım geliştirme sanatında gerçek ilerlemeleri temsil etmektedir. Her biri, tasarımın özünü ifade etmesine olanak tanırken, bunun yanında herhangi bir bilgi içeriği eklemeyen büyük miktarda sözdizimsel malzeme gerekir. Hem soyut türler hem de hiyerarşik türler için sonuç, daha yüksek derecede tesadüfi bir zorluğun kaldırılması ve tasarımın daha yüksek dereceden ifade edilmesidir.
Bununla birlikte, bu tür yenilikler yalnızca tasarım ifadesindeki tüm tesadüfi zorlukları kaldırmakla kalır. Tasarımın karmaşıklığı özsel bir özelliktir ve bu tür saldırılar buna bir değişiklik getirmez. Nesne yönelimli programlama ile yalnızca gereksiz tür belirleme karmaşasının, program ürünü tasarlama işlemi ile ilgili olması durumunda, işin çoğunu teşkil etmesi durumunda düzen büyüklüğünde bir kazanım sağlanabilir. Bunu düşündüğümden şüpheliyim.
Yapay zeka. Birçok insan, yapay zeka alanındaki ilerlemelerin, yazılım verimliliği ve kalitesinde düzen büyüklüğünde kazançlar sağlayacak devrim niteliğinde bir atılım yaratmasını beklemektedir. Bunun nedenini görmek için, "yapay zeka" teriminin ne anlama geldiğini incelemeliyiz. D.L. Parnas, terminolojik karmaşayı netleştirmiştir: İki oldukça farklı yapay zeka tanımı günümüzde yaygın olarak kullanılmaktadır. AI-1: Bilgisayarların, daha önce yalnızca insan zekasıyla çözülebilen problemleri çözmek için kullanılması. AI-2: Heuristik veya kural tabanlı programlama olarak bilinen belirli bir programlama tekniği setinin kullanılması. Bu yaklaşımda, insan uzmanları incelenerek, sorunları çözerken kullandıkları heuristiklerin veya parmak kuralı ilkelerinin ne olduğu belirlenir. Program, insan zekasının sorunları nasıl çözdüğünü gibi çözecek şekilde tasarlanır.
İlk tanım kayan bir anlam taşır. Bugün AI-1 tanımını karşılayan bir şey bulabiliriz; ancak, programın nasıl çalıştığını gördüğümüzde ve probleme anladığımızda artık bunun AI olduğunu düşünmeyeceğiz. Ne yazık ki, bu alanda benzersiz bir teknoloji havuzunu tanımlayamıyorum. Yapılan çoğu iş problem özgündür ve farklı kısımları birleştirmek için bir soyutlama veya yaratıcılık gereklidir.
Bu eleştiriyi tamamen katılıyorum. Ses tanıma için kullanılan tekniklerin, görüntü tanıma için kullanılanlarla pek fazla ortak noktası yok gibi görünüyor ve her iki alan da uzman sistemlerle hiç benzemiyor. Örneğin, görüntü tanıma ile programlama uygulamaları arasında kayda değer bir fark nasıl olacağından emin değilim. Ses tanıma sorununda da benzer problemler mevcuttur. Yazılımı inşa etmenin zor kısmı, ne söylemek istediğine karar vermektir, söylemek değildir. İfadenin kolaylaştırılması, yalnızca marjinal kazanımlar sağlar.
Uzman sistem teknolojisi, AI-2, kendi bölümünü gerektirir. Uzman sistemler, yapay zeka sanatının en gelişmiş ve en yaygın uygulamasıdır. Birçok yazılım bilimcisi bu teknolojiyi yazılım geliştirme ortamına uygulamak için yoğun çaba harcamaktadır. Konsept nedir ve beklentiler nelerdir? Uzman sistemi, genel bir çıkarım motoru ve kural tabanı içeren bir programdır; giriş verilerini ve varsayımları alır, kural tabanından türetilebilecek çıkarımları keşfeder, sonuçlar ve tavsiyeler sunar ve sonuçlarını kullanıcının satın almasında nedenleri takip ederek açıklamayı sağlayabilir. Çıkarım motorları, genellikle bulanık veya olasılıksal verilerle başa çıkabilir ve sadece deterministik mantığın ötesinde işlem yapabilir. Bu sistemlerin, aynı problemlere aynı çözümleri ulaştıran programlı algoritmalara göre bazı net avantajlar sunduğunu görüyoruz.
• Çıkarım motoru teknolojisi, uygulamadan bağımsız bir şekilde geliştirilmekte ve sonra çeşitli durumlarda uygulanmaktadır. Çıkarım motorlarına çok fazla çaba harcama gerekçesi bulunur. Gerçekten de, bu teknoloji çok ileri seviyededir.
• Uygulamaya özel değişken parçalar, kural tabanında homojen bir biçimde kodlanmış olup, kural tabanını geliştirmek, değiştirmek, test etmek ve belgelendirmek için araçlar sağlanmaktadır. Bu, uygulamanın karmaşıklığının büyük ölçüde düzenlenmesini sağlar. Bu tür sistemlerin gücü, her zaman daha karmaşık çıkarım mekanizmalarından değil, daha zengin bilgi tabanlarıyla gelen gerçek dünyayı daha doğru yansıtan çıkarım motorlarından gelmektedir. Bu teknolojinin sunduğu en önemli gelişme, uygulama karmaşıklığının programdan ayrışmasıdır.
Bu teknoloji, yazılım mühendisliği görevine nasıl uygulanabilir? Birçok şekilde! Bu tür sistemler, arayüz kurallarını önerebilir, test stratejileri konusunda tavsiyelerde bulunabilir, hata türü sıklığını hatırlayabilir ve optimizasyon ipuçları sunabilir.
Örneğin, hayali bir test danışmanını düşünelim. En ilkel biçimde, tanısal uzman sistemi, bir pilotun kontrol listesine oldukça benzerdir; sadece zorluk sebep olabilecek olası nedenler olarak öneriler sıralar. Sistemin yapısındaki daha fazla yapı, kural tabanında yer aldıkça; kural tabanı, rapor edilen sorun semptomlarını daha karmaşık bir şekilde ele aldıkça, test danışmanı, önerdiği hipotezler ve önerdiği testlerle daha özel önermelere dönüşebilir. Böyle bir uzman sistemi, kural tabanının muhtemelen hiyerarşik bir şekilde modüler hale getirilmesini sağlamaktadır; böylece yazılım ürünü modüler olarak değiştikçe, tanısal kurallar da modüler bir yapı oluşturabilir.
Tanı kurallarını oluşturmak için gereken iş, modüller ve sistem için test vakalarının oluşturulması için gereken iş ile kesinlikle aynıdır. Uygun şekilde genel bir biçimle, hem kurallar için homojen yapılar ve iyi bir çıkarım motoru sağlarsak, bunun anlamı, muhtemel toplam iş gücünü azaltmak olabilir; ayrıca yaşam boyu bakım ve değişiklik testi açısından da yardımcı olabilir. Benzer şekilde, yazılım geliştirme işinin diğer bölümleri için muhtemelen birçok, muhtemelen basit başka danışmanlar kurmak da mümkündür.
Uzman sistem danışmanlarının program geliştiricisine yönelik faydalı bir şekilde erken mevcut hale getirilmesinin önünde birçok zorluk bulunmaktadır. Hayali senaryomuzda önemli olan kısım, program yapısı spesifikasyonunu tanı kurallarını otomatik veya yarı otomatik hale getirmenin kolay yollarını geliştirmektir. Bir diğer zor ve önemli görev ise bilgi edinme çift yönlü görevidir: kendilerini analiz edebilen, yaptıkları şeylerin nedenlerini bilen yetkin uzmanları bulmak ve bilgilere ulaşmanın etkin yollarını geliştirerek, kural tabanlarına damıtarak nihai bir kurallar haline geliriz. Uzman sistemi kurmanın temel ön koşulu, bir uzmana sahip olmaktır.
Uzman sistemlerin en büyük katkısı kuşkusuz, deneyimsiz programcının hizmetine en iyi programcıların deneyimlerini ve birikimini sunmaktır. Bu küçük bir katkı değil. En iyi yazılım mühendisliği uygulaması ile ortalama uygulama arasındaki fark oldukça büyüktür; belki de diğer mühendislik disiplinlerinden daha fazladır. İyi uygulamayı dağıtan bir araç, önemli olacaktır.
"Otomatik" yazılım. Neredeyse 40 yıldır, insanlar "otomatik programlama" veya bir problemden itibaren oluşturulan program beklentilerini yazmaktadırlar. Bazıları, günümüzde bu teknolojinin bir sonraki atılımı sağlamak üzere düşünebileceğini yazmaktadır. Ancak Parnas, bu terimin bir şatafat olarak kullanıldığını, anlam derinliği taşımadığını aslında kısaca özetlemek gerekirse: "Kısacası, otomatik programlama her zaman mevcut programcının erişebildiği daha yüksek düzey bir dille program yazmaya bir efsane olmuştur." Temelinde, çoğu durumda sorun değil, çözüm yönteminin belirtilmesi gerektiğini savunmaktadır.
Bunun istisnaları vardır. Üreteçlerin oluşturulması tekniği son derece güçlüdür ve sıklıkla sıralama programları için iyi bir şekilde kullanılmaktadır. Bazı diferansiyel denklemlerin birleştirilmesine yönelik sistemler de doğrudan problemin belirlenmesine olanak tanımıştır ve bu sistem, parametreleri değerlendirmiş, çözümler için bir yöntem kütüphanesinden seçim yapmış ve programlar üretmiştir. Bu uygulamaların oldukça avantajlı özellikleri vardır:
• Problemler, nispeten biraz sayıda parametre ile karakterize edilebilir. • Çözüm sağlamayacak birçok bilinen yöntem ile alternatifleri sunan bir kütüphane bulunur. • Kapsamlı analizler, problem parametrelerine uygun çözüm yöntemlerini seçmek için açık kurallar oluşturdu.
Bu tekniklerin, sıradan yazılım sistemleri dünyasına ne ölçüde genelleştirildiği ise oldukça zordur; zira böyle düzenli özelliklere sahip durumlar istisnadır. Bu tür bir genelleştirme atılımının nasıl gerçekleşeceğini hayal etmek bile zordur.
Grafiksel programlama. Yazılım mühendisliğindeki doktora tezlerine sıkça rastlanan konulardan biri grafiksel veya görsel programlamadır; bilgisayar grafikleri yazılım tasarımına uygulanmaktadır. Bazen bu tür bir yaklaşımın sunduğu vaat, VLSI çip tasarımı ile karşılaştırıldığında ileri sürülmektedir; burada bilgisayar grafikleri çok verimli bir rol oynamaktadır. Bazen teorisyen, akış şemalarını ideal program tasarım ortamı olarak düşünmektedir ve bunları oluşturmada güçlü olanaklar sunmaktadır.
Ancak bu çabalardan henüz güçlü, heyecan verici ve ikna edici hiçbir şey ortaya çıkmamıştır. Ben tatmin olmaktan ziyade, hiçbir şey çıkmayacağına ikna olmuş durumdayım. Öncelikle, akış şemasının yazılım yapısının oldukça kötü bir soyutlaması olduğunu belirtmeliyim. Aslında, bu, Burks, von Neumann ve Goldstine tarafından önerilen bir bilgisayar için çaresiz bir şekilde ihtiyaç duyulan bir yüksek düzey kontrol dilini sağlamaya yönelik bir çaba olarak değerlendirilebilir. Bugüne dek, akış şemasının çok sayfalı ve bağlantı kutulu biçimi, tasarım aracı olarak etkisiz kalmış durumda; programcılar, akış şemasını yazdıkları programdan sonra çizerler.
İkincisi, günümüzdeki ekranlar, detaylı bir yazılım diyagramının kapsamını ve çözünürlüğünü göstermek üzere yeterli değildir. Günümüzün çalışma alanlarındaki yüksek düzey "masaüstü metaforu", aslında bir "uçak koltuğu metaforu"dur. Kendi karnınızda kucak dolusu kağıtlar taşırken, iki şişman yolcunun arasında oturmanın farkını her kişi hisseder; insanların görebileceği oldukça az sayıdaki nesne vardır. Gerçek bir masaüstü, bir dizi sayfanın genel görünümüne ve rastgele erişim kurulmasına olanak tanır. Üstelik yaratıcılık devreye girdiğinde daha az çalışmaktan kaçan bir programcı veya yazar, çalışma masasına yanlanmak yerine daha geniş bir alana geçmeye cesaret eder. Donanım teknolojisinin, yazılım tasarım görevi için yeterli bir kapsam sunana kadar, ilerlemesi gerekmektedir.
Daha da temelden, yazılımın görselleştirilmesinin, yazılımın oldukça karmaşık olduğunu savunmayı görüyorum. Kontrol akışı, değişken kapsamı, değişken karşılaştırmalar, veri akışı, hiyerarşik veri yapıları veya her ne olursa olsun, biri yazılımın karmaşık bir halde kilidini çözdüğünü hisseder. Çok sayıda ilgili görünümden elde edilen tüm diyagramlar üst üste getirildiğinde, herhangi bir genel görünüm elde etmek zordur. VLSI benzerliği esasen yanıltıcıdır; bir çip tasarımı, üç boyutta gerçekleştirilmiş hali ile geometrisini yansıtan iki boyutlu bir katmanlı tanımda sunulmaktadır. Ancak bir yazılım sistemi böyle değildir.
Program doğrulama. Modern programlamadaki çaba, büyük ölçüde test etmeye ve hata onarımına dayanmaktadır. Kaynaklarda hataları ortadan kaldırarak belki bir gümüş kurşun bulunabilir mi? Hem üretkenliği hem de ürünün güvenilirliğini büyük ölçüde artırmak mümkün olabilir mi? Doğrulandıktan sonra yapılan tasarım işleminin yeniden test edilmesine neden olan yoğun bir çaba olmadan sağlam bir yapı ortaya koymak mümkün müdür? Burada bir verimlilik sihri bulacağımıza inanmıyorum. Program doğrulama çok güçlü bir kavramdır ve güvenli işletim sistemi çekirdekleri gibi konularda son derece önemlidir.
Ancak bu teknoloji iş gücü tasarrufu sağlamaz. Doğrulamalar o kadar fazla çaba gerektirir ki, yalnızca birkaç önemli program doğrulanmıştır. Program doğrulama hatasız programlar anlamına gelmez. Burada da bir sihir yoktur. Matematiksel kanıtlar da hatalı olabilir. Bu nedenle, doğrulama programlama test yükünü azaltabilir ama elbette ortadan kaldıramaz.
Daha da ciddi olan, mükemmel program doğrulamasının bile yalnızca programın spesifikasyonlarına uygunluğunu tam olarak sağladığıdır. Yazılım işinin en zor kısmı, tam ve tutarlı bir spesifikasyona ulaşmaktır ve bir program inşa etmenin özü çoğunlukla spesifikasyonun hata ayıklanmasında bulunur.
Ortamlar ve Araçlar. Gelişmekte olan programlama ortamlarıyla ilgili araştırmalardan ne kadar daha fazla kazanç beklenebilir? İçgüdüsel olarak, büyük geri dönüş beklenen sorunların - hiyerarşik dosya sistemleri, standart dosya formatları ve genel araçlar - ilk önce ele alındığını ve çözüldüğünü varsayabiliriz. Dil odaklı akıllı editörler, pratikte henüz yaygın olarak kullanılmamaktadır; ancak en fazla sunabilecekleri şey sözdizimsel hatalardan ve basit anlamsal hatalardan kurtulmayı sağlamaktır.
Programlama ortamlarından elde edilecek belki de en büyük kazanç, bireysel programcıların doğru bir şekilde hatırlanması gereken çok sayıda detayı takip etmek için entegre veri tabanı sistemleri kullanılması olmaktadır ve bu hem üretkenlik hem de güvenilirlik konusunda birçok meyve vereceği kesin.
Ancak, doğası gereği, bundan sonraki getirilerin marjinal olması gerekmektedir.
Çalışma istasyonları. Bireysel çalışma istasyonlarının güç ve bellek kapasitesinin kesin ve hızlı bir şekilde artmasından yazılım sanatının ne bekleyebileceği? Ne kadar MIPS'in verimli bir şekilde kullanılabileceği? Programların ve belgelerin düzenlenmesi ve düzenlenmesi, günümüz hızlarının yanımda tamamen desteklenmektedir. Derleme güç kaynağı almak için bir faktör kazaç olacaktır; ancak makine hızında bir faktör artışı, programcının günü boyunca düşünmekten oldukça fazla zaman alacağı anlamına gelir. Şu anda durum öyle görünmektedir.
Daha güçlü çalışma istasyonlarına elbette hoş geldiniz. Ancak, bunlardan büyüleyici yenilikler bekleyemeyiz.
Kavramın Özüne Yönelik Umut Veren Saldırılar
Teknolojik bir atılım, bizleri donanım alanında tanıdık olduğumuz türde büyüleyici sonuçlarla karşılayamayacak olsa da, şu anda başarılı çalışmaların bolca bulunduğu ve sürekli, eğer sıradan bir ilerleme olsa da, belirgin bir gelişme sağladığı görülmektedir.
Yazılım sürecinin kazalarına yönelik tüm teknolojik saldırılar, temelde üretkenlik denklemi tarafından sınırlıdır: Eğer, inandığım gibi, görevin kavramsal bileşenleri şu anda en fazla zamanı alıyorsa, o zaman yalnızca kavramların ifadesi olan görev bileşenleri üzerinde ne kadar etkinlik olursa olsun büyük bir verimlilik artışı sağlanamaz.
Bu nedenle, yazılım probleminin özünü ele alan saldırıları değerlendirmemiz gerekiyor; bu karmaşık kavramsal yapıların formülasyonu. Neyse ki, bu saldırılardan bazıları çok umut vericidir.
Satın almak mı, inşa etmek mi? Yazılımı inşa etmenin en radikal çözümü, onu inşa etmemek olabilir. Her gün bu daha kolay hale geliyor; zira daha fazla satıcı, bir dizi uygulama için daha fazla ve daha iyi yazılım ürünleri sunmakta. Biz yazılım mühendisleri üretim metodolojileri üzerinde çaba harcarken, kişisel bilgisayar devrimi, yazılım için bir değil, birçok kitlesel pazar yaratmıştır. Her haber kaynağı, makine türüne göre sıralanmış aylık dergiler taşıyarak, birkaç dolardan birkaç yüze kadar tüm ürünleri tanıtan ve inceleyen birçok ürün sunmaktadır. Daha özel kaynaklar, iş istasyonu ve diğer Unix pazarlarında oldukça güçlü ürünler sunmaktadır. Hatta yazılım araçları ve ortamları da raftan satın alınabilir durumda. Geçmişte bireysel modüllerin pazarını önerdim. Böyle bir ürün, tamamen yeni bir ürün inşa etmekten daha ucuzdur. Yüz bin dolarlık bir maliyetle bile, satın alınan yazılım, sadece yaklaşık bir programcı yılının maliyeti kadar bir harcama oluşturur. Üstelik teslimat hemen! Gerçekten var olan ürünlerle teslimat hemen düzenecek ve bu ürünlerin geliştiricileri mutlu bir kullanıcıya yönlendirebilir. Ayrıca, bu ürünlerin genellikle, kendi yapılan yazılımlara göre daha iyi belgelenmiş ve biraz daha iyi bakıma sahip olmasının yanı sıra, piyasasında yer aldığı düşünülmektedir.
Kitlesel pazarın gelişimi, bana göre yazılım mühendisliğindeki en derin uzun vadeli trenddir. Yazılımın maliyeti her zaman geliştirme maliyeti olmuştur; çoğaltma maliyeti değil. Bu maliyeti, birkaç kullanıcı arasında paylaşmak, kişi başı maliyeti köklü bir şekilde aşağı çeker. Başka bir bakış açısıyla, belirli bir yazılım sisteminin n kopyasının kullanımı, geliştiricilerin verimliliklerini n kadar artırıyor. Bu, disiplini ve ulusu güçlendirir.
Tabii ki, başlıca konu uygulamadır. Mevcut bir raftan alınan paketi görevim için kullanabilir miyim? Burada beklenmedik bir şey olmuştur. 1950'ler ve 1960'lar boyunca, araştırmalar gösteriyordu ki kullanıcılar maaş, envanter kontrolü, alacak hesaplar gibi konularda raf ürünlerini kullanmayacaklardı. Gereksinimler çok özelleşmişti ve durumdan duruma çeşitliliği yüksekti. Ancak 1980'lerde bu tür paketler büyük talep görmekte ve yaygın olarak kullanılmaktadır. Ne değişti? Gerçekten paketler değil. Daha iyi özelleştirildiği ve genel anlamda daha fazla özellik taşıdığı söylenebilir, ancak çok da fazla değil. Uygulamaları da değil. Hatta günümüzdeki iş ve bilimsel ihtiyaçlar, 20 yıl öncekine kıyasla daha çeşitli ve karmaşık hale gelmiştir. Büyük değişim, donanım/yazılım maliyet oranında olmuştur. 1960'da iki milyar dolarlık bir makine satın alan alıcı, özelleştirilmiş bir maaş programı için kolayca ek bir 250,000 dolar harcayabileceğini düşünebilmiştir; bu program, bilgisayar düşmanı sosyal çevrede düzensiz bir şekilde rahat bir şekilde uyum sağlamıştır. Ancak bugün 50,000 dolarlık bir ofis makinesi alıcı, özelleştirilmiş bir maaş programını nasıl temin edebileceğini düşünmez; bu nedenle mevcut paketlere maaş uygulamalarını uyarlamak zorundadır.
Bilgisayarlar artık o kadar yaygın hale geldi ki, belki de hala sevgiyle anılmasa da, uyarlamalar bir zorunluluk olarak kabul edilmektedir.
Genel yazılım paketlerinin yıllar içinde çok fazla değişmediği konusunda iddiamın çarpıcı istisnaları mevcuttur: elektronik tablolar ve basit veri tabanı sistemleri. Bu güçlü araçlar, gerçekte aniden ortaya çıkmış ve olabilirliğini tekrar gözden geçirmiş ve yaratıcı öneriler sunmaktadır. Şimdi makaleler ve kitaplar, elektronik tabloları kullanarak beklenmedik görevleri üstlenmeyi incelemektedir. Daha önce özel programlar olarak yazılması gereken çok sayıda uygulama şimdi bu araçlarla rutin olarak yapılmaktadır.
Birçok kullanıcı, gün boyunca çeşitli uygulamalarla kendi bilgisayarlarını kullanabilmektedirler ve hiç program yazmamaktadırlar. Hatta bazı kullanıcılar makineleri için yeni programlar yazamamakla birlikte, yeni sorunları onları çözmek konusunda beceriklidirler.
Bana göre, birçok örgütün bugünkü en güçlü yazılım verimliliği stratejisi, cep telefonlarındaki bilgisayar okur-yazarlar için iyi bir genel içerik sunmak ve onları bilgisayar becerilerine sahip insanların oluşturmasına izin vermektir. Aynı strateji, genel matematik ve istatistik paketleri ve bazı basit programlama yetenekleri ile laboratuar bilim insanları için de geçerlidir.
Gereksinimlerin geliştirilmesi ve hızlı prototipleme. Bir yazılım sisteminin inşa etmedeki en zor kısımlardan biri, neyin tam olarak inşa edileceğine karar vermektir. Kavramsal işin hiçbir kısmı, tüm insanlarla, makinelerle ve diğer yazılım sistemleriyle yaklaşımın belirli temel gereksinimlerini oluşturmak kadar zor değildir. İşin hiçbir kısmı, hata yapılmadığı sürece üretilmiş sistemleri bu denli felç etmez. İşin başka hiçbir kısmı, daha sonra düzeltmekte bu kadar zor değildir.
Bu nedenle, yazılım geliştiricisinin, ürün gereksinimlerini tekrara dayalı bir şekilde çıkarması ve geliştirmesi, müşteriye sağladığı en önemli işlevdir. Gerçekte çok doğrudur ki, müşteri ne istediğini bilmemektedir. Müşteri genellikle hangi soruların sorulması gerektiğini bilmiyor ve sorunu belirleme gereken detayları düşünmemiştir. Hatta en basit cevap "Yeni yazılım sisteminin eski manuel bilgi işleme sistemimiz gibi çalışması" bile çok basittir. Aslında böyle bir şey istememekteyiz. Karmaşık yazılım sistemleri bir şekilde harekete geçen, hareket eden ve gerçekleştiren şeylerdir. Bu eylemlerin dinamiklerini hayal etmek zordur.
Dolayısıyla, yazılım tasarım faaliyetleri planlanırken sistem tanımının bir parçası olarak müşteri ve tasarımcı arasında kapsamlı bir yineleme olmasına izin verilmelidir. Bir adım daha ileri gidebilir ve bir müşterinin bile, bir yazılım ürünü denemeden önce, aynı zamanda bir yazılım mühendisinin eşliğinde bile modern yazılım ürünlerinin spesifikasyonlarını tam, kesin ve düzgün bir şekilde belirlemesinin gerçekten imkansız olduğunu iddia edebilirim.
Bu nedenle, mevcut teknolojik çabaların en dikkat çekici ve yazılım probleminin özünü değil kazalarını ele alanlardan biri, gereksinimlerin iteratif olarak spesifikasyonunu sağlamak amacıyla sistemler için hızlı prototipleme araçlarının ve yaklaşımlarının geliştirilmesidir. Bir prototip yazılım sistemi, önemli arayüzleri simüle etmekte ve hedeflenen sistemin temel işlevlerini yerine getirirken, kesinlikle aynı donanım hızına, boyut veya maliyet kısıtlamalarına bağlı olmaksızın gerçekleştirilir. Prototipler tipik olarak uygulamanın ana görevlerini yerine getirirken olağan üstü görevleri üstlenmez, geçersiz verilere doğru bir şekilde yanıt vermezler ya da düzgün bir şekilde iptal edilmezler. Prototipin amacı, belirli kavramsal yapının gerçekliğini sağlamak ve müşteri tasarımının tutarlılığı ve kullanılabilirliğini test edebilmesi amacıyla bu kavramı oluşturur.
Günümüzde yazılım edinme süreçlerinin çoğu, bir tatmin edici sistemin önceden belirtilebileceği, bunun üzerine tekliflerin alınacağı, sistemin oluşturulacağı ve kurulacağı varsayımına dayanmaktadır. Bu varsayımların temelde yanlış olduğu düşününmekte olup, birçok yazılım edinme problemi de bu yanılgıdan kaynaklanmaktadır. Dolayısıyla, bunlar temelde revizyon gerektirecek — prototiplerin ve ürünlerin iteratif geliştirme ve spesifikasyonları ilave etmeyi sağlayacak olan bir revizyon gerektirecektir.
Artımlı geliştirme - yazılımı inşa etme. 1958'de dostlarımdan birinin bir program oluşturmak yerine, yazmanın niyeti var mı? durumu, beni daha derin bir şekilde etkiledi; o an, yazılım sürecini birimin gerçeğine daha geniş bir şekilde genişletti. Benim için, metafor kayması güçlü ve doğruydu. Günümüzde, yazılımın inşasının diğer inşa süreçlerine ne kadar benzediğini anlamaya başladık ve bileşenlerin birleştirilmesi, yapı belirlemeleri ve iskele kullanımı gibi metafor unsurlarını da özgürce uygulamaktayız.
Yapı metaforu, işlevini yitirmiştir. Yine değişmesine ihtiyacımız var. Eğer, inandığım gibi, bugün inşa ettiğimiz kavramsal yapıların herhangi bir seviyede çok karmaşık olduğuna işaret ediyorsak, o zaman tamamen farklı bir yaklaşım izlemeliyiz. Gelişim dinamiklerini incelemeden, yaşamlarını sürdüren varlık ve doğayı inceleyelim; insanın ölü eserleri değil. Burada büyülenip hayran kalabileceğimiz karmaşıklıklar bulmaktayız. Beyin bile, haritalanamayacak kadar karmaşık, taklit edilemeyecek kadar güçlü ve çeşitlilik açısından zengin bir yapıdadır; kendini koruyabilen ve yenileyen bir varlıktır. Sır ise büyüyor, inşa etmiyor olmaktır.
Bu şekilde yazılım sistemlerimiz de olmalıdır. Birkaç yıl önce, Harlan Mills, bir yazılım sisteminin artımlı geliştirme ile büyümesi gerektiğini önermiştir. Yani sistem önce çalıştırılmalı, ne kadar yararlı olacağına bakılmaksızın, doğru bir şekilde seçilmiş yan programlar çağrılmalıdır. Sonra, adım adım, bu alt programlar birer birer kendi eylemlerine veya alttaki boş boş işlemleri çağırmak üzere geliştirilecektir.
Yazılım mühendisi laboratuvarımda, bu tekniği proje geliştiricileri üzerine zorlamaya başladığım günden beri en dramatik sonuçları gördüm. Geçtiğimiz on yılda, pratiğimde ve etkililiğinde büyük bir değişim yaşadım. Bu yaklaşım, yazılımın yukarıdan aşağı doğru, yazım süreci anlamında büyütülmesini gerektirir. Bu, kolay geri dönmeyi sağlar ve erken prototiplemeye olanak tanır. Her eklenen işlev ve karmaşık veri durumları, hali hazırdaki yapının doğal bir parçası olarak büyüyecektir.
Moral etkileri dikkat çekicidir. Çalışan bir sistemin varlığı, bir değişken bir şekilde dahi olsa, istekleri artırır. Yeni bir grafik yazılım sistemi ilk etkileşimlerinde ekrana bir dikdörtgen bile yansıtsa, istekli çalışmalar da artar. Süreçteki her aşamada çalışır bir sistem bulunmaktadır. Takımların, inşa etmekten ziyade, daha karmaşık varlıklar oluşturmaları dört ayda daha fazla olanak buluyor. Aynı faydalar, büyük projelerde de küçük projelerde olduğu gibi geçerlidir.
Büyük tasarımcılar. Yazılım sanatını geliştirme konusunda merkezî soru, daima insanlardadır. İyi tasarımlar elde etmek için iyi uygulamalar izlenmelidir; kötü uygulamaların tersine. İyi tasarım uygulamaları öğretilir. Programcılar, nüfusun en zeki kesimlerinden biridir; bu nedenle iyi uygulamaları öğrenirler. Dolayısıyla, Amerika Birleşik Devletleri'nde önemli bir hedef, çağdaş iyi uygulamayı yaymaktır. Yeni müfredatlar, yeni literatür, Yazılım Mühendisliği Enstitüsü gibi yeni kuruluşlar, pratik düzeyimizi kötüden iyiye çıkarmak için kurulmuştur ve bu tamamen doğrudur.
Yine de, bir sonraki aşamanın yukarı doğru çıkmasını aynı şekilde sağlayabileceğimi düşünmüyorum. Kötü kavramsal tasarımlar ile iyi olanlar arasındaki fark, tasarım yönteminin sağlamlığında olabilirken, iyi tasarımlar ile harika olanlar arasındaki fark kesinlikle böyle değildir. Harika tasarımlar, büyük tasarımcılardan gelir. Yazılım inşası, yaratıcı bir süreçtir. Sağlam bir metodoloji, yaratıcı fikirleri güçlendirip serbestletse de çelişkileri ateşleyemez. Farklar kolay değil: Salieri ve Mozart arasındaki farklar gibi. Araştırmalar, en iyi tasarımcıların hız, boyut, sadelik, temizlik ve daha az çaba ile ürettikleri yapılar ortaya çıkar. Daha büyük ve daha ortalama olanlar, büyüklüğe yakınlaşmaktadır.
Biraz geriye dönme, birçok yararlı yazılım sisteminin komiteler tarafından tasarlanıp, çok parçalı projelerin bir parçası olarak inşa edildiğini görmek mümkündür; ancak tutkulu hayranlar yaratan yazılım sistemleri, bir veya birkaç tasarımcı zihnine ait yaratımlardır. Unix, APL, Pascal, Modula, Smalltalk arayüzü, hatta Fortran gibi sistemleri düşünün ve bunları Cobol, PL/I, Algol, MVS/370 ve MS-DOS ile karşılaştırın.
Dolayısıyla, teknoloji transferi ve müfredat geliştirme çabalarını kuvvetle desteklesem de, en önemli çabanın büyük tasarımcıları yetiştirmeye yönelik yollar geliştirmek olduğunu düşünüyorum. Hiçbir yazılım organizasyonu bu meydan okumayı göz ardı edemez. İyi yöneticiler, ne kadar nadir olsa da, iyi tasarımcılardan daha nadir değildir. Harika tasarımcılar ve harika yöneticiler, her ikisi de son derece nadirdir. Çoğu organizasyon, yöneticilik ihtimallerinin bulunması ve yetiştirilmesi için önemli çaba sarfeder; tek bir iyi tasarımcı bulmaya yönelik benzer bir yoğun çaba sarfettiğini duymuyorum.
Bölüm 1. Farklı Yazılım Ürünleri Karşılaştırması
Heyecan verici ürünler: Evet, Hayır
Benim ilk önerim, her yazılım kuruluşunun, başarılı yöneticiler kadar büyük tasarımcıların da başarısı için aynı derecede önemli olduğunu belirleyip ilan etmesi ve benzer bir şekilde değerlendirileceğidir. Sadece maaş değil, tanınma avantajı olan - ofis büyüklüğü, donanımlar, kişisel teknik ekipman, seyahat fonları - tam olarak eşitlenmiş olmalıdır.
Harika tasarımcılar nasıl yetiştirilir? Uzun bir tartışma için yer yok; ancak bazı adımlar barizdir:
Teşekkürler
Gordon Bell, Bruce Buchanan, Rick Hayes-Roth, Robert Patrick ve özellikle David Parnas’a, insights ve cesaret veren fikirleri için teşekkürü bir borç bilirim. Ayrıca, bu makalenin teknik üretimde Rebekah Bierly'e teşekkürlerimi iletiyorum.
Kaynaklar
D.L. Parnas, "Yazılımın Genişletilebilirlik ve Daralabilirlik Kolaylığı İçin Tasarımı," IEEE Yazılım Mühendisliği Dergisi, Cilt 5, No 2, Mart 1979, s. 128-38.
G. Booch, "Nesne Yönelimli Tasarım," Yazılım Mühendisliği ile Ada, 1983, Menlo Park, Calif.: Benjamin/ Cummings.
IEEE Yazılım Mühendisliği Dergisi (yapay zeka ve yazılım mühendisliği özel sayısı), J. Mostow, konuk editör, Cilt 11, No 11, Kasım 1985.
D.L. Parnas, "Stratejik Savunma Sistemlerinin Yazılımsal Yönleri:" American Scientist, Kasım 1985.
R. Balzer, "Otomatik Programlama Üzerinde 15 Yıllık Bir Bakış," IEEE Yazılım Mühendisliği Dergisi (yapay zeka ve yazılım mühendisliği özel sayısı), J. Mostow, konuk editör, Cilt 11, No 11 (Kasım 1985), s. 1257-67.
Computer (görsel programlama özel sayısı), R.B. Graphton ve T. Ichikawa, konuk editörler, Cilt 18, No 8, Ağustos 1985.
G. Raeder, "Güncel Görsel Programlama Tekniklerinin Anketi," Computer (görsel programlama özel sayısı), R.B. Graphton ve T. Ichikawa, konuk editörler, Cilt 18, No 8, Ağustos 1985, s. 11-25.
F.P. Brooks, "Efsanevi İnsan Ayı," Reading, Mass.: Addison-Wesley, 1975, Bölüm 14.
Defense Science Board, "Askeri Yazılım Üzerine Görev Gücü Raporu" basılacak.
H.D. Mills, "Büyük Sistemlerde Üst-Düzey Programlama," R. Ruskin, ed., Englewood Cliffs, N.J.: Prentice-Hall, 1971.
B.W. Boehm, "Yazılım Geliştirme ve Gelişimi İçin Bir Spiral Model," 1985, TRW Teknik Rapor 21-371-85, TRW, Inc., 1 Space Park, Redondo Beach, Calif. 90278.
H. Sackman, W.J. Erikson ve E.E. Grant, "Çevrimiçi ve Çevrimdışı Programlama Performanslarını Karşılaştıran Keşifsel Deneysel Çalışmalar," Communications of the ACM, Cilt 11, No 1 (Ocak 1968), s. 3-11.
Kaynak: Brooks, Frederick P., "Gümüş Kurşun Yok: Yazılım Mühendisliğinin Öz ve Kazaları," Computer, Cilt 20, No 4 (Nisan 1987), s. 10-19.
Not yet included in a published release.