Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Copilot Beyond the Basics

devNetNoord
April 08, 2024
48

Copilot Beyond the Basics

Presentatie gegeven tijdens devCampNoord '24 in Kinepolis Groningen.

devNetNoord

April 08, 2024
Tweet

Transcript

  1. THIJS LIMMEN GITHUB COPILOT BEYOND THE BASICS 10 WAYS TO

    ELEVATE YOUR CODING YULIYA KHADASEVICH
  2. 2 GITHUB COPILOT LICENSES Business $19 per user / month

    Individual $10 per user / month * Requires GitHub Enterprise Cloud. ** Currently in preview. (available in 2024) Enterprise $39 per user / month
  3. 3 GITHUB COPILOT HOW DOES IT WORK GitHub-owned Azure tenant

    OpenAI LLM Suggestions Proxy service HTTPS Context v Authenticate v Sanitize (remove PII, secrets) v Sentiment analysis (abusive language, etc.) v Security filter v Sentiment analysis v Optional OSS Duplicate detection
  4. 4 GITHUB COPILOT GPT Generative Pre-trained Transformer (type of LLM)

    Developed by OpenAI GPT-4 Ø GitHub Copilot Chat Ø 10X Powerful Ø Accurate GPT-3.5 Ø GitHub Copilot Completions Ø Fast Ø Cheap(er)
  5. 2 10 WAYS • IMPROVE CODE @AGENTS FOR SCOPE @workspace

    Navigate code in workspace by finding relevant files or classes. @terminal Assistance with how to run terminal commands @vscode Assistance with commands and features in the VS Code editor itself.
  6. 2 10 WAYS • IMPROVE CODE /SLASH COMMANDS /explain Explain

    code /tests Create unit tests /fix Propose a fix for problems in the selected code /new Scaffold a new project /help Get help on Copilot chat
  7. 2 10 WAYS • IMPROVE CODE #HASHTAG COMMANDS #file Specific

    File #codebase Search through the open codebase #selection Selected Code #terminalSelection Selected Text in Terminal #editor “Visible“ Source Code #git Git context
  8. 3 10 WAYS • PROMPT ENGINEERING PROMPT ENGINEERING The process

    of crafting questions or instructions for AI, aimed at enhancing the quality of its responses
  9. 4 10 WAYS UNIT TESTING GitHub Copilot's design excels at

    handling smaller code segments to maintain full context Unit Tests Integration Tests More Isolation More Integration Acceptance Tests
  10. 5 10 WAYS • ACCEPTANCE TESTING Behaviour Driven Development Testing

    Tool for .NET applications Given, When, Then BDD Gherkin Language
  11. 6 10 WAYS TROUBLESHOOTING GitHub Copilot is useful for debugging

    and troubleshooting: • Exception explanation • Code analysis • Suggesting fixes • Code refactoring • Code documentation • Helps with automated testing
  12. 10 10 WAYS CHAIN OF THOUGHT Enables Complex Reasoning capabilities

    through Intermediate Reasoning steps to get Better Results on complex tasks
  13. X Do’s Ø Set clear goals Ø Provide detailed instructions

    Ø Refine through feedback Ø Use for creativity and exploration Ø Make flight hours by using the tool Don’ts Ø Rely blindly; verify Ø Expect instant perfection FINAL THOUGHTS FINAL THOUGHTS
  14. X GitHubNext: https://githubnext.com FINAL THOUGHTS USEFUL LINKS More prompt engineering

    techniques: https://www.promptingguide.ai Github samples and slides: https://github.com/ThijSlim/devnetnoord-github-copilot-beyond-basics