Request for Guidance on Achieving a Suitable Structure #638
Unanswered
Amirhossein256
asked this question in
Q&A
Replies: 1 comment
-
I think a simple way could be to split your handler methods in dedicated traits, in order to have a simple code and a feature (or a set of similar features) per Trait |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm in the process of developing a bot with a relatively large number of features, and I'm in need of a better and more organized structure to handle all the requests. I want to ensure that operations are separated, so I don't have to write everything in a single file.
I have attempted to implement architectures like the Command Pattern to manage the separation of concerns, but I encountered issues with dependency injection and sharing common methods across all classes. It seems that I might not be using the most suitable pattern for this case.
Could anyone suggest an appropriate structure or pattern that would help manage these operations more effectively?
Beta Was this translation helpful? Give feedback.
All reactions