With the rapid development and popularization of object-oriented languages such as Java, more and more programmers begin to use these languages in application development. However, the original development language (i.e., the operation-oriented development language such as C + +, etc.) can not exit the historical stage in a short time, so there is now a coexistence situation of object-oriented language and traditional operation-oriented language. The use of two different languages (mixed language design) in a design application can bring a lot of new problems than the use of a class of languages in the past, in which complexity is the most common problem in mixed language design. Here are some of the ways in which mixed language design can lead to increased complexity and how to reduce and eliminate these complexities.
Complexity
Complexity is one of the most vexing problems in the application development process. Whenever a feature is added to an application, its complexity usually grows at a geometric level. This complexity often leads to the development of programs that cannot continue. That's why so many apps have only a beta version and no official version.
Experts divide the complexity of the application development process into two categories, namely, accidental (and essential). Intrinsic complexity is the inherent complexity of solving the goal problem, and the nature of the complexity arises from the choice of inappropriate development tools and design tools. For a function-determined program, the essential complexity is certain, and not the essential complexity is unlimited. Therefore, the development of an application to achieve a more successful success, it is necessary to minimize the complexity of the less essential.
Characteristics of Ood
Object-oriented design (OOD) decomposes a program into a series of elements designed to be based on a specific object. The behavior and data of these specific objects are packaged in a programming unit called class. The application creates an example of one or more of these classes, also known as object. The behavior of a class is grouped together by creating a relationship between the objects.
Ood allows developers to control the increase in complexity in two main ways. First, the Ood defines strict export semantics, which allows the developer to hide the details of the implementation and to specify what methods are accessible to other objects. This information hiding makes it possible to modify most of the code without affecting other objects.
Second, Ood divides the relationships between objects into four categories: inheritance, inclusiveness, use, and coordination. Proper use of these relationships can greatly reduce the intrinsic and non-core complexity of the application development process. For example, inheritance is a major factor in the reuse of object-oriented design. This reuse is achieved through code sharing and polymorphism. This reuse can greatly reduce the nature of the application of complexity. Containment allows users of a class to ignore the contained class (class) when using the containment. This simplification allows the designer to significantly reduce the complexity of the application's non-core nature.
Lack of visual interface in Ood
Many programs require visual interfaces, which are made up of dialog boxes, menus, toolbars, and so on. The increase of these visual interfaces will introduce the deficiencies of ood design, which makes a good object-oriented design go to the opposite direction. The visualization interface has three properties that can cause problems with application development.
First, the visual interface improves the traditional operation-oriented topology. User-generated interface events, such as switch buttons and list box selection, are driven by a module of the program and used to manipulate static data. The blending of this object-oriented topology with an object-oriented design in design will result in a lot of clutter between objects.
Second, the user interface often requires many different displays for the same information. For example, a Customer selection list box can contain a customer's name and phone number, as well as many other customer names.
When a user selects a particular customer, his/her name and phone number and all other relevant information will be displayed in detail.
In addition, a simple program may have different user interfaces. such as a bank account system has an interface for the teller to access account balance, deposit and withdrawal, while the supervisor's interface contains additional information plus the function of account management. These different interfaces can easily cause a class to expand.
Finally, the visual interface will be significantly changed throughout the design phase. These changes include a complete rescheduling of user-system interactions, among other things. These changes to the visual interface can increase the complexity of application development even in the best design.