Welcome to the CSC Q&A.
Get help and give help!
Write great code!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+19 votes

I currently have it set up so that my .java file is shared in drive and all pictures and sounds are in there as well.

But the problem I currently face is that I can't work on the code while my partner does as well or we have to be very specific about the parts we work on so we don't make overlapping changes.

Another problem is that once I upload my file to the most recent one, it could potentially overlap the recent version my partner worked on and lose progress.

Thanks!

asked in CSC211_Winter2018 by (8 points)

2 Answers

+11 votes

The best way to work on a joint project is generally to do "pair programming", where both people are sitting together at the same computer, talking through the code as they write it together.

There are some fancier tools (e.g. git) for remote collaboration on the same code (e.g., for teams of 3 or more people) but they are generally challenging to learn.

There are also some online IDEs that would allow simultaneous editing, but I don't know of any that support Graphics (DrawingPanel).

I suppose you and your partner could use something like DropBox, which syncs up files between two computers, and it would be less annoying that Google Drive, but you still couldn't both edit the same file at the same time.

Both Google Drive & DropBox provide backup versions of the files that get overwritten, so you could roll back changes if necessary.

In general, the problem of merging together source code that two people have written is not an easy one to solve.

answered by (10.4k points)
+1

Thank you!

+4 votes

yes, communication is key. Don't just do what you want to do, combine ideas and command and conquer.

answered by (8 points)
...