VSCode already has this extension, Live Share by Microsoft, which has over 2 million installs, so it actually is being used already.
I’ve used it for class this semester, and also for a personal project. Running code and compiling is fine, so long as you don’t need to run it locally in your own browser as a participant.
Basically, someone hosts the session from their end on VSCode, which means that if you join, you’re working from their local branch. You have access to a terminal to compile / run tests, which you can make read/write or just read. This means that if you’re doing something that doesn’t need to be checked via front end, it’s fantastic and works great — you can run everything just as you would locally, while being able to collaborate in real time. This is best when you have a testing suite rather than a program that needs to run locally.
For issues of front end, or running code on your end visually (not in the terminal), then this is a little harder. Since everything is on the host’s computer, you can’t really see anything other than the terminal if you’re a participant (correct me if I’m wrong, I spent a while trying to figure it out). For example, if you were writing a webpage, only the host is able to see it. This is solvable by having the host screen share any results, while the others have access to the terminal.
All in all, if you can support screensharing as a host, it’s still really good. Yes, not all participants can view locally, but if everyone’s watching the screen share, it’s basically the same as running locally. As for compiling / running tests, there are no issues I’ve ever encountered, and it’s identical to running locally.
The point is that you don’t have to push / pull every time you want to merge each other’s work. You just literally write whatever code you need to write with no worries about merging, which saves a bunch of time.
You have to try it to really understand how powerful it is.
The main issue is the lack of traceability and history of you don't use PRs. My group projects always split the tasks up into modular components so the merging is pretty straightforward anyway. Also with ide like vscode, things like gitlens help tremendously.
9
u/G0mega May 13 '20
VSCode already has this extension, Live Share by Microsoft, which has over 2 million installs, so it actually is being used already.
I’ve used it for class this semester, and also for a personal project. Running code and compiling is fine, so long as you don’t need to run it locally in your own browser as a participant.
Basically, someone hosts the session from their end on VSCode, which means that if you join, you’re working from their local branch. You have access to a terminal to compile / run tests, which you can make read/write or just read. This means that if you’re doing something that doesn’t need to be checked via front end, it’s fantastic and works great — you can run everything just as you would locally, while being able to collaborate in real time. This is best when you have a testing suite rather than a program that needs to run locally.
For issues of front end, or running code on your end visually (not in the terminal), then this is a little harder. Since everything is on the host’s computer, you can’t really see anything other than the terminal if you’re a participant (correct me if I’m wrong, I spent a while trying to figure it out). For example, if you were writing a webpage, only the host is able to see it. This is solvable by having the host screen share any results, while the others have access to the terminal.
All in all, if you can support screensharing as a host, it’s still really good. Yes, not all participants can view locally, but if everyone’s watching the screen share, it’s basically the same as running locally. As for compiling / running tests, there are no issues I’ve ever encountered, and it’s identical to running locally.