What I have to say has already been stated, but looking at other teams code can be extraordinary helpful, you may learn how to do stuff you didn't know was possible, you may learn some shortcuts or other tricks as well. Additionally if you look at a more experienced programmers code you will find that it is more optimized, if you make an attempt to do everything in a timely and efficient manner you will have fewer bugs to find in the future.
As it has been said; take the programming in a step-by-step basis. it is near impossible to program the robot all in one go (believe me I've tried, and failed every time.) Work on each sub system, then pull everything together as you gain the knowledge to do it efficiently.
Lastly, don't be afraid or frustrated, try something new, so long as the robot doesn't destroy itself in the process there is no harm in experimenting. If you have to rewrite code in the process so what. It's just some typing.
Good luck, and have fun with the hell that can sometimes be programming.
