Giter Club home page Giter Club logo

Comments (7)

ivanpaulovich avatar ivanpaulovich commented on May 12, 2024

Hi Marlon,

Could you share where you found the issue?

If the question is regarding classes like the following:

public class CustomerRepository : ICustomerReadOnlyRepository, ICustomerWriteOnlyRepository
{ 
//
}

Then I think it is correct. My intent is that the consumers of ICustomerReadOnlyRepository are seeing only the methods they need. That's the reason I applied ISP and spitted the interfaces in two.

On the other hand, the class implementation has the responsibility to consume the database and they implement both Reading and Writing methods.

What do you think?
/Ivan

from clean-architecture-manga.

 avatar commented on May 12, 2024

Hi Ivan,

I think I expressed myself poorly.

I agree as to the function of the class, what I meant was that the class was named CustomerReadOnlyRepository when in this case it performs read and write operations, as distinguished in the interfaces ICustomerReadOnlyRepository, ICustomerWriteOnlyRepository.

In the case I am questioning if the name of the class, in this case, should not be only, CustomerRepository as well as AccountRepository.

No more, great code, thanks for sharing.

/Marlon

image

from clean-architecture-manga.

ivanpaulovich avatar ivanpaulovich commented on May 12, 2024

Hi @MarlonMiranda you are correct. And that was good catch!
Soon there will be a fix.
Regards,
Ivan

from clean-architecture-manga.

ivanpaulovich avatar ivanpaulovich commented on May 12, 2024

@all-contributors please add @MarlonMiranda for design and tests

from clean-architecture-manga.

allcontributors avatar allcontributors commented on May 12, 2024

@ivanpaulovich

I've put up a pull request to add @jakebolam! 🎉

from clean-architecture-manga.

ivanpaulovich avatar ivanpaulovich commented on May 12, 2024

@all-contributors please add @MarlonMiranda for design and tests

from clean-architecture-manga.

allcontributors avatar allcontributors commented on May 12, 2024

@ivanpaulovich

I've put up a pull request to add @MarlonMiranda! 🎉

from clean-architecture-manga.

Related Issues (20)

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.