- This module teaches you how to identify and consolidate duplicate logic in your codebase using GitHub Copilot Agent. You learn best practices for refactoring duplicate code and improving code quality.
By the end of this module, you're able to:
- Explain the negative effects of redundant/duplicate code and the benefits of consolidation.
- Describe common refactoring patterns that are used to consolidate redundant/duplicate code.
- Use GitHub Copilot’s Ask mode to explain a codebase and identify redundant/duplicate code.
- Use GitHub Copilot’s Agent mode to consolidate redundant/duplicate code.
- Learn how to identify large multi-purpose functions and how to refactor large functions into smaller helper classes and static methods by using GitHub Copilot in Visual Studio Code.
By the end of this module, you're able to:
- Describe the problems introduced by large, multi-purpose functions and the benefits provided by small, single-purpose functions.
- Describe the tools, techniques, and processes used to refactor large functions into smaller functions.
- Use GitHub Copilot’s Ask mode to explain a codebase and identify opportunities to convert large functions into smaller, single-purpose functions.
- Use GitHub Copilot’s Agent mode to refactor large functions into smaller helper functions and static methods.
- This module covers the use of GitHub Copilot's Agent mode to simplify complex conditional statements in code. It provides practical examples and exercises to enhance coding efficiency.
By the end of this module, you're able to:
- Describe how complex conditional evolve over time and the problems associated with complex and deeply nested conditional code.
- Describe the tools, techniques, and processes used to refactor complex and deeply nested conditional code.
- Use GitHub Copilot’s Ask mode to explain a codebase and identify opportunities to simplify complex and deeply nested conditional code.
- Use GitHub Copilot’s Agent mode to refactor complex and deeply nested conditional code.
- This module explores using GitHub Copilot Chat to develop improvements for an existing codebase. Exercises provide practical experience implementing GitHub Copilot suggestions that improve code quality, reliability, performance, and security.
By the end of this module, you're able to:
Develop prompts/questions for GitHub Copilot Chat that help you to improve the code in your existing code projects.
Implement code update suggestions from GitHub Copilot Chat that improve existing code in the areas of code quality, reliability, performance, and security.
- This module covers how to identify and remediate GitHub issues using GitHub Copilot's Ask and Agent modes. The training focuses on security vulnerabilities such as SQL injection, encryption, logging, and path traversal problems.
By the end of this module, you're able to:
- Describe several common categories of code security vulnerabilities and the associated GitHub issues.
- Describe the lifecycle of a GitHub issue from creation to resolution.
- Use GitHub Copilot's Ask mode to analyze the code vulnerabilities associated with a GitHub issue and suggest potential fixes.
- Use GitHub Copilot's Agent mode to fix code vulnerabilities and resolve GitHub issues.
- This module covers how to identify and remediate GitHub Secret Scanning alerts using GitHub Copilot's Ask and Agent modes. The training focuses on detecting hard-coded secrets in source code and implementing secure configuration patterns to replace them.
By the end of this module, you're able to:
- Identify the tools that GitHub provides for security and code quality.
- Explain the security risks of hard-coded secrets in source code.
- Configure and use GitHub Secret Scanning and push protection.
- Navigate and manage secret scanning alerts in GitHub repositories.
- Analyze security alerts using GitHub Copilot's Ask mode.
- Remediate hard-coded secrets using GitHub Copilot's Agent mode.
Overview
Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Syllabus
- Consolidate duplicate logic using GitHub Copilot Agent
- Introduction
- Examine the negative effects of code duplication
- Examine code extraction and refactoring techniques
- Identify duplicate code using GitHub Copilot
- Refactor duplicate code using GitHub Copilot Agent
- Exercise - Consolidate duplicate code using GitHub Copilot
- Module assessment
- Summary
- Refactor large functions using GitHub Copilot Agent
- Introduction
- Examine the impact of large multipurpose functions
- Examine the characteristics of large functions
- Identify and evaluate large functions using GitHub Copilot's Ask mode
- Refactor large functions using GitHub Copilot's Agent mode
- Test refactored code
- Exercise - Refactor large functions using GitHub Copilot
- Module assessment
- Summary
- Simplify complex conditionals using GitHub Copilot Agent
- Introduction
- Review the impact of complex conditionals
- Examine the characteristics of complex conditionals
- Examine the techniques used to simplify complex conditionals
- Analyze complex logic using GitHub Copilot's Ask mode
- Refactor complex conditionals using GitHub Copilot's Agent mode
- Exercise - Simplify complex conditionals using GitHub Copilot
- Module assessment
- Summary
- Implement code improvements using GitHub Copilot tools
- Introduction
- Review GitHub Copilot's code improvement features
- Examine GitHub Copilot's quick fix options
- Review code refactoring scenarios and GitHub Copilot best practices
- Refactor code using GitHub Copilot Inline Chat
- Refactor code using GitHub Copilot Chat modes
- Examine the GitHub Copilot code review features
- Exercise - Refactor existing code using GitHub Copilot
- Module assessment
- Summary
- Resolve GitHub issues using GitHub Copilot Agent
- Introduction
- Get started with GitHub issues
- Examine common code security issues
- Prevent issues using GitHub Copilot
- Analyze issues using GitHub Copilot's Ask mode
- Remediate issues using GitHub Copilot's Agent mode
- Exercise - Resolve GitHub issues using GitHub Copilot
- Module assessment
- Summary
- Resolve GitHub Secret Scanning alerts using GitHub Copilot Agent
- Introduction
- Examine GitHub's security and code quality tools
- Examine code secrets
- Examine GitHub Secret Scanning
- Examine GitHub Push Protection
- Manage GitHub Security Alerts
- Analyze GitHub Security Alerts using GitHub Copilot's Ask mode
- Resolve GitHub Security Alerts using GitHub Copilot's Agent mode
- Exercise - Resolve GitHub Security Alerts
- Module assessment
- Summary