Geeks With Blogs

@neh123us
  • neh123us T4 sould be your outsourcing strategy https://t.co/1ZceCUKWKE T4 - The Insource Code Monkey about 505 days ago
  • neh123us Had a need for Dynamic Views in MVC today. Wanted to use a Partial view on two different views with different ViewModels about 553 days ago

News Google

Nick Harrison Blog<Nick>.Next()

Phil Factor blogged about his quest for SQL Code Smells. He wants to start some discussions about coding standards and best / worst practices.

This is sure to generate a lot of discussion. In fact it already has.

Follow the #sqlcodesmells hashtag and you can follow the discussion. I have tweeted several sql code smells of my own.

There are also some interesting comments on the blog. There is a debate brewing there about the futility of defining standards, art vs. science arguments, etc. One comment even goes so far as "On many a project I have seen coders conform to the arbitrary rule set only to write poor, hard to maintain code."

This often happens, but it does not diminish the importance of such rules. You also can't legislate morality, but we still try.

But such comments avoid the whole point of Code Smells. Code smells are not meant to be dogmatic. They are guidelines meant to point out that there might be something worth investigating.

Code Smells should not be viewed as "arbitrary rules".

Look back over the original Code Smells from Kent Beck and Martin Fowler. They all focus on taking out the antagonism and interjecting a sense of humor.

I have always found that this makes code reviews just a little easier.

I urge everyone to check out Phil's site, contribute your own smells. Approach the whole process with a sense of humor and have fun with it.

Add your comments to Phil's blog or tweet with the #sqlcodesmells hashtag. I would love to hear everyone's thoughts.

What are your most annoying SQL practices? Biggest Pet peeves? Worst practices?

Posted on Monday, November 22, 2010 11:10 PM SQL Smells | Back to top

Related Posts on Geeks With Blogs Matching Categories

Comments on this post: SQL Smells on Simple Talk

comments powered by Disqus

Copyright © Nick Harrison | Powered by: GeeksWithBlogs.net | Join free