Archive

Archive for December, 2011

Two powerful principles to improve the design

December 12, 2011 1 comment

Coupling is usually contrasted with cohesion. Low coupling often correlates with high cohesion, and vice versa.
Low coupling is often a sign of a well-structured computer system and a good design, and when combined with high cohesion, supports the general goals of high readability and maintainability.

The goal of this case study is to show the benefits of low coupling and high cohesion, and how it can be implemented with Java. The case study consists of designing an application that accesses a file in order to get data, processes it, and prints the result to an output file.

Solution without design:
Read more…

Advertisements
Categories: Uncategorized

Exploring another MVC variant : PureMVC

December 1, 2011 Leave a comment

According to MVC definition from wikipedia:

“Model View Controller (MVC) pattern creates applications that separate the different aspects of the application (input logic, business logic, and UI logic), while providing a loose coupling between these elements.”

But if we search for MVC frameworks we found many variants: MVC1,MVC2,MVC3,MVP,MVVM and PureMVC.

The question is which one is the best to use?

As any debate like that, there’s no unique solution, it depends on many factors. In this article we try using JArchitect to discover PureMVC in depth, and talk about the main difference between it and the other variants.

PureMVC was popularized first by Flex and Flash developers, but it was ported after to many other languages. The following GWT sample use the java PureMVC framework, let’s analyze it to explore PureMVC concepts.
Read more…