Ask Your Question
0

In the context of Uncle Bob's Clean Architecture, where should an instance of a stream or any required object be created?

asked 2022-10-11 11:00:00 +0000

lakamha gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2022-08-23 09:00:00 +0000

devzero gravatar image

According to Uncle Bob's Clean Architecture principles, the creation and instantiation of objects should be done outside of the business logic, preferably in a separate layer such as the infrastructure layer. This separation ensures that the business logic remains decoupled from any external libraries or frameworks, making it easier to test and maintain. Therefore, an instance of a stream or any required object should be created in the infrastructure layer and injected into the appropriate use case or presenter as needed.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2022-10-11 11:00:00 +0000

Seen: 13 times

Last updated: Aug 23 '22