Code Monkey home page Code Monkey logo

Comments (3)

ardalis avatar ardalis commented on August 28, 2024 2

It's true, 'use case' isn't really a term I use in this context. In my experience a use case is similar to a user story, and is captured as documentation of requirements, not part of the software domain itself. From the diagram you've provided, it seems like a use case maps to an application service. In fact, if one uses MediatR or something similar to minimize the size of one's controllers, you'll end up creating message types that could easily map to the Use Case Input Port (Request) and Use Case Output Port (Response). With the Use Case Interactor as simply the Handler in that case.

I'll check out the Medium article you linked to and respond later perhaps once I've had a chance to read it. Thanks!

from cleanarchitecture.

ardalis avatar ardalis commented on August 28, 2024

Can you link to one so I can see an example of what you mean? This one is meant to be a solution starter kit, so it's light on features such that when you start from it, you don't have to rip a whole lot out.

from cleanarchitecture.

RikDriever avatar RikDriever commented on August 28, 2024

Sure, for example this article https://medium.com/@stephanhoekstra/clean-architecture-in-net-8eed6c224c50 with this solution structure https://github.com/stephanhoekstra/clean-architecture

This series of blogposts is also worth looking into: https://plainionist.github.io/Implementing-Clean-Architecture-UseCases/
The image below comes from this series and is particularly interesting for this topic.
user interactor flow

I understand this is a starter solution, but it just seemed odd to me that others see the use cases as an integral part of the architecture and you might not? The phrase "use case" is not mentioned once in your e-book either.

from cleanarchitecture.

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.