It's not as simple as merely doing something for 10,000 hours and then you magically become an expert.
The 10,000 hours-rules refers to the act of performing 10,000 hours of "deliberate practice" (or sometimes called "deep practice") in order to become an expert.
And that's something very different to simply code 10,000 hours in your day job. When googling for that term, you'll find plenty of studies and other resources. :)
If you are interested in this topic, I can recommend the book "The Talent Code" by Daniel Coyle - yes, the title is cheesy but it's a good book, I've read it in pretty much one sitting. A gentle and entertaining introduction into the whole field of how to become an expert.
"Pragmatic Thinking and Learning: Refactor Your Wetware" by Andy Hunt also spends an whole chapter on deliberate practice. It's a very good book, too.
EDIT: This blog post by Derek Sivers could be considered as an example of deliberate practice: http://sivers.org/kimo Just stumbled about it as a submission to HN, nice coincidence... :D