CIS 518 Discussion Responses
See attached
CIS 518 discussion 1 post responses.
Respond
to the colleagues posts regarding:
“Object-Oriented Software Design for Everything?” Please respond to the following:
· From the e-Activity, take a position on whether or not an object-oriented approach can be used to develop any type of system. Provide two examples that support your position.
· Explain how Unified Modeling Language (UML) diagrams can be linked to and implemented by an object-oriented programming language such as C# or Java. Provide at least three examples to support your response.
There are two discussions here that need to be responded to thoroughly. Responses must be on APA format 150+words 1-2 legitimate verifiable sources per response.
JR post states the following:Top of Form
Object-oriented Approach views a system as a collection of interacting objects that work together to accomplish an activity/task. To accomplish this goal, the object-oriented approach uses models such as object class diagrams, sequence diagrams, state charts, and object-oriented programming (OOP). (Van, 2009). In my opinion I don’t think this approach is suitable to develop any type of system, not one strategy is effective for all systems. All approaches have their limitations or disadvantages. For example, OOP are slower than procedure-based programs. This approach is not suitable to rectify all problems. “There are problems that lend themselves well to functional-programming style, logic-programming style… and applying object-oriented programming in those situations will not result in efficient programs” (resources.saylor.org).
A UML diagram shows how systems, organizations or people interact and it shows a basic flow of what the system does (Van, 2009). One can use class diagrams to implement the code. The diagrams can visually represent and develop the structures and relationships for C# classes (ibm.com). One can develop C# elements from class diagrams as well (ibm.com). The diagram can also represent and develop behaviors and interactions of C# applications/methods (ibm.com).
Reference
https://resources.saylor.org/wwwresources/archived/site/wp-content/uploads/2013/02/CS101-2.1.2-AdvantagesDisadvantagesOfOOP-FINAL
Van Lamsweerde, A. (2009). Requirements engineering: From system goals to UML models to software specifications. West Sussex, England: John Wiley & Sons Ltd.
https://www.ibm.com/support/knowledgecenter/SS8PJ7_9.1.0/com.ibm.xtools.viz.dotnet /topics/t_devcsapp.html
SP post states the following:
”Object-Oriented Software Design for Everything?”
Please respond to the following:
From the e-Activity, take a position on whether or not an object-oriented approach can be used to develop any type of system. Provide two examples that support your position.
Explain how Unified Modeling Language (UML) diagrams can be linked to and implemented by an object-oriented programming language such as C# or Java. Provide at least three examples to support your response.
After reading UML.org, I agree that an object-oriented approach can be used to develop any type of system. According to UML.org (2005), you can model almost any type of application, running on any unification of hardware, operating system, programming language, and network, in UML. Its resilience lets you model allocated applications that use almost any middleware on the market. Built upon foundational OO theory including class and operation, it’s a logical fit for object-oriented languages and environments such as C++, Java, and the latest C#, but you can use it to model non-OO applications as well in, for example, Fortran, VB, or COBOL. UML Profiles (that is, subsets of UML tailored for specific purposes) help you model Transactional, Real-time, and Fault-Tolerant systems in a natural way (UM.org, 2015).
Reference:
UML.org. (2015). What is UML? Retrieved from https://www.uml.org/what-is-uml.htm.
CIS 518 discussion 2 post responses.
Respond to the colleagues posts regarding:
“Design Patterns” Please respond to the following:
· From the e-Activity, using UML and text, identify a creational design pattern and describe a situation where it could be applied. Provide a justification as to why it should be used over other creational design patterns that are available.
· Using UML and text, identify a behavioral design pattern and describe a situation where it could be applied. Provide a justification as to why it should be used over other behavioral design patterns that are available.
JR post states the following:Top of Form
The Singleton Design Pattern is used to restrict the instantiation of a class and ensures that only one instance of the class exists in the JVM (Goswami, 2013). It’s used to provide global point of access to the object (Goswami, 2013). I’m not knowledgeable about this topic but I will try my best to give an example, please advise if I’m wrong. You can use this design when wanting to add an individual feature amongst an application that multiple employees/clients have access to. This design works best for this particular task because it can isolate or restrict to unauthorized users and allow authorized users access.
Behavioral design consists of the interaction and the responsibility of objects. The interaction between the objects should communicate easily between one another. A visitor design pattern works in situations where users are in attempt to recover lost information. It also allows visitor to define a new operation without changing the classes of the elements. (Sourcemaking.com)
Reference
https://dzone.com/articles/singleton-design-pattern-%E2%80%93
https://sourcemaking.com/design_patterns/visitor