I have been going through LS weekly challenge lately. The question are pretty tough and I spent many hours solving the problem. I felt ecstatic when the code finally works and pass all test cases. However, I found myself having a strong attachment to my code to the point that it is unhealthy. Let me explain.
I am reluctant to study other people's code. When I see other people's code, I am thinking to myself "hey, my code works, and that's all that matters, why should I study their code.". I know this is my ego talking.
What's the consequences ? Less learning. I found that my code pattern will follow only a few patterns. Without learning from others and refactoring my code, I can't break my old coding pattern/habits.
It takes great humility to learn from other people's code and refactor your own. If you could do that, your learning progress will accelerate. Why? Because LS student are great, there are many
I am reluctant to study other people's code. When I see other people's code, I am thinking to myself "hey, my code works, and that's all that matters, why should I study their code.". I know this is my ego talking.
What's the consequences ? Less learning. I found that my code pattern will follow only a few patterns. Without learning from others and refactoring my code, I can't break my old coding pattern/habits.
It takes great humility to learn from other people's code and refactor your own. If you could do that, your learning progress will accelerate. Why? Because LS student are great, there are many
Comments
Post a Comment