CHAPTER 5Learning a New Programming Language
In this chapter, we will explore how you can interact with Copilot to learn a new programming language. With Copilot, you can quickly get answers to questions about languages, gain bespoke insights based on your previous knowledge, get examples, run tests, and ask questions as you learn, all within the integrated development environment (IDE)!
The chapter will be using VS Code to showcase how to learn with GitHub Copilot and will be using Copilot Chat extensively. It is important to note that Copilot Chat is not available in all IDEs. In addition, the Chat experience is slightly different from one IDE to another. Although there are differences, most of the information shared will be transferrable to other IDEs.
- Introducing Language Education with Copilot
- Setting Up Your Development Environment
- Learning the Basics
- Creating a Console Application
- Explaining Code with Copilot
- Adding New Code
- Learning to Test
Introducing Language Education with Copilot
According to the TIOBE Index, an indicator of the popularity of programming languages, there are 50 programming languages that have a popularity index greater than 2% [1]. The TIOBE Index has been around for decades. It uses references from Google, Wikipedia, and more to review the trends in our industry.
In recent years, C# (pronounced “C Sharp”) has gained popularity. In 2023, TIOBE awarded C# with its “Programming Language Hall of Fame” award. This award is given to the programming ...
Get Programming with GitHub Copilot now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.