Upgrade your Javascript Development

Kieran Maher
3 min readNov 10, 2019
Photo by JESHOOTS.COM on Unsplash

We’ve all at some point or another either inherited or cloned a project that was lacking in more than one sense. Whether it be poor code formatting, a bizarre and unorganised folder structure, or that one project I had where all Vue components were somehow written in JQuery, almost all JavaScript projects can stand to benefit from a few pointers.

1. Use ES6

It is astounding how many projects don’t take advantage of the benefits offered by writing your code in the ES6 standard. Not only does ES6 introduce the class keyword to make class declarations easier and more clearly defined, but ES6 also brings some of that syntactical magic with it, such as the function arrows that really do serve to make your code more readable and easier to understand. For me, the greatest feature ES6 introduced was string interpolations, allowing for strings to be constructured in a much more readable way and again serves to make code much more legible, while also potentially offering a performance boost when compared to vanilla JavaScript.

2. Format, Consistently

When reading someone else’s code it can be difficult at the best of times, whether that’s because of a lack of comments or purely because of the complex nature of the code, a cleanly formatted code base can make the entire process of understanding…

--

--