SlideShare a Scribd company logo
techupskills.com | techskillstransformations.com
© 2021 Brent C. Laster &
@techupskills
2
© 2023 Brent C. Laster &
GitHub Copilot
Presented by
Brent Laster
Tech Skills Transformations
© 2023 Brent C. Laster & Tech Skills Transformations LLC
All rights reserved
techupskills.com | techskillstransformations.com
© 2021 Brent C. Laster &
@techupskills
3
© 2023 Brent C. Laster &
About me • Founder, Tech Skills Transformations LLC
• R&D DevOps Director
• Global trainer – O'Reilly, NFJS, etc.
§ Git, GitHub, GitHub Actions
§ Jenkins, Gradle
§ Kubernetes, Tekton, Kustomize
§ Copilot, Codespaces
§ Etc.
• Author -
• O'Reilly "reports"
• Professional Git book
• Jenkins 2 – Up and Running book
• Learning GitHub Actions
• https://www.linkedin.com/in/brentlaster
• @BrentCLaster
• GitHub: brentlaster
© 2023 Brent C. Laster &
techupskills.com | techskillstransformations.com
© 2021 Brent C. Laster &
@techupskills
4
© 2023 Brent C. Laster &
Disclaimer...
• Opinions, typos, ramblings are mine
• Generated code is on Copilot J
techupskills.com | techskillstransformations.com
© 2021 Brent C. Laster &
@techupskills
6
© 2023 Brent C. Laster &
What is GitHub Copilot?
• Cloud-based Generative AI tool
• Turns natural language prompts into coding suggestions
• Works across dozens of languages
• Trained on billions of lines of code
• Functions similar to an AI pair programmer*
• Works on multiple IDEs
• Needs to be paired with Copilot Chat (in beta) for best
experience/benefit
techupskills.com | techskillstransformations.com
© 2021 Brent C. Laster &
@techupskills
7
© 2023 Brent C. Laster &
How Copilot can help
• Code suggestions for nearly any current
language
• Comment driven code creation
• Automatic test generation
• SQL generation (for queries, tables, indices,
stored procs)
• Regular expression generation
• Pattern/mappings generation
• Document code
• Explain code
• Fixing code
• Reviewing code
• Translating code
• Generate K8s manifests
• What is the API to do...
• More!
Source: https://github.com/orgs/community/discussions/49422
• Generate boilerplate code
• Less time reading docs
• Less time recalling syntax
• Learning a new language
• Reduce cognitive load
• Let programmers focus on the problem more
techupskills.com | techskillstransformations.com
© 2021 Brent C. Laster &
@techupskills
8
© 2023 Brent C. Laster &
Challenges
• Should have human
oversight/review
• Only as good as context/prompt
• Learning curve
• Sometimes needs "nudging"
• Hallucinations
• Date problem
• Length of response
• Always generative - not
deterministic
• Some data going across
techupskills.com | techskillstransformations.com
© 2021 Brent C. Laster &
@techupskills
9
© 2023 Brent C. Laster &
Copilot for Individuals vs for Business
techupskills.com | techskillstransformations.com
© 2021 Brent C. Laster &
@techupskills
10
© 2023 Brent C. Laster &
Signup individual #1
techupskills.com | techskillstransformations.com
© 2021 Brent C. Laster &
@techupskills
11
© 2023 Brent C. Laster &
Signup Individual #2
techupskills.com | techskillstransformations.com
© 2021 Brent C. Laster &
@techupskills
12
© 2023 Brent C. Laster &
Signup Individual #3
techupskills.com | techskillstransformations.com
© 2021 Brent C. Laster &
@techupskills
13
© 2023 Brent C. Laster &
Supported IDEs
• Jet Brains
• VS Code
• Visual Studio Code
• Neovim
• Also Codespaces
techupskills.com | techskillstransformations.com
© 2021 Brent C. Laster &
@techupskills
14
© 2023 Brent C. Laster &
GitHub Copilot Extensions
techupskills.com | techskillstransformations.com
© 2021 Brent C. Laster &
@techupskills
15
© 2023 Brent C. Laster &
Copilot shortcuts
techupskills.com | techskillstransformations.com
© 2021 Brent C. Laster &
@techupskills
16
© 2023 Brent C. Laster &
Chat commands
• "slash commands" for key functionality
• allow users to perform common tasks w/o having to retype
prompt every time
• not all available in every IDE - VS Code has superset
• In some cases, invoke functionality that wouldn't be available
via prompts alone
techupskills.com | techskillstransformations.com
© 2021 Brent C. Laster &
@techupskills
17
© 2023 Brent C. Laster &
Microsoft Copilot AI
• Copilot will have real-time access to content
and context in Microsoft Graph
§ Graph - API dev platform to connect
multiple services
Microsoft Graph
v Business Data
v User Data
(emails, files, chats, meetings,
calendars, contacts)
Microsoft 365 Apps
AI Safety
Large Language Model
v GPT-4
v Codex
v DALL-E
• Asking a question in app,
§ Copilot sends data to Graph to
analyze / make sense of query
§ Data sent to GPT-4
§ Amswer from ChatGPT sent back to
Graph for
» Grounding
» Security
» Compliance Checks
techupskills.com | techskillstransformations.com
© 2021 Brent C. Laster &
@techupskills
18
© 2023 Brent C. Laster &
How Copilot works (high-level)
Public Code
training
install
copilot
and
start
writing
code
gather context
• filename
• other open files
• comments
• code before and after cursor
• whether last was accepted
techupskills.com | techskillstransformations.com
© 2021 Brent C. Laster &
@techupskills
19
© 2023 Brent C. Laster &
How Copilot works (high-level)
Public Code
gather context
• filename
• other open files
• comments
• code before and after cursor
• whether last was accepted
techupskills.com | techskillstransformations.com
© 2021 Brent C. Laster &
@techupskills
20
© 2023 Brent C. Laster &
How Copilot works (high-level)
Public Code
prompt
techupskills.com | techskillstransformations.com
© 2021 Brent C. Laster &
@techupskills
21
© 2023 Brent C. Laster &
How Copilot works (high-level)
Public Code
suggestions
techupskills.com | techskillstransformations.com
© 2021 Brent C. Laster &
@techupskills
22
© 2023 Brent C. Laster &
How Copilot works (high-level)
Public Code
Copilot
chat
techupskills.com | techskillstransformations.com
© 2021 Brent C. Laster &
@techupskills
23
© 2023 Brent C. Laster &
Copilot X: Copilot for Docs
• Uses chat interface to provide users with AI-
generated responses to questions about doc
techupskills.com | techskillstransformations.com
© 2021 Brent C. Laster &
@techupskills
24
© 2023 Brent C. Laster &
Copilot X: GitHub Copilot CLI
• Use Copilot to compose commands, figure out
arguments, flags, etc.
techupskills.com | techskillstransformations.com
© 2021 Brent C. Laster &
@techupskills
25
© 2023 Brent C. Laster &
Copilot X : Copilot for PRs - markers
• Available for tech preview now
• copilot: all - showcases all the
different kinds of content at once
• copilot: summary - expands to a 1
paragraph summary of changes in
the PR
• copilot: walkthrough - expands to
a detailed list of changes, including
links to relevant code
• copilot:poem - expands to a poem
about changes in the pull request
Source: https://githubnext.com/projects/copilot-for-pull-requests
techupskills.com | techskillstransformations.com
© 2021 Brent C. Laster &
@techupskills
26
© 2023 Brent C. Laster &
Copilot X for PRs : Under consideration
Source: https://githubnext.com/projects/copilot-for-pull-requests
techupskills.com | techskillstransformations.com
© 2021 Brent C. Laster &
@techupskills
27
© 2023 Brent C. Laster &
Demos!
© 2023 Brent C. Laster & Tech Skills Transformations LLC
All rights reserved
techupskills.com | techskillstransformations.com
© 2021 Brent C. Laster &
@techupskills
28
© 2023 Brent C. Laster &
That’s all - thanks!
techskillstransformations.com
getskillsnow.com

More Related Content

Introduction to GitHub Copilot

  • 1. techupskills.com | techskillstransformations.com © 2021 Brent C. Laster & @techupskills 2 © 2023 Brent C. Laster & GitHub Copilot Presented by Brent Laster Tech Skills Transformations © 2023 Brent C. Laster & Tech Skills Transformations LLC All rights reserved
  • 2. techupskills.com | techskillstransformations.com © 2021 Brent C. Laster & @techupskills 3 © 2023 Brent C. Laster & About me • Founder, Tech Skills Transformations LLC • R&D DevOps Director • Global trainer – O'Reilly, NFJS, etc. § Git, GitHub, GitHub Actions § Jenkins, Gradle § Kubernetes, Tekton, Kustomize § Copilot, Codespaces § Etc. • Author - • O'Reilly "reports" • Professional Git book • Jenkins 2 – Up and Running book • Learning GitHub Actions • https://www.linkedin.com/in/brentlaster • @BrentCLaster • GitHub: brentlaster © 2023 Brent C. Laster &
  • 3. techupskills.com | techskillstransformations.com © 2021 Brent C. Laster & @techupskills 4 © 2023 Brent C. Laster & Disclaimer... • Opinions, typos, ramblings are mine • Generated code is on Copilot J
  • 4. techupskills.com | techskillstransformations.com © 2021 Brent C. Laster & @techupskills 6 © 2023 Brent C. Laster & What is GitHub Copilot? • Cloud-based Generative AI tool • Turns natural language prompts into coding suggestions • Works across dozens of languages • Trained on billions of lines of code • Functions similar to an AI pair programmer* • Works on multiple IDEs • Needs to be paired with Copilot Chat (in beta) for best experience/benefit
  • 5. techupskills.com | techskillstransformations.com © 2021 Brent C. Laster & @techupskills 7 © 2023 Brent C. Laster & How Copilot can help • Code suggestions for nearly any current language • Comment driven code creation • Automatic test generation • SQL generation (for queries, tables, indices, stored procs) • Regular expression generation • Pattern/mappings generation • Document code • Explain code • Fixing code • Reviewing code • Translating code • Generate K8s manifests • What is the API to do... • More! Source: https://github.com/orgs/community/discussions/49422 • Generate boilerplate code • Less time reading docs • Less time recalling syntax • Learning a new language • Reduce cognitive load • Let programmers focus on the problem more
  • 6. techupskills.com | techskillstransformations.com © 2021 Brent C. Laster & @techupskills 8 © 2023 Brent C. Laster & Challenges • Should have human oversight/review • Only as good as context/prompt • Learning curve • Sometimes needs "nudging" • Hallucinations • Date problem • Length of response • Always generative - not deterministic • Some data going across
  • 7. techupskills.com | techskillstransformations.com © 2021 Brent C. Laster & @techupskills 9 © 2023 Brent C. Laster & Copilot for Individuals vs for Business
  • 8. techupskills.com | techskillstransformations.com © 2021 Brent C. Laster & @techupskills 10 © 2023 Brent C. Laster & Signup individual #1
  • 9. techupskills.com | techskillstransformations.com © 2021 Brent C. Laster & @techupskills 11 © 2023 Brent C. Laster & Signup Individual #2
  • 10. techupskills.com | techskillstransformations.com © 2021 Brent C. Laster & @techupskills 12 © 2023 Brent C. Laster & Signup Individual #3
  • 11. techupskills.com | techskillstransformations.com © 2021 Brent C. Laster & @techupskills 13 © 2023 Brent C. Laster & Supported IDEs • Jet Brains • VS Code • Visual Studio Code • Neovim • Also Codespaces
  • 12. techupskills.com | techskillstransformations.com © 2021 Brent C. Laster & @techupskills 14 © 2023 Brent C. Laster & GitHub Copilot Extensions
  • 13. techupskills.com | techskillstransformations.com © 2021 Brent C. Laster & @techupskills 15 © 2023 Brent C. Laster & Copilot shortcuts
  • 14. techupskills.com | techskillstransformations.com © 2021 Brent C. Laster & @techupskills 16 © 2023 Brent C. Laster & Chat commands • "slash commands" for key functionality • allow users to perform common tasks w/o having to retype prompt every time • not all available in every IDE - VS Code has superset • In some cases, invoke functionality that wouldn't be available via prompts alone
  • 15. techupskills.com | techskillstransformations.com © 2021 Brent C. Laster & @techupskills 17 © 2023 Brent C. Laster & Microsoft Copilot AI • Copilot will have real-time access to content and context in Microsoft Graph § Graph - API dev platform to connect multiple services Microsoft Graph v Business Data v User Data (emails, files, chats, meetings, calendars, contacts) Microsoft 365 Apps AI Safety Large Language Model v GPT-4 v Codex v DALL-E • Asking a question in app, § Copilot sends data to Graph to analyze / make sense of query § Data sent to GPT-4 § Amswer from ChatGPT sent back to Graph for » Grounding » Security » Compliance Checks
  • 16. techupskills.com | techskillstransformations.com © 2021 Brent C. Laster & @techupskills 18 © 2023 Brent C. Laster & How Copilot works (high-level) Public Code training install copilot and start writing code gather context • filename • other open files • comments • code before and after cursor • whether last was accepted
  • 17. techupskills.com | techskillstransformations.com © 2021 Brent C. Laster & @techupskills 19 © 2023 Brent C. Laster & How Copilot works (high-level) Public Code gather context • filename • other open files • comments • code before and after cursor • whether last was accepted
  • 18. techupskills.com | techskillstransformations.com © 2021 Brent C. Laster & @techupskills 20 © 2023 Brent C. Laster & How Copilot works (high-level) Public Code prompt
  • 19. techupskills.com | techskillstransformations.com © 2021 Brent C. Laster & @techupskills 21 © 2023 Brent C. Laster & How Copilot works (high-level) Public Code suggestions
  • 20. techupskills.com | techskillstransformations.com © 2021 Brent C. Laster & @techupskills 22 © 2023 Brent C. Laster & How Copilot works (high-level) Public Code Copilot chat
  • 21. techupskills.com | techskillstransformations.com © 2021 Brent C. Laster & @techupskills 23 © 2023 Brent C. Laster & Copilot X: Copilot for Docs • Uses chat interface to provide users with AI- generated responses to questions about doc
  • 22. techupskills.com | techskillstransformations.com © 2021 Brent C. Laster & @techupskills 24 © 2023 Brent C. Laster & Copilot X: GitHub Copilot CLI • Use Copilot to compose commands, figure out arguments, flags, etc.
  • 23. techupskills.com | techskillstransformations.com © 2021 Brent C. Laster & @techupskills 25 © 2023 Brent C. Laster & Copilot X : Copilot for PRs - markers • Available for tech preview now • copilot: all - showcases all the different kinds of content at once • copilot: summary - expands to a 1 paragraph summary of changes in the PR • copilot: walkthrough - expands to a detailed list of changes, including links to relevant code • copilot:poem - expands to a poem about changes in the pull request Source: https://githubnext.com/projects/copilot-for-pull-requests
  • 24. techupskills.com | techskillstransformations.com © 2021 Brent C. Laster & @techupskills 26 © 2023 Brent C. Laster & Copilot X for PRs : Under consideration Source: https://githubnext.com/projects/copilot-for-pull-requests
  • 25. techupskills.com | techskillstransformations.com © 2021 Brent C. Laster & @techupskills 27 © 2023 Brent C. Laster & Demos! © 2023 Brent C. Laster & Tech Skills Transformations LLC All rights reserved
  • 26. techupskills.com | techskillstransformations.com © 2021 Brent C. Laster & @techupskills 28 © 2023 Brent C. Laster & That’s all - thanks! techskillstransformations.com getskillsnow.com