For week 2 of Hacktoberfest, I decided to do some actual coding! Github user ZoranPandovski has an absolutely amazing project that is perfect for novice contributors: simply code an example of any programming design pattern in the language of your choice! The issue can be found here, so please post to the thread if you wish to take part in this project. You can also contribute explanations about each design pattern to the repo's documentation - it's a great way to share your knowledge! Don't know what design patterns are? No worries, there are plenty of online resources to learn about them. Design patterns are a fundamental aspect of programming logic and software design, so if you really want to get serious about programming, then study up! After you've learned all you can about design patterns, why not flex your newfound skills by contributing to ZoranPandovski's project?
For my contribution, I've written some very simple C++ code to demonstrate the adapter design pattern. Just like a hardware adapter (such as those electrical outlet converters you can find at airports), a programming adapter converts one interface to another. But rather than reading me ramble about it here, why not check out my commits? If I've done my job, hopefully you'll learn a thing or two! You can find my pull request here.
With this week 2 contribution, I've fulfilled another one of the personal goals that I'd set for myself in a previous post, and that is to contribute using something I wanted to improve on. It has been a while since I've touched C++ code, and it's always good to brush up on design pattern fundamentals!
For my contribution, I've written some very simple C++ code to demonstrate the adapter design pattern. Just like a hardware adapter (such as those electrical outlet converters you can find at airports), a programming adapter converts one interface to another. But rather than reading me ramble about it here, why not check out my commits? If I've done my job, hopefully you'll learn a thing or two! You can find my pull request here.
The adapter design pattern is, in many ways, like an outlet adapter! |
With this week 2 contribution, I've fulfilled another one of the personal goals that I'd set for myself in a previous post, and that is to contribute using something I wanted to improve on. It has been a while since I've touched C++ code, and it's always good to brush up on design pattern fundamentals!
Comments
Post a Comment