Reading other's code is the best way to learn tricks and new ideas, but i always suggest writting your own code, as a programmer of a few languages i truely enjoy when i solve a problem or task i am facing in a more efficient way, or with benefits not commonly used.
For a beginner i would recomend using pre-built scripts to start, but try modifying them to see what they do.
