My Experience In Boot Camp So Far: Day 2

So yesterday, I studied Object-Oriented Programming(OOP) in Javascript for our OOP task. Until now, Prototypes had been quite confusing. As someone with a Java background, I have a good grasp of OOP concepts: Objects, Classes, Inheritance, Encapsulation, Polymorphism, and Abstraction but just the thought of Javascript Prototypes irked me.

This challenge threw me off Javascript OOP for a while but, alas, I had to attack my Goliath yesterday. Much to my surprise, after trying out a few examples, I fell in love with ES6 classes and everything worked smoothly. However, I did find it a bit unsettling that Javascript does not currently have proper access modifiers for class properties and methods: Risky, no?. I do understand how powerful Prototypes are now, but you would still have to bribe me to use it. Goodbye Prototypes, Hello ES6 Classes!

The problem came when I had to do my task and then write my Jasmine tests. I spent quite a bit of time trying to find out how to export and import my Classes. It also did not help that all my Internet Service Providers (ISPs) picked that moment to misbehave and I darted about looking for sufficient network to ask for my peers for help and search online. Whew! I was euphoric when my tests finally passed and I successfully submitted before the deadline.

It was a very interesting day and I learned a lot. I have learned how valuable collaboration with others is, and the importance of effective communication. Now, I am comfortable writing Javascript OOP and every day, I become more and more comfortable with Test Driven Development.

Like what you read? Give Memuna Haruna a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.