What are programming patterns?
I’ll be honest – we are not the first people to create games, or to write software for that matter. But this is actually a good thing; it means that many others before us encountered the same problems that we might have too. They thought up solutions to these problems in one way or another, and we can now make use of these solutions in our own games and software.
Programming patterns, or software design patterns, are descriptions or templates that tell us how we can solve certain problems while programming. They are not completely implemented solutions; they just give us directions on how we could tackle whatever we are trying to solve. A programming pattern tells us how we can organize our code for different outcomes.
To express these patterns, there are different parts that are important:
- The name: How the pattern is called.
- The problem: What the pattern is trying to solve.
- The solution: How the pattern will work...