This content originally appeared on DEV Community and was authored by Nevin Katz
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!
This content originally appeared on DEV Community and was authored by Nevin Katz
Nevin Katz | Sciencx (2021-05-26T12:19:54+00:00) 7 Tricks I Use To Rewrite JavaScript Code From My Early Days. Retrieved from https://www.scien.cx/2021/05/26/7-tricks-i-use-to-rewrite-javascript-code-from-my-early-days/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.