Combine this method with trying to solve a problem with your own ideas before even opening a book. This works especially well in some areas of programming, for example algorithms. After having done this, I can compare my own ideas with the ones presented in the book.