This repository contains examples and exercises for the AI pair-programming workshop focusing on GitHub Copilot best practices across different technology stacks.
Choose your preferred technology stack:
Location: /typescript/
Prerequisites: Node.js 18+, VS Code with Copilot extension
Focus: Modern TypeScript with strict typing, async/await patterns, comprehensive error handling
cd typescript
npm install
npm run testLocation: /dotnet/
Prerequisites: .NET 8 SDK, VS Code or Visual Studio with Copilot extension
Focus: C# with nullable reference types, async patterns, dependency injection, minimal APIs
cd dotnet
dotnet restore
dotnet testai-workshop/
├── README.md # This file
├── WORKSHOP_GUIDE.md # General workshop instructions
├── nodejs/ # TypeScript track
│ ├── README.md
│ ├── package.json
│ ├── src/
│ │ ├── examples/
│ │ ├── exercises/
│ │ └── types/
│ └── __tests__/
├── dotnet/ # .NET track
│ ├── README.md
│ ├── AIPairProgramming.sln
│ ├── src/
│ │ ├── Examples/
│ │ ├── Exercises/
│ │ └── Types/
│ └── tests/
└── shared/ # Cross-language resources
├── STYLE_GUIDES/
├── API_SCHEMAS/
└── WORKSHOP_SLIDES/
All tracks cover the same core AI pair-programming concepts:
- FCE Pattern: Function-Constraints-Examples
- Edge-Case Booster: Explicit failure mode handling
- Test-First Specification: Using tests as requirements
- Inline Comments: Strategic placement for maximum AI context
- Multi-File Context: Using open tabs and workspace symbols
- Documentation-Driven Development: Using schemas and style guides
- R.E.D. Checklist: Read-Execute-Diff verification process
- Security Review: Identifying AI-generated vulnerabilities
- Performance Validation: Ensuring efficient implementations
- Code Review Practices: AI-specific review criteria
- Standards Development: Creating team prompting guidelines
- Measurement: Tracking productivity and quality improvements
- Choose your track and navigate to the appropriate directory
- Follow track-specific setup instructions in the track's README
- Install Copilot extension for your IDE
- Start with Exercise 1 to practice FCE patterns
- Work through progressive exercises building real features
Each track follows the same learning progression:
- Basic Prompting (20 min) - FCE pattern practice
- Context Strategies (25 min) - Multi-file techniques
- Test-First Development (20 min) - Using tests as specifications
- Security Verification (15 min) - R.E.D. checklist application
- Advanced Techniques (25 min) - Complex refactoring scenarios
- Prompt Iteration (20 min) - Improving failed suggestions
While core concepts remain the same, each track demonstrates:
- Strict typing for better AI inference
- Modern async/await patterns
- Comprehensive error handling with Result types
- Functional programming techniques
- Nullable reference types for safety
- Dependency injection patterns
- Minimal API development
- Entity Framework integration
- C# 12 features (primary constructors, collection expressions)
The /shared/ directory contains:
- Style Guides: Language-specific coding standards
- API Schemas: Business domain definitions
- Workshop Materials: Presentation slides and reference docs
Track your improvement across any language:
- ⚡ Speed: Features implemented per sprint
- 🎯 Quality: Reduced code review iterations
- 🧠 Learning: New patterns and libraries adopted
- 👥 Team: Faster onboarding and knowledge sharing
To add a new language track:
- Create directory:
/your-language/ - Follow the established pattern with examples and exercises
- Adapt concepts to language-specific patterns
- Update this root README
- Track-specific issues: Check individual track READMEs
- General concepts: Review
WORKSHOP_GUIDE.md - Copilot setup: Refer to GitHub Copilot documentation
Ready to become an AI pair-programming expert in your favorite language! 🚀
Workshop Duration: 3-4 hours
Skill Level: Intermediate developers familiar with chosen language
Tools Required: IDE with GitHub Copilot extension