Are you asking about efficiency in your algorithms or choice of syntax? Do you want to write code the "right" way with respect to common idioms, brevity, easy maintainability? I found myself writing better code by just writing more and more code and comparing it to code written here and in the books.