You've finished the implementation, you're done! Right? Well...not quite so fast.

By: Jefferson Hwang

So, you finished your implementation and submitted a pull request. Your reviewer points to a slightly nebulous line of code and asks "why did you do this?" Were you prepared to answer this question?

Often times, whether it be due to limited time constraints or the race to get more work done, once we've solved the problem we call it a day. But do you really understand your solution? Did you stop to understand how your solution addresses the issue and what the tradeoffs are, if any, over other possible solutions? Those are most likely the next questions that will come up in a pull request when your reviewer, who has limited context, reviews your solution.

"Any fool can know. The point is to understand"

It's important to realize there's a difference in solving the problem and understanding why your solution solved the problem. If the problem was presented in a slightly different form, would you be able to shape your solution to solve this new problem? If you parroted an answer from Stack Overflow, you most likely wouldn't be able to answer the new problem. But if you really sat down and explored the ins and outs of your solution, you would gain the knowledge to answer that next question.

https://embed.notionlytics.com/wt/ZXlKd1lXZGxTV1FpT2lJMk5UUm1ZalUyTnpVNU1qazBOR015WWpNM05EQmtZamhtWVdNMFltUXdaaUlzSW5kdmNtdHpjR0ZqWlZSeVlXTnJaWEpKWkNJNklreFRjRGxFYmtwdE1ISktPVmxVUkU5eE0wcEdJbjA9