Neither right nor wrong

Neither approach is right or wrong.

Either approach or a combination of the two approaches is totally valid. 

The choice between them is simply a matter of preference on the part of the programmer.