Sharing Code with peer developers
There are only 2 developers. Is the 2nd method recommended:
- Developer maintains his/her own Repository Work Space & deliver to the Stream; 2nd developer Accepts the Code from the Stream.
- One Respository Workspace to be shared by 2 developers; both developers check-in code to the same repository workspace. Code change delivered to Stream once each Sprint.
2nd method is easy to understand & simple to use. though 2nd option would not be viable for more than 2 developers.
Accepted answer
You share a stream. You do not share a repository workspace as it is not supported and will cause a lot of problems.
There is nothing easy about essentially working with two people in the same directory. If you want to use the advantage of a small team, then accept and deliver often and let the others know about it.
Comments
2 other answers
As Ralph correctly points out, two different users should never work in a single repository workspace. There are no exceptions to this rule.
If you want to share changes just between two developers (and not between other team members), then you can add the other developer's repository workspace as a flow target of your repository workspace, and "accept" changes directly from the other repository workspace into your workspace. But as soon as you have more than two developers sharing work, you should introduce a stream for that sharing.
Comments
In another scenarios of code maintenance project in agile mode; There are 4 developers editing the same java package parallely. often they will edit the same file also; editing same line is rare. Though stand up call makes clarity on who is going to edit what, there will still be merge effort. one developer Delivers and rest 3 Accepts code on daily basis. hence merge effort is required for all 3 developers. All 3 developers will merge into the same code. Instead, do you recommend one developer to merge the code from all daily morning & rest of the 3 developers will Accept code after this merge happens.