I’ve actually gotten into the habit of planning my projects down to how I’m going to implement functionality. I decide beforehand whether I’m gonna use a library or a bespoke solution in vanilla JavaScript. It depends on robustness vs performance for me.
Also, since I fell in love with Mocha and BDD testing a few months ago, I’ve made it part of my process, often writing my tests before the implementation so I can limit myself to expected results and possible edge cases. I write code defensively as a rule, and Mocha has only helped that. Although, this could all be obsessive on my part, as I’m not even building major web apps yet.
Sitll, it can’t hurt to prepare for future challenges now.
I’ve actually gotten into the habit of planning my projects down to how I’m going to implement functionality. I decide beforehand whether I’m gonna use a library or a bespoke solution in vanilla JavaScript. It depends on robustness vs performance for me.
Also, since I fell in love with Mocha and BDD testing a few months ago, I’ve made it part of my process, often writing my tests before the implementation so I can limit myself to expected results and possible edge cases. I write code defensively as a rule, and Mocha has only helped that. Although, this could all be obsessive on my part, as I’m not even building major web apps yet.
Sitll, it can’t hurt to prepare for future challenges now.