Re factor the code to use DI
Quickly is a great tool but it promotes a huge coupling between the UI and the actual code. In the application we have been suffering from it and we have to stop this. The code will be re-factored to use a DI library that will inject the different dependencies ensuring that the code is more testable and portable.
Blueprint information
- Status:
- Started
- Approver:
- Manuel de la Peña
- Priority:
- Essential
- Drafter:
- Manuel de la Peña
- Direction:
- Needs approval
- Assignee:
- Manuel de la Peña
- Definition:
- Approved
- Series goal:
- None
- Implementation:
- Good progress
- Milestone target:
- 0.32
- Started by
- Manuel de la Peña
- Completed by
Whiteboard
Added MVP implementation in most of the simple dialogs such as the AddressDialog and the EmailAddressDialog. Added a provider that can be used to inject different dependencies in the code. Currently is used to inject presentors in view, later will be used to work with plugins and the twisted plugin arch.
13-02-2010
Implemented MVP in all dialogs except the main window. Implemente widget for categories and contact data rather than coupling the logic of the data tree into the dialogs UI logic.
28-02-2010
Nearly finished the implementation of a nautilus look alike widget to display the contacts widgets. Once finished the changes in
the main window will be done and the blur print can be closed.