Red Lines Everwhere!

08 Feb 2018

Before ICS 314, my first software development class, I used an IDE called Ecllipse. It was the first IDE I have ever used and it was in this IDE that I had my first experience coding. My first ICS professor made the whole class use Ecllipse because it can check your code just as spell check can check for spelling and grammar errors. I thought that this was such a cool concept. The Ecllipse interface and overall checking it did of my code, saved me so much time to debug what was going wrong with my programs.

The day came in ICS 314 that we were instructed to use a new IDE called IntelliJ, and with IntelliJ we would be using something I have never heard of called ESLint. Without ESLint enabled IntelliJ felt a lot like Ecllipse. It was a straightforward IDE with its own system checking and debugging, I could write code just as I did in Ecllipse and be just fine. But the power of using IntelliJ came with the option to use ESLint also. ESLint as I found out analyses your code for more than just errors, but checks the style in white you are writing your code.

The first time I enabled ESLint I freaked out, because all of a sudden once I enable ESLint I am getting red lines everywhere! Even for code that runs and executes as its suppose to without throwing errors. I didn’t know what any of the red lines were telling me. I thought that I broke everything or that I was not using ESLint properly. But once I took the time to breath and look at exactly what ESLint was trying to tell me I understood the bigger picture.

Using ESLint is really helping me to change the way I write code. It’s almost like having an English teacher check your grammar and spelling before you turn in your paper. ESLint It lets me know if what I am doing follows a specific code writing style and if it’s acceptable. What I really enjoy is all the red lines that use to freak me out are actually getting to be fun to get rid of, because once you do you get a green check mark. That really becomes the goal when I am formatting my code now. ESLint really challenges you to look at every keystroke you make and in turn is making us all better programmers!