
Design patterns are reusable solutions to common problems that arise when sotware engineering. They make our life easier when we code, since they can provide a simple, easily manipulated foundation for when we start a new project/application. In class we used templates in Meteor such as meteor-template-react and meteor-form-react. These templates allowed us to easily create new applications and pages in our application that were functional, just not yet functional to our specific problem.
Interestingly, it’s almost as if we were introduced to design patterns in middle school! Using these templates reminded me of when we used to use Comic Life to make graphical, comic posters for middle school classes. When you create a new Comic Life document, there is a default template that your document starts off with. It has a title, comic boxes and some speech bubbles. Of course, all of these things can be used in your final document, however you can easily change the text and the size and position of the boxes to make the comic document more to your liking or fit your personal goals with the document. The boxes are also blank, and you can fill them in with your own graphics.
This is exactly what it is like when working with the design patterns we used in class. Meteor-template-react and meteor-form-react both are templates that give you a functional application and form. However, it is “blank” in the sense that you have to change the database and css to fit your needs and liking.
Design patterns, like clay, are the raw material. It is your job to mold it to the way that you want it to be. In conclusion, we used two design patterns in this class, meteor-template-react, and meteor-form-react. However, there are many more design patterns and all are useful in given situations for saving time and making coding new projects easier.
Most design patterns are snippets of code, like algorithms or patterns that deal with object creation, or object relationships. Like little pieces of clay you can take these pieces and mold them into different parts for your finished piece: a full blown sculpture. Hopefully when I interview in the future for a job, my experiences in this class will help me to answer these questions to the best of my ability.