After setting up the dev environment for filer (cloning the project in GitHub, installing Node.js, npm install, …) I started by running the tests by typing “grunt test” and all of it was successful. Time to start gathering the requirements for du! I had to read Dave’s instructions here more than twice, researched about the du command and its behaviours. I had the ideas in my head, so I started looking at the source codes and checked which ones I need to update for the implementation.

After having everything prepared, I then started trying to understand the basic flow of the already existing codes. I also searched for codes within the files for other commands which are somehow similar to du so that I can refer to it. I observed how they code so that I can write in a similar way as every contributor to the project. The ls command seemed to be the closest so I used that as my base for my assignment. I had to take time reading it using my basic JavaScript knowledge from the INT222 class and from my co-op work terms. I was also unfamiliar of the other existing codes that have been used and had no idea what they were for. At first, everything seems so overwhelming. Just like being a little fish released in an ocean located in a different planet in an alternate universe… Okay I’m exaggerating and I’m not even sure that made sense, but like what Dave has been mentioning in the class, never panic.

In the end, I can’t say I mastered and wrote the most efficient code and covered all the functionalities of du. But it is definitely a start and will help me on the future releases. Pull request link.