Recently I met the "pair programming" term, which refers to two developers working together in the same task.
There are plenty ways for this to happen. The most common though is that a developer writes code, whereas the other shares ideas.
The more you pair programming, the more familiar with it you become
So what is pair programming all about? What do we achieve?
In case there are two different ideas for the same task, remember that code wins arguments. So, take your time and develop your idea. Then give time to your peer to develop his/her idea. In case both of ideas are good enough don't hesitate to accept your peer's idea.