You owe it to yourself to see this talk with David Platt, author of Why Software Sucks. David does a great job of pointing out anti-principles of software development and how to avoid them. Check it out.