Skip to main content

DPS 909 - Release 0.2 - Hacktoberfest Week 2

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.

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

Popular posts from this blog

DPS909 - Lab 2 - Git Practice: Simple Noter App

Once again, I am continuing my journey to become a full-fledged member of the open source community. For this small milestone, I am practicing the creation and management of a Github repo using git bash on my local machine. For test material, I have created an incredibly simple, browser-based sticky note app, appropriately called Simple Noter. For those interested, the final product is hosted on Github Pages, and can be found here: https://jerryshueh.github.io/simple-noter/ The app itself is very basic - simply type a note into the text space and hit CTRL + X to save. Your note will be saved between sessions until you clear your browser's local data. It uses a number of open source and free-to-use resources, such as Kenny Wong's Hotkeys.js , and Google Fonts. By the way, something I've learned is that all Google Fonts are distributed under the SIL Open Font License, which allows anyone to use and modify them for personal or commercial purposes. As for the learning proce

DPS909 - Lab 1 - Github Trending Research: WebGL Fluid Simulator

The WebGL Fluid Simulator is a small application that allows the user to play with simulated fluids right in their browser, and works on both PCs and mobile devices. The visual effects follow proper fluid dynamics, and can be manipulated in real time by pointing and click, as well as several available options such as quality, density, and velocity.  The app is written in JavaScript, and as the name suggests, visually renders its effects using WebGL. It was created by Github user PavelDoGreat based off another Github project:  Fluids-2D , and is distributed under the MIT license. As of September 8th, 2019, WebGL Fluid Simulator is trending with 2,307 stars during the month, and 6,070 stars in total. Main interface of WebGL Fluid Simulator by Github user PavelDoGreat I was interested in investigating this project as it demonstrates the breadth of open source resources on Github. Users can find projects that range from complex systems and APIs, to small plug-ins and simple applica

DPS 909 - Lab 3 - Hacktoberfest, and the Very Scary Repository

It's that time of year; the mornings are getting chilly, the leaves are turning, the pumpkin spice is flowing, and open source developers are getting all worked up over something called Hacktoberfest . Not to be confused with the other , similar-sounding (though arguably no less beer-filled) celebration, Hacktoberfest is a chance for open source enthusiast to truly flex their projects and contributions. Hosted by DigitalOcean , Hacktoberfest 2019 is an event running throughout the month of October that encourages activity in the open source community. It is completely free to sign up, and participants can even link their Github accounts to use as their Hacktoberfest profiles. As you may have already guessed, I will be participating in this event as my next major milestone on my journey into the world of open source. Through the miracle of APIs, even my profile picture was imported! While the prospect of diving headfirst into such a large, open source event as a beginner may s