Code Smells, written from a Frontend Development Perspective

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!

Continue reading “Code Smells, written from a Frontend Development Perspective”

Technical Considerations when Using SVG

I finally was given a project that gave me the requirements allowing me to use SVG. At first, I was excited! This is the first professional project I have been able to use SVG with, and I was itching to try it out. But, I tell ya, it’s been ‘interesting’ so far. When I first thought about using SVG in this project, I figured, hey, just use SVG for the icons in the site, instead of a sprite, easy! Well, not exactly THAT easy. There are some things to consider, OTHER than browser and device requirements.
Continue reading “Technical Considerations when Using SVG”