Yesterday was my birthday and a lot has happened here at coding house! We have been working on a new project that will help us track our social media duties per day, and the plan is to use the D3 library to visualize our statistics over time. For the first project we were divided into two teams of three people each but for this project all six of us are collaborating. To prepare us for team collaboration, coding house introduced JIRA, a task manager, and we spent a while figuring out how to divide up the tasks and estimate our time to complete each one.
To start my birthday off we had yoga in the morning and it felt amazing to get that kind of stretch and strength training in. Our instructor has a good balance of hybrid exercises and while they never seem impossible, they definitely require dexterity, strength, and endurance. Especially the portion where we do 60 push-ups split between bridges and planks, whew!
Since we have six people working on this project we decided it would be good to pair program tasks and my partner is Aleks, the guy from Denmark. We made a lot of progress in the morning but then got stuck on a problem with firebase, a data service we are using for logging in, controlling sessions, and storing our data. The problem for us occurred when we were trying to load previous data into our variables. The confusion stemmed from firebase's reliance on event based data-reads. So, instead of us being able to just say, hey we want data from X table, we have to create a callback function that reads data based when an event occurs. The curious part was that our program was working, as long as we didn't redirect the user after they submit their information. Long story short, our script was correct, but we were only triggering it when we clicked on the submit button, and the script needs to occur both when the page loads AND when the user submits their information (to detect if there are any changes in the database). The solution was to copy the portion of the script and paste it into the document.ready function. As much as it was frustrating, I can't be mad because little things happen like this in programming all the time, and it requires patience and logical thinking to overcome seemingly trivial bugs like this.
Halfway through this bug the doorbell rang and it was a special delivery for me from my girlfriend! She had found a really good cupcake bakery near our house and ordered strawberry and cookie butter cupcakes. They were amazing, I highly recommend cookie butter on anything! We continued to work and finally got to a spot where we were happy, and right after we fixed the bug, dinner was ready! I requested the chef make pad thai as I haven't had thai food since we've been here. She seemed hesitant at first because she has never made it, but it was amazing! She really outdid herself, including baking me a cake along with cookies and cream ice cream. We all celebrated by devouring the cake and then playing games the rest of the night. All in all a great birthday, but I can't wait to head back to my apartment in the city on sunday and spend time with my girlfriend.
Right now we're watching the USA v Germany world cup match and deciding on what the tasks for the day are. I still need to finish my personal website, as well as review some tutorials because we will be having a test over the first two weeks of material this upcoming saturday. I'm not worried as I have a pretty good grasp of html5, css, bootstrap, git, javascript/jQuery at this point but I just want to make sure there isn't anything important I've overlooked before we head into the mongodb/node phase. Until next time!