From the course: Java Cheat Codes: Most Popular Functions
Using GitHub Codespaces - Java Tutorial
From the course: Java Cheat Codes: Most Popular Functions
Using GitHub Codespaces
- [Instructor] For this course, we will be using Coder Pad and Codespaces. For this video, I'm going to show you how to work with LinkedIn Learning courses using GitHub Codespaces. Codespaces is a code editor in the cloud with the full power of Visual Studio Code. It allows for real world hands-on practice that mirrors software development in the workplace. Using Codespaces, you have everything you need to get going without needing complex installations or build tools, one click and you're ready to go. To practice along with the course, you'll see an exercise files on GitHub Codespaces link under this course overview. Once you click on that button, if you're already logged in, you'll be directed to the repo for this course. If you're not logged in, you'll be prompted to log in or create a free GitHub account first. From this page, click on the Code button, then to the Codespaces tab. Next, we'll click on the plus icon to create a new Codespace on Main. The first time you open up a Codespace, it might take a few minutes to create the virtual machine. Once it's done, you'll enter the code editor environment. If you're familiar with Visual Studio Code, this is the special version of that editor running on GitHub servers. If you're familiar with Visual Studio Code, this is a special version of that editor running on GitHub servers. Your course can have one or more extensions pre-installed based on the course you've taken. Those can be found in the extensions panel. This course is organized as a single branch with different folders for each Java method challenge and solution. You'll see here I have getClassMethod Challenge and getClassMethod Solution. Next, I have hashCodeMethod Challenge and hashCodeMethod Solution. The challenge presents to you what is the question and prompt, and the solution is how I would solve it. You see that the folder names match the Java method name. Now, I will navigate back to the GitHub repo for one more tip. Forking lets you create your own copy of the repository on your accounts that you can keep any changes that you've made, even if you deleted the Codespace. To create your own fork, you can click on the fork button on your repository, so the dropdown button here and select Create a new fork. And this allows you to create your own copy of this repository onto your own account if you would like to. And then from there, you can start a new Codespace on that fork. That forked version would be exactly like the original version, but it will let you push your own changes. Don't worry if you forget to fork a repo and then try to push changes. Codespaces will also ask if you want to create a fork automatically. Now, let's get started.