Posts

Showing posts with the label design

OOpenFriends - first classes as MVC pattern

Image
       The first sprint will end at 10 Nov and most of the tasks are almost completed. The accounts table is created and first ABAP classes are written. I have used the following article to get myself familiar with the ABAP implementation of most usefull design patterns  http://zevolving.com/category/abapobjects/oo-design-patterns/        In spite of the fact that the article seems to be old it will give a good overview about. I have choosen classical MVC pattern for OOpenFriends classes, but with some differencies from the article code. So I have moved the attributed to the private section, adding corresponding "getter" and "setter" to implement some incapsulation. Objects of model class will get the data from database and controller class is aggregating the objects of model classes (only accounts at the moment but also other entities in the future).      Now w e have Model and Controller parts implemented in classes. View par...