NightLyfe is a mobile application designed to help users more easily decide which bars to go to that night, and for bar owners to promote their services.
0
stars
4
forks
source link
Refactor Lists to implement Adapter design pattern #71
Abstract the code in the Bars List, Group List, Friends List, and Restaurant list (Same as bar list?) and create a class called List. This list class will provide display functionalities for each of these different pages, and the individual classes can hold the sole responsibility of generating the lists.
Rational
To create a single user interface that provides a consistent experience across the application and to move towards a more traditional and manageable MVC application architecture.
Additional Opportunities
This also creates an opportunity to abstract each of the list generation classes using the Abstract Factory pattern.
What
Abstract the code in the Bars List, Group List, Friends List, and Restaurant list (Same as bar list?) and create a class called List. This list class will provide display functionalities for each of these different pages, and the individual classes can hold the sole responsibility of generating the lists.
Rational
To create a single user interface that provides a consistent experience across the application and to move towards a more traditional and manageable MVC application architecture.
Additional Opportunities
This also creates an opportunity to abstract each of the list generation classes using the Abstract Factory pattern.