Don't fall in love with your code
I was mentoring this developer, and he was working on a piece of UI which involved a lot of JavaScript. The timeframe was before sing-page apps became the norm. So the team was using JQuery. Day by day, the functionality started getting more sophisticated. A part of the feature was