Skip to content

Use of Design Patterns to improve code maintainability #16

@amadoran

Description

@amadoran

Adapter Pattern.
image
In this snippet of the code i found that if you want to send a message in a different way you should use this design pattern to transform the data and make it possible to use.
image

Singleton Pattern.
If we analyse the project the classes Book, MailServerInfo and Member are in the same package but they are just data for the database. In this case we could use just a single instance of an object to encapsulate this fields, that's why we use the singleton pattern.
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions