Hello, everyone! I am currently learning about Design Patterns like Observer Pattern, Object-Pooling and more and I really want someone to explain to me how they actually work in practice, because I can't really understand them. I would like to start using these patterns into my code in order to create maintainable and clean code but really dont know where to start. Thanks!
#Design Patterns
1 messages · Page 1 of 1 (latest)
The question is too complex. Break it down and ask about one thing at a time instead of design patterns and such in general. Ideally, an example from your learning resources would also help.
this is an extensive compendium of patterns with discussion of when to use/not use the individual patterns https://gameprogrammingpatterns.com/
design patterns aren't something you can apply to all code and magically make it better
these are tools to solve specific problems or tasks, you have to identify where they can be applied to your benefit
sometimes they just don't fit and that's ok
you'll be able to more effectively identify where to apply patterns as you get more experience, but existing resources like what anikki linked are good starting points to figuring that process out