So, I recently had this issue come up at work, and I wanted to talk about it in a little more depth. Do frontend developers need to adhere to basic coding practices, and can frontend code have “code smells”? A “Code Smell”, as defined in Wikipedia: “…is any symptom in the source code of a program that possibly indicates a deeper problem.”
Being that I originally came from backend coding and I was taught some of the basic ‘best practices’ of programming, I already apply many of these best practices in my frontend code, to avoid these code smells. But, we all make mistakes, and are often rushed to meet deadlines, and sometimes these issues are introduced into our codebases, either by accident or by ignorance. We are all human, after all! And, that is also, coincidently, why we have code reviews!