This is a look back at some of the code I have written over the past four years, while I have been at university. Before going, I knew the absolute basic of Javascript: self taught from investigating a website that I took charge of. Now I have a deeper knowledge of how software works, and understand why it is the way it is.
I've tried to include one example program from each semester at the university, as well as something I did in my spare time. Some semesters weren't as filled with intersting projects as others, so I don't have one from everywhere.
Assignment, Semester A, COMP103
One of the weekly assignments in COMP103 (the introductory course to programming) was to create a version of the infamous Enigma Machines. It had to read in the rotor values from a CSV file, then cyphertext from a text file, and convert it to plaintext, as well as the reverse.
One of the tutors gave us an encrypted file. Its contents were "THE FIRST PERSON TO SEE <name of the tutor> AND SAY PEANUT SLAB WILL GET A PEANUT SLAB". I don't like Peanut Slabs, so I ended up giving it to a friend.
Assignment, Semester B, COMP104
Based off the card game Get Bit!.
This was the final assignment of COMP104, and was set to show our understanding of Object-Oriented design. All students had to create their own version of the card game, and implement various AI player types.
We also had to do an extra on top of just creating the game. I created a primitive XML-based save format, so games could be saved and then loaded. This used the .NET XML library to do the conversion, and taught me how to do serialization in a strongly typed environment.
Personal Project
This was just a random thing I made to troll friends. It features a loading bar, which Spoilerdoesn't ever finish, and plays music (Spoilerthe 'troll song').
Unfortunately, I've lost the code for it. No great loss, though it was how I learned to include resources into the executable (which was very useful for Get Bit!).
Assignment, Semester B, COMP204
This assignment was set to assess many different things:
Tim and I were able to complete our task, and create a game where a ball moves with gravity. So did everyone else in the class, of course. Theat was the goal of the assignment. It was interesting to look at other groups' apps and see how they were different.
Personal Project
Repository (#1) Repository (#2)
It was around this time that the video game No Man's Sky. Information on the game was relatively scarce, but work had been done on the subreddit to collect it all. However, it was a bit of an annoyance to search through and provide links to. I set out to create an easily linkable and searchable collection of all the information about the game, complete with the sources for the information.
The website ended up being relatively popular throughout the community, which was fantastic. I kept it open source and ad-free, and worked with another group who were building their own NMS-related website. I also completely rewrote it, which allowed me to experiment with server side rendering for the first time.
I learned two major things in making the Info Repo:
Assignment, Semester A, COMP316
This paper was taught using the functional language Clojure. The goal of this particular assignment was to implement pathfinding through an ASCII maze using Breath First Search, Depth First Search, and A*.
I ended up finding that working in a functional way was quite satisfying, and I started to use some of the ideas in other projects. It also helped me understand how to do state management better, which has saved me a lot of time, especially in larger projects.
Assignment, Semester B, COMP301
This is the most techinically challenging work I have done so far. COMP301 was about operating systems, and was taught using MINIX. For the final assignment, we split into groups of 2 or 3, and were given a long list of options. Only one group could take each, so I quickly searched through the list to find the ones that were most achieveable given the time. I teamed up with Jayden for this assignment, which benefited us both quite well.
The project we settled on was to extend the IPC server to allow processes to subscribe to chaneels and receive updates, or to create channels to push updates to. Originally, we started by creating an entirely new server, but after spending 2 weeks trying to get it to start on boot we decided to instead attach it to the FS (because that's always active).
Our solution, in the end, involved storing subscribers in three linked lists in each channel:
It wasn't until we had submitted that we realised that we could have done it wihtout having to deal with transferring items between lists. Time pressure makes spaghetti code possible probable.
In the end, I believe we were one of the few groups to finish that assignment, and we are one of the last. This assignment has since been removed from the course. I understand the reasons why, but it was a great challenge, one you could be proud of. This work in C was important to us both, especially to Jayden as his honours project was entirely C-based.
Personal Project
Repository (#1)
Repository (#2)
Repository (#3)
bot is probably the single project I have kept going for the longest period of time. What started off as a simple IRC bot has evolved into a bit more than a simple bot. This project was actually started around the same time as the NMS Info Repo, but it took a little longer to get off the ground.
One of its major features is recursive command processing, where commands can be chained together. For example, ~youtube
searches YouTube for a video, and ~request
adds a video link to the music playlist. Putting the two together, ~request ~youtube mahna mahna
will add this video to the music playlist.
The bot has gone through many versions, often with major changes to its internal working. In its current version, the bot is able to connect through various methods (at the moment it only uses Discord, though it has used IRC in the past). It continues to be an interesting project to work on, as the are always improvements to be made or ne features to add.
Assignment, Semester A, COMP548
The second assignment for the mobile apps paper was to create an app that could request something using the network, store in in a database, share it to another application, and provide some additional functionality beyond requesting, storing, and sharing.
Since I knew the next one would involve using one the Google APIs, I thought I'd get a bit of practice in and have a better understanding of the process. Google had announced their Cloud Vision API, and I wanted to play around with it.
So I did. The app allows you to take photos (or pick from the gallery), send them off to Google, who sends back a list of what was recognised in the image.
Note to anyone wanting to use Cloud Vision: Pictures of flowers, cars, and animals are the fastest to process. Probably because of the large amout of training data available to the neural network.
Honours Project, COMP520
This was made as part of my Honours project. I plan to write a fair bit more on that when I'm ready. I'm still thinking about exactly how I'll write about it.