An Interest In:
Web News this Week
- March 21, 2024
- March 20, 2024
- March 19, 2024
- March 18, 2024
- March 17, 2024
- March 16, 2024
- March 15, 2024
7 Tricks I Use To Rewrite JavaScript Code From My Early Days
For the past four years, I have been working on a Cordova app that runs on JavaScript. The codebase has grown to the point where working on it often feels like wandering through streets and alleys of a large city. And looking at some of the earlier modules feels like sauntering into old buildings I originally constructed years ago.
While my JS coding has evolved over this time, I often run into code in the app that feels inefficient and outdated - and it bothers me to the point where I usually feel compelled to eventually refactor it so that it is more compact, readable, and understandable.
Here are 7 time-tested tricks I use to rewrite my JavaScript code from those early days, published this month in Better Programming. I hope you find them useful. Enjoy!
Original Link: https://dev.to/nevkatz/7-tricks-i-use-to-rewrite-javascript-code-from-my-early-days-1745
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To