工程中多个不同类型线程池_软件工程中不同类型的设计策略
工程中多個不同類型線程池
As we know that the designing phase is probably the second phase in the software development lifecycle, which comes after the feasibility testing and requirement analysis phase. As the name itself defines that in this phase, the software is designed which reflects how our software must be, what functionalities must it contain, how the user interface should be, etc. But, it is important to know the strategy that the software designers follow while developing any software. In this article, we are going to discuss the same.
眾所周知,設計階段可能是軟件開發生命周期中的第二階段,該階段在可行性測試和需求分析階段之后。 顧名思義,在這個階段,軟件的設計反映了我們的軟件必須如何,軟件必須包含什么功能,用戶界面應該如何等等。但是,重要的是要了解軟件設計人員的策略開發任何軟件時都應遵循。 在本文中,我們將對此進行討論。
In general, there are two types of designing strategies that are mainly followed in the designing phase of any software during its development:
通常,在開發任何軟件的設計階段,主要遵循兩種設計策略:
Function- oriented design
面向功能的設計
Object- oriented design
面向對象的設計
Now, let us define each of them in brief and understand the strategies behind each of them:
現在,讓我們簡要地定義它們中的每一個,并了解它們背??后的策略:
1)面向功能的設計 (1) Function- oriented design)
In the function-oriented design, the system is designed according to the functionality it offers. The system is first widely observed and then each of its functions is observed to identify the sub-functions that it consists of that are responsible for performing that particular functionality.
在面向功能的設計中,系統是根據其提供的功能進行設計的。 首先對系統進行廣泛觀察,然后觀察其每個功能,以識別組成該系統負責執行特定功能的子功能。
In this type of design, there is a centralized function that consists of various functions. The software is designed in the same manner.
在這種類型的設計中,存在由各種功能組成的集中功能。 該軟件的設計方式相同。
For example, consider software for the calculator. Its main function is to calculate various operations and print the result. Now, the sub functionalities that it offers are the operations modulus, logarithm, square, exponent, etc. Now all these functions further consist of the fundamental operations like addition, subtraction, etc. Like multiplication is the result of repeated addition, etc.
例如,考慮計算器的軟件。 其主要功能是計算各種操作并打印結果。 現在,它提供的子功能是運算模數,對數,平方,指數等。現在所有這些功能進一步由基本運算組成,例如加法,減法等。就像乘法是重復加法的結果等。
In the same way in software, an element may further sub-elements for performing its inner functions and it may also act as a sub-element for some other module. However together they are responsible for providing the functionality that the entire software claims to offer.
以軟件中的相同方式,一個元素可以進一步包含用于執行其內部功能的子元素,并且還可以充當某些其他模塊的子元素。 但是,它們共同負責提供整個軟件聲稱提供的功能。
2)面向對象設計 (2) Object- oriented design)
In the object-oriented design approach to design any software, everything is considered as an object. Now, every object performs some activities and possess some behavior. This is defined through classes because all the objects that belong to the same class will exhibit a similar kind of behavior and will also perform similar functionalities. However, every object will be different from the other object in some manner. Now, this is determined at the time of object creation when the object is initialized with some values which provide the object its unique behavior.
在設計任何軟件的面向對象設計方法中,一切都被視為對象。 現在,每個對象都執行一些活動并具有某些行為。 這是通過類定義的,因為屬于同一類的所有對象都將表現出相似的行為,并且還將執行相似的功能。 但是,每個對象在某種程度上都會與另一個對象不同。 現在,這是在對象創建時確定的,該對象是使用一些為其提供其獨特行為的值初始化的。
The object-oriented design approach is termed better than the function-oriented design approach as in the object-oriented approach, the real-world entities can easily be implemented in the computer world. Also, some very basic object behaviors such as polymorphism, inheritance, abstraction, and encapsulation are implementable through this approach.
面向對象的設計方法比面向功能的設計方法更好,因為在面向對象的方法中,現實世界的實體可以輕松地在計算機世界中實現。 而且,一些非常基本的對象行為,例如多態性,繼承,抽象和封裝,都可以通過此方法實現。
翻譯自: https://www.includehelp.com/basics/different-types-of-design-strategies-in-software-engineering.aspx
工程中多個不同類型線程池
總結
以上是生活随笔為你收集整理的工程中多个不同类型线程池_软件工程中不同类型的设计策略的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: python中list函数_list()
- 下一篇: numpy zeros矩阵_零矩阵使用n