There's nothing wrong with having documentation and specs at the ready as you program. That's how you learn, and if you aren't learning 24/7 as you program, you're not writing the best code you can write.