What's wrong with your JavaScript Pt 1

As a senior level developer at my job, I end up having to do a lot of code reviews. I am also fairly active on Stack Overflow and their Code Review site. So this means I see a lot of JavaScript and jQuery. A lot. And what I see is…

Improving an accordion script - Part 3

In this final post on improving a basic accordion script, we will be taking our final code from part two, and updating it to a be a jquery plugin. You can check out part one if you want to start at the beginning to see how we got here. So,…

Improving an accordion script - Part 2

In part one of this, I took and existing javascript file and did some quick updates and optimizations to improve the overall performance of the script. We reduced the number of selectors and removed the animation functions and put those into the CSS. My teammate and I thought it would…

Improving an accordion script - Part 1

I was sitting in my office at work a while back, and a co-worker came by and asked me to take a look at some of their jQuery code. He had written some fairly simple code to create an accordion effect for a FAQ (Frequently Asked Questions to those who…

What's that smell? That guy's code

Today I was going through my usual news feeds and was linked to an article about creating tabs that load in content via AJAX. I clicked the link and started reading the article and could not believe what I saw. This person was putting some of the least thought-out code…