OOpenFriends - first classes as MVC pattern
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 we have Model and Controller parts implemented in classes. View part may be implemented as dynpro, abap programm with alv or any other kind of UI (f.e. Fiori). This will be the next step and the last task for this sprint.
I have also migrated Kanboard to GitHub project and opened it for reading to all https://github.com/users/msminakov/projects/3
Quick UML Course for refreshing UML knowledges https://www.youtube.com/watch?v=WnMQ8HlmeXc
UML Classes Diagram https://online.visual-paradigm.com/share.jsp?id=313730353235342d31
Comments
Post a Comment