Advanced Programming Patterns
Although computer science as a scientific field is pretty new, being less than 80 years old, many smart people have studied it. This means that most programming problems have already been encountered in one way or another. These are problems such as how to connect parts of a program without them being hardwired or how to create and destroy thousands of objects, such as bullets for example, without slowing down a game.
These smart people, often called software architects, came up with smart solutions that solve these problems in an elegant manner. Then, they realized that they could generalize these solutions into a sort of recipe, a template that others could use too. This is what we call a programming pattern. In this chapter, we’ll learn what programming patterns are exactly and have a look at the three most used patterns in game development.
The bigger your vocabulary of programming patterns, the easier it will be for you to solve your...