However, in the first case you learned something which probably is useful when you want to change said app in any way or make another project...
For me it's 50-50 reading other people's code and getting a feel for the patterns and actually writing the code.