text
stringlengths
0
884
There's your preferences, and then there's what the project needs. So if it's an Elixir project, you need the Elixir plugins, and the formatter that is your standard for the project, and whatever databases and stuff that you need for testing, your testing frameworks, and things like that. So VS Code draws the line betw...
**Jerod Santo:** This is news to me. Why would you do this?
**Jessica Kerr:** Because this is for your convenience.
**Jerod Santo:** Because you want Curl.
**Jessica Kerr:** Yes, you want Curl, you want everything. In fact, I always do AppKit update, and I do not clean out the files.
**Jerod Santo:** Oh, you're living dangerous.
**Jessica Kerr:** Well, what am I using? Extra disk space on my computer. That's it. That's the only reason to clean out those files; it just saves people disk space. No, if I'm gonna push an image up to Docker Hub that other people are gonna download, then yeah, I'm gonna clean out those excess files. But locally, the...
**Jerod Santo:** Okay.
**Jessica Kerr:** And then VS Code, when I configure it, which is like Ctrl+Shift+P, add development container configuration, enter. If I already have a Dockerfile, it's gonna use that, or I can pick one - Node and Postgres - and it'll give me a Docker Compose and set it up. Then I can play with the Dockerfile, I can m...
Then, when VS Code starts up the container, it installs a VS Code server on it. Not in the image, only in the container. And then -- so you've got two copies of VS Code running. You've got one in the Docker container, with all the project-specific plugins installed, and that one's doing the file manipulation. And then ...
\[28:15\] So they've separated the interface with the project and the code and the deployment. You can install whatever development tools. I will, at some point, set up CI to do this, but right now I have the Heroku CLI installed on the Docker container, which I will still use for logs, and stuff... So everything that'...
And then on top of that, it means that because VS Code has the server concept, you can connect multiple hosts to the same server. This is where you get the remote pairing thing happening... Because with VS Code you can connect two hosts to it. That means wherever VS Code is running, with your project, the VS Code serve...
So I can be in "just follow what Avdi is looking at" mode for a while, and then Avdi is doing this thing, and I have a question about this other thing, and I can just switch out of "follow Avdi" mode (that's not an action, I just open a file), and I can go look at what I want, until he says something that I have to go ...
**Jerod Santo:** So you're both editing the same files.
**Adam Stacoviak:** When you say "see", do you really mean see-see, eyeballs-see, or keystrokes, cursor-see?
**Jessica Kerr:** Um... Both?
**Adam Stacoviak:** Both. Okay, interesting.
**Jerod Santo:** How do you see without your eyeballs, Adam?
**Adam Stacoviak:** Well, I mean, see what Avdi is seeing, so what he's looking at, or where his cursor is at.
**Jerod Santo:** Oh, his inputs...
**Jessica Kerr:** Yeah, where his cursor is at. It's the files he has open.
**Adam Stacoviak:** This is really advanced eye manipulation and following.
**Jerod Santo:** Eye-tracking.
**Jessica Kerr:** Oh, okay.
**Jerod Santo:** Not quite that good yet.
**Jessica Kerr:** Where his cursor is. But what files he has open, and the place in the files that he has open.
**Jerod Santo:** Is there a mode where you can just say "Track everything that person's doing"? Like when he opens a new file, will it open it on your machine?
**Jessica Kerr:** Yeah, yeah. That's the follow mode.
**Jerod Santo:** Okay. That's nice.
**Jessica Kerr:** You can just sit back and see what the other person opens, and see what they type.
**Jerod Santo:** Okay, so he's connected to the VS Code server...
**Jessica Kerr:** And then you can randomly hit a key and bother them...
**Jerod Santo:** \[laughs\] You just hold the Delete button down as he types...?
**Jessica Kerr:** \[laughs\] That would work, yeah.
**Jerod Santo:** So he's connected to the VS Code server in a Docker container, and you're connected to it in the container? Is that right?
**Jessica Kerr:** Yes. So the VS Code server is running in the container, which could be on my computer or on the cloud.
**Jerod Santo:** Okay.
**Jessica Kerr:** And then both of our VS Code clients on the host are connected to that same server.
**Jerod Santo:** Okay. So when you kick off a test run, will it run it in the container?
**Jessica Kerr:** Yes.
**Jerod Santo:** Will Avdi know that those tests are running? Can you clash that? How does that work?
**Jessica Kerr:** It will run in the container, so if he's following me, he'll see the terminal open and he'll see me run it. Now, for security, if that container is on my box, then by default he doesn't have write access into it... I have to give him permission to type in my terminal.
**Jerod Santo:** Yeah, it makes sense.
**Jessica Kerr:** I think you can do this without containers locally, but don't. Just do it in the container. But then you can both have permission to type in the terminal and run tests or whatever, and you can see what the other one is doing.
**Jerod Santo:** So we have a Docker container, a dev Docker container set up for Changelog.com. It's a Phoenix app, it's open source etc.
**Jessica Kerr:** Yaay!
**Jerod Santo:** \[32:05\] I never use it, because I just feel like there's like an unnecessary layer in between me and what I'm trying to work on, when I could just have -- we also can set it up directly on your machine, or you can use a Docker container. So do you find that's actually a problem in practice, or am I j...
**Jessica Kerr:** In open source it's definitely a thing. If you want someone to contribute to your project, or someone wants to try it...
**Jerod Santo:** Right.
**Jessica Kerr:** ...they don't need to make their computer look like yours. And the Docker container's huge.