Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TDD by Reso coder (Actually Uncle Bob)? #3

Closed
m-kuzmin opened this issue May 10, 2022 · 2 comments
Closed

TDD by Reso coder (Actually Uncle Bob)? #3

m-kuzmin opened this issue May 10, 2022 · 2 comments
Labels
code-style Improvements to code style e.g. structs and methods

Comments

@m-kuzmin
Copy link
Owner

Problem

The code is hard to organize and its not very easy to maintain.

Solution

This app reminds me of TDD tutorial by Reso Coder, Episode 1 of that. Since a lot of the code is already in git I can try to start from scratch and do it this way. It will also enable extensions down the line.

Could Close #2.

Pros

Better flexibility in terms of user facing UI and ability to rewrite large chunks of impl. details without affecting the rest of the code (due to code structure).

Disadvantages

It may be an overkill and there could be some issue later that I don't know of.

@m-kuzmin m-kuzmin added the code-style Improvements to code style e.g. structs and methods label May 10, 2022
@m-kuzmin
Copy link
Owner Author

This seems like the way to go since it provides some nice structure of presentation -> domain -> data, enables better code reuse (e.g. multiple usecases calling into the same repository funtions) and allows for great test coverage.

@m-kuzmin m-kuzmin changed the title TDD by Reso coder? TDD by Reso coder (Actually Uncle Bob)? May 12, 2022
@m-kuzmin m-kuzmin mentioned this issue May 14, 2022
2 tasks
@m-kuzmin
Copy link
Owner Author

Already implemented, closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code-style Improvements to code style e.g. structs and methods
Projects
None yet
Development

No branches or pull requests

1 participant