3 ms·
> Do you have any thoughts on how a junior engineer can improve their ability to write maintainable code? Think of your code like an essay. Write comments on t
by yid 12y ago
> Do you have any thoughts on how a junior engineer can improve their ability to write maintainable code?
Think of your code like an essay. Write comments on the motivation for decisions you make, not just what the codes does. Think of the exercise not as trying to just produce writing code, but to make the next person reading the code feel like they were with you the whole way, making decisions together, working out problems on a whiteboard.
While doing this, don't be afraid of honesty, don't be afraid of verbosity, and always have empathy for the next person reading your code.