liveBook · Manning

GitHub Copilot

As explained in Introduction to Generative AI, Second Edition

GitHub Copilot is an AI programming assistant that generates and suggests source code as developers type.

GitHub Copilot is an artificial intelligence programming assistant that suggests source code as developers type. Marketed as an AI pair programmer, it complements human judgment rather than replacing it. section 1.7 section 6.6

Based on OpenAI’s Codex model, Copilot generates autocomplete-style suggestions, fills in repetitive code, offers alternatives, and turns comments or docstrings into attempted implementations. Code’s structured patterns can make these tasks relatively suitable for language models. section 1.7 section 6.6

Common uses include:

  • Speeding up routine development and making a reasonable first attempt at a function, so developers can iterate more quickly. section 6.6
  • Supporting testing, coding-interview preparation, and developers who are not native English speakers. section 1.7
  • Working across more than a dozen programming languages through a model fine-tuned for coding tasks. section 1.7

A practical interaction

A developer writes a natural-language comment describing what a function should do. Copilot attempts to implement it, but the developer must review the result, especially for complex functions. Security, transparency, licensing, and incorrect suggestions remain important concerns. section 1.7 section 6.6

How Introduction to Generative AI, Second Edition covers it

How deep it goes
Explains the assistant’s workflow and uses, but stops short of implementation details, evaluation procedures, or autonomous software development.
Examples
Uses autocomplete, repetitive-code completion, alternative suggestions, comment-to-code conversion, testing, and coding-interview preparation.
What you can do after
Apply it through developer tools to draft code faster while reviewing suggestions for correctness, security, transparency, and licensing concerns.
How it connects
Connects code generation with large language models, Codex, pair programming, code completion, testing, security, transparency, and licensing.

Also explained in

Compare how 5 books explain GitHub Copilot →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Introduction to Generative AI, Second Edition. The section links point to the parts of the book it draws on.