Search Unity

Design Patterns

Discussion in 'Community Learning & Teaching' started by corax, Oct 26, 2013.

  1. corax

    corax

    Joined:
    Jun 4, 2012
    Posts:
    34
    Hi,

    I'm new to programming and I'm trying to move forward with baby steps. I've found the Pluralsight courses very informative. The Clean Code Course was mind blowing. Now I want to move to design patterns. They have a huge library but I think that most of them are useless for games or of a very little use. Which one shouls I see? And which one fist?

    Here is a link to the couse. And here a list of patterns:

    1. Adapter Pattern
    2. Bridge Pattern
    3. Builder Pattern
    4. Chain of Responsability
    5. The Command Pattern
    6. Composite Pattern
    7. Decorator Design Pattern
    8. Event Aggregator
    9. Facade Pattern
    10. Factory Patterns
    11. Flyweight
    12. Interpreter Pattern
    13. Iterator Pattern
    14. Lazy Load Pattern
    15. Mediator Pattern
    16. Memento
    17. MVP Pattern
    18. MVVM Pattern
    19. Null Object Pattern
    20. Observer Pattern
    21. The Prototype Pattern
    22. Proxy Pattern
    23. Repository
    24. Singleton
    25. Service Locator Pattern
    26. State Pattern
    27. Strategy Pattern
    28. Template Method
    29. Unit of Work
    30. Visitor Pattern
    31. Rules Pattern
     
    Last edited: Oct 26, 2013
  2. Partomo

    Partomo

    Joined:
    Oct 7, 2013
    Posts:
    17
    Interesting question. I am looking for some very basic examples of design patterns written for Unity just to get me started. For Adobe Flash, I got my hands on a design patterns book and just the model-view-controller helped me to dramatically improve the structure of my code.

    Now I am looking for something similar for Unity. I think of myself as a well-informed amateur: porting Gang of Four patterns to Unity is too much for me to handle but some good native Unity examples would probably get me started.

    Can anyone point me in the right direction?

    Any help greatly appreciated.

    Tom
     
  3. corax

    corax

    Joined:
    Jun 4, 2012
    Posts:
    34
    Yes I'm pretty much in the same situation. I've found useful the number 24.Singleton. But that was a simple shot, because I know that singleton are commonly used in videogames.

    I suppose Event Aggregator, Observer Patter and Prototype pattern could be useful but I'm not very sure of that.
     
  4. hMark

    hMark

    Joined:
    Oct 16, 2013
    Posts:
    16
  5. AlexZ

    AlexZ

    Joined:
    Sep 17, 2009
    Posts:
    263