How to set up irrigation hoses/valves

I’m about to planning the simplest design ever (two zones) but fail to figure it out.
Do you guys insert the valves in the beginning (in a box close to the faucet)
or
in the end of a line in their separate hoses? This option means that there are valves spread out across the garden.

I think i go with valves in the beginning in this case (?), but sometimes if i want to go to the other side of the garden it is inevitable that valves are here and there…?