Featured
- Get link
- X
- Other Apps
Week 4: Lab 3
Lab 3
This weeks lab was all about learning the process of merging branch's together and solving the merge conflicts that get in the way. I had to pick two addition features to add to the Link Status project, but I had to implement them on two different branches which I would eventually merge and push back to master.
Implementing the new features
I choose to add the option of JSON format output and some new argument flags the would only output certain types of response URLs. Implementing the new features didn't take too long to add since they were just adding new options to the system I have already set up. The hardest part to update was the checkStatus() function because I had to change the function in many ways to allow the different options.
Each branch alone was pretty straightforward to develop the new features on, but the issues came from when the two branches had to be merged since both added on to the existing structure of my program. Everything besides the checkStatus() function went smoothly when the merge happened. The checkStatus() function broke completely since both branches changed so much from that function, thankfully I designed the JSON option to use a bool variable flag if the user wanted it or not. With this the JSON feature was entirely in one part of an "if" statement while the old non JSON format output was placed in the following "else" connected the the statement. This worked will since the new flags in the other feature modified the original code.
Here's the JSON addition:
- Get link
- X
- Other Apps
Comments
Post a Comment