I think we’re finally getting into a groove with how our schedule is supposed to work at Hack Reactor. We started the day by going over a solution to yesterday’s toy problem. It was ultimately a solution that involved some recursion and considering how to navigate through a decision tree.
My attempt at the problem wasn’t that great. But hey! It’s a learning process. We received our second toy problem, today. This time, we had to return the first non-repeating character in a string. For example:
AAB would return B
AACADE would return C
I implemented a proper solution in the time allotted. I can’t say it was the most efficient way, but it works! And it turns out that this was probably the first time that Taser (our test robot) said my code passed all tests. Absolutely amazing!
Rather than have a reflection to go over our recent two-day sprint, we ended up working in random groups trying to whiteboard a bubble sort problem.
Our mid-morning lecture involved introducing us to a new sprint called “Sub Class Dance Party.” The goal is to look at how various objects we create can inherit certain unnamed properties and methods from their parents.
It’s like having a factory that creates cars. Every car has certain rules it follows. 4 tires, 4 doors, seatbelts, etc. That is the parent class.
The children classes get created when you want to create new things based on that original object.“ Okay, we have the blueprint for a car. Now let’s turn it into a limo with a subclass.”
The only thing this subclass would say is that the car is longer. And maybe a bit more expensive.
But that’s basically it. Anyway, we had to create a cheesy little webapp that would display some random dancers on screen (represented by little dots though people were doing some crazy things with them by using images and GIFS).
After lunch, we paired up with new people for this sprint.
My partner and I worked well together and we were able to move through the exercises pretty quickly and polished off the basic requirements before dinner.
My sister was randomly in the area, so she stopped by and had dinner with a few of my classmates and I. It’s especially amusing since her old boss is one of my fellow classmates! It was good to see her and kind of fun to randomly run into my sister while we were at dinner. She seemed to enjoy talking to my fellow classmates.
After dinner, it was fun time!
We went back to our desks and started coding. By the point, most people had wrapped up the basic requirements, so they were going crazy. I wish I had screenshots or links to share. There were hamburgers floating across screens, dancing bananas, people making trippy scenes that looked like you were in drugs, etc.
We were all having a lot of fun. It was nice to have something a bit more low key to work on after grinding so hard over the last week and a half on heavy concepts.
My partner and I were randomly playing around with how to make our objects move on a sort of random fashion. We ended up adding an image of a shark and having some fun getting it to display and move on screen. My partner had to go to the restroom so I decided to try and quickly add an Easter egg. I created a function called “Crazy Shit Don’t Touch This Button Mode.” If you clicked it, it would randomly spawn 2,000 objects (in the case, sharks) all over our screen. I was having so much fun and laughing so hard I had tears in my eyes.
He came back, clicked the button and thought it was amazing. We then wrote a function that would take all these objects and move them to random locations. Something went wrong and our sharks started to spin around each other like a tornado. It resembled the horrible movie “Sharknado.” We were laughing do hard that people kept coming to our workstation to see what was happening. Hah!
We had an after hours chat tonight by the CEO of a product management company. He encouraged us all the consider becoming PMs within a few years because having a technical background was something that was valuable and hard to get for a lot of product managers. Overall, this particular talk was kind of a waste of time.
We went back to our desks and kind of messed around with out project a bit more. At about 9:45, I hit a serious wall and called it a night.
Tomorrow is day 2 of the sprint and I think it’s just going to be a ridiculously fun day since we get to mess around and finish this project!