Skip to Content
Programming with GitHub Copilot
book

Programming with GitHub Copilot

by Kurt Dowswell
August 2024
Intermediate to advanced
336 pages
7h 26m
English
Wiley
Audiobook available
Content preview from Programming with GitHub Copilot

CHAPTER 12Universal Conversion with GitHub Copilot

In this chapter, you will discover the compelling use of GitHub Copilot for universal conversion in software development. Copilot can assist in translating languages, frameworks, libraries, databases, or CI/CD pipelines.

With Copilot by your side, you are empowered to transition between technologies with incredible speed. This opportunity to use the technologies that you require with speed and accuracy is a game-changing capability.

Let's jump to the examples of how Copilot can supercharge your development workflow when translation is required.

  • Translating Natural Language to Programming Languages
  • Converting JavaScript Components
  • Simplifying CSS Styles
  • Enhancing Non-Typed Languages with Types
  • Transitioning Between Frameworks and Libraries
  • Converting Object-Oriented Languages
  • Migrating Databases
  • Transitioning CI/CD Platforms
  • Modernizing Legacy Systems

Translating Natural Language to Programming Languages

Copilot, with its ability to understand a vast number of natural languages and programming languages, can facilitate the creation of software solutions simply by describing the need you have in natural languages.

Here you will see how Copilot can create a function with a requirement in English using the Gherkin syntax (see Figure 12.1).

Here is a top-level comment:

/**
Feature: Two Sum
  As a user
  I want to find two numbers in an array that add up to a specific target number
  So that I can solve my problem
 
 Scenario: ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Use Github Copilot for Prompt Engineering

Use Github Copilot for Prompt Engineering

Rizel Scarlett

Publisher Resources

ISBN: 9781394263370