CSC/ECE 517 Fall 2007/wiki3 3 as: Difference between revisions

From Expertiza_Wiki
Jump to navigation Jump to search
Line 21: Line 21:
==Examples==
==Examples==


[http://www.javacoffeebreak.com/books/extracts/javanotesv3/c6/s6.html Javacoffeebreak.] This site contains an example using separation of responsibility for an easy GUI application.
Below you can see many sites which include Separation of Responsibility example. We also present some information about the sites next to their links.
 
[http://www.javacoffeebreak.com/books/extracts/javanotesv3/c6/s6.html Javacoffeebreak] This site contains an example using separation of responsibility for an easy GUI application. The example is easy to understand and there is a detailed explanation of the code and how the principle is used. This is a good site to see the separation of responsibility in GUI of Java.
 
http://designparadigm.wordpress.com/ This is a page that is written on Separation of Responsibility. There is proper explanation on what the principle is and there is also a very easy and understandable example. One can also find information about naming conventions (naming classes and methods) and their relationship with the principle.
 
[http://help.eclipse.org/help31/index.jsp?topic=/org.eclipse.gmf.doc/tutorials/diagram/createShape.html Eclipse Documentation] This documentation teaches how to draw shapes using the MVC pattern. The separated responsibility components included are called View / EditPart / IFigure. Although there is not much information about the principle, the example is described in detail. This is a good link for observing the principle in graphical modeling framework.
 
http://weblogs.java.net/blog/tchangu/archive/2006/02/a_simple_utilit_1.html An advance example about how the principle is used in logins and password encryption. You can see 4 different classes for different tasks including: creating a database, logging, checking the password from database and encryption.
 
http://msdn2.microsoft.com/en-us/library/ms838356.aspx A more advanced site about component base development for mobile devices. This site shows how the separation principle can be accomplished with multi tiering. It contains a more complex example but it is a good source to see how the principle is used in other areas and other ways.


==References==
==References==

Revision as of 16:50, 19 November 2007

Topic

Take the principle of Separation of Responsibility and catalog the information on it available on the Web. Find good descriptions and good, concise, understandable examples. Tell which you consider the best to present to a class.

Separation of Responsibility

Separation of Responsibility states that a given problem involves different kinds of concerns, which should be identified and separated to cope with complexity, and to achieve the required engineering quality factors such as robustness, adaptability, maintainability, and reusability. The principle can be applied in various ways and it is an ubiquitous software engineering principle.

Separation of Responsibility has many similar terms or principles. All of them have constitute similar ideas. These terms include Single Responsibility Principle, low coupling, Separation of Concerns and modularity

In object-oriented methods the separated concerns are modeled as objects and classes, which are generally derived from the entities in the requirement specification and use cases. In structural methods, concerns are represented as procedures. In aspect-oriented programming, the term concern is extended with the so-called crosscutting properties such as synchronization, memory management and persistency.

Principle

The clear distinction of functionality among

Description

This is similar to the GRASP patterns.

Examples

Below you can see many sites which include Separation of Responsibility example. We also present some information about the sites next to their links.

Javacoffeebreak This site contains an example using separation of responsibility for an easy GUI application. The example is easy to understand and there is a detailed explanation of the code and how the principle is used. This is a good site to see the separation of responsibility in GUI of Java.

http://designparadigm.wordpress.com/ This is a page that is written on Separation of Responsibility. There is proper explanation on what the principle is and there is also a very easy and understandable example. One can also find information about naming conventions (naming classes and methods) and their relationship with the principle.

Eclipse Documentation This documentation teaches how to draw shapes using the MVC pattern. The separated responsibility components included are called View / EditPart / IFigure. Although there is not much information about the principle, the example is described in detail. This is a good link for observing the principle in graphical modeling framework.

http://weblogs.java.net/blog/tchangu/archive/2006/02/a_simple_utilit_1.html An advance example about how the principle is used in logins and password encryption. You can see 4 different classes for different tasks including: creating a database, logging, checking the password from database and encryption.

http://msdn2.microsoft.com/en-us/library/ms838356.aspx A more advanced site about component base development for mobile devices. This site shows how the separation principle can be accomplished with multi tiering. It contains a more complex example but it is a good source to see how the principle is used in other areas and other ways.

References

Javacoffeebreak.

wikipedia

http://designparadigm.wordpress.com/

http://davidhayden.com/blog/dave/archive/2004/11/19/631.aspx