Functional programming is well known for, among other things, treating functions as data, allowing us to store, create, pass, and return them within a program. This has led to all sorts of interesting techniques, most having to do with holding onto functions until we need to use them. Object-oriented programming languages offer us a similar idea, as the “command pattern” — but where can and should we use it? What problems can be solved elegantly by incorporating the command pattern into our code? In this talk, Reginald Braithwaite introduces the command pattern in a number of different contexts, giving us insight into where and how we can incorporate it into our own work. While examples are in JavaScript, these ideas can be used in any object-oriented language.
Time: 33 minutes