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.
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
Asked: 2022-10-11 11:00:00 +0000
Seen: 13 times
Last updated: Aug 23 '22
What is the procedure for using ffmpeg to directly convert H264 raw stream into an mp4 file?
How to handle the absence of records in a foreign-key join using Kafka Streams?
How can RTMP be transcribed to AWS?
How can I implement a real-time response stream from the GPT API in React Native?
What does it mean when the user is unable to encrypt stream records due to lack of authorization?
What is the process for testing an infinite stream using Jasmine Marbles?