Skip to content

Using dependency injection #96

@NotToDisturb

Description

@NotToDisturb

Hello hello!
This issue is to open the discussion on dependency injection to simplify development

I've created a POC (NotToDisturb@e3cd9e6) using Dagger and Lombok, the tools I'm most familiar with.

The changes are not E2E, changed just enough to show the potential in terms of reducing dependency across classes, among other things.

Lombok also brings other benefits like:

  • Less constructors by using the @RequiredArgsConstructor decorator (constructors with logic will still be needed)
  • No longer needing to declare the logger (instead using the @Slf4j decorator)
  • Not showcased here, but tags like @Builder, @Value, @Getter and @Setter simplify data class creation and more (I can publish a POC for this too)

Thoughts?

PS: Didn't create this as a PR as it would include the changes from #76

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