Day 63 Debugging & Optimizing

Troubleshooting

Day 63 is in the books. I spent most of today fixing some bugs in my Reddit clone app and optimizing the code to make it as efficient as possible. I was having a strange issue where each time I added a comment the comments would toggle where you couldn’t see them. I fought this issue for quite a while before I came up with a workaround. The issue is related to an $http GET request that I was doing in Angular. I was making a POST request to add the comments and then doing a GET request in the callback to refresh my local copy of the model so that the new comment would be rendered on the page. The problem was that the property I was adding to each post wasn’t a part of the database model because I was just using it on the front end. I realized that if I did a forEach after updating my local copy of the model I could add the property back to each post. That worked like a charm, but it’s not a scalable solution. I’m going to streamline it a step further so that I’m only requesting the new comment from the database in the GET request and then I can add the property to just that POST.

Job Hunt

I also applied for my first job today. Oracle has an internal startup that is working with customers in a variety of different industries to implement cloud solutions that meet their customer’s needs. When I initially read the job description it didn’t sound like there was much coding involved so I decided not to apply. However, after speaking with our career services person today I found out a little more about the role and it sounds pretty cool so I decided to apply. They are hiring about 30 people in Austin so we will see what happens. I didn’t feel totally prepared to apply. I wanted to add some things to my resume and tweak some things in my online profiles, but I was encouraged to apply today so I did the best I could with what I had. I’m excited about starting my job hunt and submitting my first application. I will let you guys know how things progress with this opportunity.

Auth

Towards the end of the day I started working on adding Auth to the Reddit Clone that I’m working on. I got the migration created and installed the necessary dependencies. I also started a route file and wrote most of the registration logic. I’m hoping to have chance to finish that up tomorrow.

Tomorrow

Tomorrow morning I have a three hour 1 on 1 review session with my instructor. I’m actually really looking forward to it. I have a few topics in mind that I would like to review in more detail and I’m grateful that I will have some dedicated time to pick his brain. I’m also really looking forward to the weekend. My wife has been out of town all week and I have been staring at a laptop screen for far too long. I’m looking forward to getting outside and spending some time with my wife. I may try to record the Reddit Clone walkthrough this weekend as well. If I don’t get around to it I will have it done early next week. I’ll keep you guys posted on how tomorrow goes. Until next time…happy coding.

63 down 37 to go