Always try to get the sun behind you! When you shoot the sun in front of you the thing you are shooting is going to go very dark! So the best thing is always to get the sun behind you... If the sun isn't too bright (sun set etc.) then you can shoot the sun in front of you.
Hope this helps!