Code Monkey home page Code Monkey logo

clean-architecture-example's Issues

Unit tests

Unit Tests:
for TDD (a.k.a. Tests first, to drive design)
Cover every little detail, aim for 100% coverage
“Dev to dev” documentation: What should this class do?
Test individual classes in isolation, very fast

Cover every little detail and tend to cover 100% with unit tests will give us a hell of re-working every piece of test each time logic is changed))

[QUESTION] How to avoid duplicate interactor

Hello,

What if I create a new use case, like getSomething, and use the same DoesExchangeExist class.
Should I use this class or create new class for new use case?
Thanks in advance!

Best regards,
Huka

Configuration of data providers?

Shouldn't there be an arrow from the configuration layer to the data provider layers?

How do we configure data providers like db, network parameters, etc.?

Thoughts on finding entity to update

I noticed your models/entities do not cary ID generated by DB. It does makes sense to me that we don't want to expose this as different data providers may handle record IDs differently. I'm thinking about the best way to handle case of User entity where somewhere on the outside request comes in to update information of a User. Email address could be used in such case or perhaps UUID. Thoughts?

"Use Case" Examples are leaking domain objects (entities)

Hi,

In his book uncle bob writes that entities should not be passed to use cases or returned from use cases, which is clearly not the case in this repo.

I was wondering if that is intentional, and if so, why?

From what I understand, A use case input and output should be a DTO, thus preventing upper layers from ever having access to an object two layers down.

Missing the last 'e'

change
reconcileBroadbandAccessDevicesUseCas

to

reconcileBroadbandAccessDevicesUseCase

public ReconcileBroadbandAccessDevicesUseCase reconcileBroadbandAccessDevicesUseCas(GetAllDeviceHostnames getDeviceDetailsFromMode, GetSerialNumberFromModel getSerialNumberFromModel, GetSerialNumberFromReality getSerialNumberFromReality, UpdateSerialNumberInModel updateSerialNumberInModel) {

Creating war from root gradle script

Hi @mattia-battiston,

I hope you are doing well.
I have one question. How would you create deployable war (to standalone Tomcat) from this project on the root level?
There is an option to create a war from the configuration module, but that isn't so appropriate.
Do you have some script for that or to play around by myself a little bit with that? :)

Thanks.

Ivan

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.