My task for the week 10 were:
- Resolve a bug in record workout task, that was undertaken last week
- Login Screen
- Profile Screen
I was able to complete all the task during these week. I would like to elaborate on the first task that is to resolve the bug in record workout. This bug was a result of bad coding practice. I had initially set up a generic page to be shown if the feature is not implemented. Last week while doing task I had forgotten about it and wrote a testing code on the page that was used by record workout, because of which the record workout was crashing now while it was working last week.
This bug made me look back at my coding practice. All this time all I was doing was looking at the task and start coding. When I begin to reflect back at I begin to see lot of issues with the code. I decided to contact Gurmeet and sit down with him to find out faults in my approach and come out with best coding approach. I contacted Gurmeet because he was responsible to maintain and refactor the code and so, he would help me find my faults.
Code review with Gurmeet
Sitting down with Gurmeet was a good exercise because it helped me reflect back on my coding task that I have been undertaking. The observations were:
- Most of my code did not follow the basic coding convention
- I missed some main fit-to-purpose features that were required for a feature to work properly
- Lots of logical bugs in the code (Gurmeet reported them in gitlab)
- Requirements not understood properly due to which writing the same code 2 to 3 times to get it right (Time waste)
Step 1: Decide what to make :
- In the step 1 the programmer will write the task name and features needed to be implemented for the task to be done
- Make a flow chart to see how the features which are going to be implemented, connect with each other
Step 2: Check Connections
- Check the task connection with all the task that have been done, so that no conflicts occur like the one I faced this week
Step 3: Divide the task
- Divide the task into functions. It would make it easy to do the task step by step, while not forgetting any features.
We believe that this process would help the entire team to write neat code which would enhance readability and maintainability thus saving time and doing quality work. We decided to implement this process from next week onward. We would measure the success of the process by the bug reports opened in the coming week

No comments:
Post a Comment