Key Topics:
Quick overview of popular code assistants (Copilot, CodeWhisperer, Tabnine, Cursor, V0).
Practical examples of how to invoke suggestions in different IDEs (VS Code, IntelliJ, etc.).
Local vs. SaaS integration: pros and cons (speed, configuration, cost).
A peek at Meticulous and similar tools for basic automated testing without leaving your coding flow.
Below you will find some suggested materials on these topics, which we believe may help you complete the final activity in the lesson. Please note that using these resources is entirely optional, and you are welcome to explore any other sources or courses at your own discretion.
Here are some recommended courses to explore:
Key Topics:
Quick overview of popular code assistants (Copilot, CodeWhisperer, Tabnine, Cursor, V0).
GitHub Copilot Documentation
Comprehensive official docs explaining setup, languages supported, and FAQs.
Offers real examples of how Copilot interprets prompts to generate code.
Introductory guide on Amazon’s AI code suggestions with free-tier usage details.
Explains how CodeWhisperer integrates with IDEs and typical dev workflows.
Basic free plan for personal projects and an overview of languages supported.
Contains setup instructions and usage tips for multiple editors
A free-to-download editor with integrated AI coding features. Ideal for developers wanting real-time collaboration and prompt-based debugging.
It allows developers and designers to create responsive, production-ready React components using natural language prompts. The tool generates clean code using Tailwind CSS and integrates seamlessly with modern frontend workflows. Ideal for prototyping and accelerating UI development.
Master Copilot Studio | Build personalized copilot | Connect copilot to your data | Extend copilot with Generative AI
Boost your coding productivity using AI code assistants. Generate code, fix, refactor, unit test, and more!
Key Topics:
2. Practical examples of how to invoke suggestions in different IDEs (VS Code, IntelliJ, etc.).
Explains how to install and configure AI-related extensions in VS Code.
Quickstart guides plus tips on customizing settings for code suggestions
Official plugin hub for IntelliJ, PyCharm, etc., including AI assistant integrations.
Straightforward instructions on plugin installation and usage.
Basic code completion helps you complete the names of classes, methods, fields, and keywords within the visibility scope.
Key Topics:
3. Local vs. SaaS integration: pros and cons (speed, configuration, cost).
Community articles comparing self-hosted AI solutions vs. cloud-based ones.
Real-world developer anecdotes highlight speed, cost, and privacy trade-offs.
Provides a practical and research-based approach to designing and implementing single- and multi-agent systems. It simplifies the complexities and equips you with the tools to move from concept to solution efficiently
We'll examine the fundamental differences between on-premises IT solutions and cloud-based solutions.
Key Topics:
4. A peek at Meticulous and similar tools for basic automated testing without leaving your coding flow.
Explains how Meticulous captures user flows and replays them for QA checks.
Free tier usage examples and setup instructions for small projects.
Top 10 AI-powered tools that are revolutionizing the testing landscape in 2025.
Harness the Power of Gen AI for Manual Testing, RAG, Playwright AI, TestRigor, Add Intelligence to Test Code via APIs
Activity:
Install or enable one code assistant in your environment (e.g., Copilot in VS Code).
Write a simple function (like a tax calculator), letting the tool suggest parts of the implementation.
Goal:
Experience firsthand how the AI generates snippets and see how well it adapts to your coding style.
Pick Your IDE and Code Assistant
Decide which IDE (e.g., VS Code, IntelliJ) and which code assistant (e.g., GitHub Copilot, Tabnine, Amazon CodeWhisperer) you want to try.
If you have a preference (or an existing subscription), use that. Otherwise, GitHub Copilot is a common starting point.
Set Up Your Code Assistant
Example (GitHub Copilot in VS Code):
Launch VS Code and open the Extensions panel (left sidebar).
Search for “GitHub Copilot”.
Click Install and follow any prompts to log in to GitHub or agree to terms.
Make sure the extension is enabled.
If you’re using a different assistant or IDE, follow its official setup instructions (often found on the tool’s website or marketplace page).
Create a New Project or File
In your IDE, create a simple folder—for instance: tax-calculator-demo.
Inside that folder, create a new file, e.g., taxCalculator.js (if you prefer JavaScript).
Alternatively, use any language you like (Python, Java, etc.). The activity is the same.
Write an Outline or Comment
Begin by typing a brief comment, describing what you want:
javascript
CopiarEditar
// Let's create a simple function that calculates tax on an income.
// For example: if income < 20000, no tax, else 10% on the remainder.
Stop typing for a moment; see if the AI assistant suggests a snippet.
Observe AI Suggestions
If you see a gray or faint text (GitHub Copilot style) or a pop-up suggestion (Tabnine/Amazon CodeWhisperer):
Press Tab (or the relevant hotkey) to accept the suggestion.
Press Esc or the relevant key to dismiss if it’s not what you want.
Start the Function
javascript
CopiarEditar
function calculateTax(income) {
// ...
}
The assistant may immediately suggest logic based on your previous comments.
If it doesn’t, prompt the tool by adding more details:
javascript
CopiarEditar
function calculateTax(income) {
// If income < 20000, tax = 0
// Else, tax is (income - 20000) * 0.1
return 0; // placeholder
}
Refine the Generated Code
If the AI suggests partial or incorrect logic, add more comments:
javascript
CopiarEditar
// Also let's add a small handling fee of $50 if income > 50000
See if the assistant updates its suggestions accordingly.
Test the Function
Write quick console logs or unit tests:
javascript
CopiarEditar
console.log(calculateTax(18000)); // Should be 0
console.log(calculateTax(30000)); // (30000 - 20000) * 0.1 = 1000
console.log(calculateTax(60000)); // includes fee of 50 if >50000?
Run your code (in VS Code’s built-in terminal, or node taxCalculator.js if it’s JavaScript).
Check if the results match your expectation. If not, revise the function or prompt the AI for a fix.
Explore Additional Features
Ask the AI to add input validation, docstrings, or a different tax bracket just to see how it responds.
Try explicitly “talking” to the AI in comments:
javascript
CopiarEditar
// I'd like a function that handles multiple brackets:
// 0% for income <= 20000,
// 5% for 20000-50000,
// 10% for 50000+,
// plus a 2% surcharge if income > 100000.
Notice how it modifies its suggestions based on your instructions.
Wrap Up
You’ve successfully set up a code assistant, typed a function outline, and let the AI fill in details.
You’ve also tested the output and made iterative improvements.
Pick a second code assistant different from the one you used in the Hands-On (e.g., if you tried Copilot first, try Tabnine or Cursor next).
Clone or create a small sample project (2–3 functions).
Implement a new feature in this project entirely with the second assistant’s help.
For instance, if it’s a notes app, add a “search notes by keyword” capability.
Track or note in a Markdown file:
How many lines of code the AI generated vs. how many lines you had to adjust manually.
Any snippets you found particularly helpful or inefficient.
Pick a second code assistant different from the one you used in the Hands-On (e.g., if you tried Copilot first, try Tabnine or Cursor next).
Clone or create a small sample project (2–3 functions).
Implement a new feature in this project entirely with the second assistant’s help.
For instance, if it’s a notes app, add a “search notes by keyword” capability.
Track or note in a Markdown file:
How many lines of code the AI generated vs. how many lines you had to adjust manually.
Any snippets you found particularly helpful or inefficient.
Objective: Compare how a second assistant behaves in a practical coding scenario, observing differences in performance, ease of use, and quality of suggestions.
Pick Your Second Code Assistant
If you used GitHub Copilot in the previous Hands-On, you might try Tabnine, Amazon CodeWhisperer, Cursor, or another AI tool for this assignment.
Ensure it’s installed or enabled in your chosen IDE or editor. For instance:
VS Code: Go to Extensions, search for “Tabnine” or “Cursor,” then install.
JetBrains (IntelliJ, PyCharm, etc.): Open Settings → Plugins → search, install, and restart if needed.
Clone or Create a Small Sample Project
Decide on a lightweight codebase with 2–3 existing functions or modules.
Examples:
A notes app with basic CRUD (create, read, update, delete).
A mini CLI tool that manipulates data or files.
A simple microservice with a route or two in Node.js, Python, or another language.
If you don’t have an existing project, create a new folder with a minimal setup:
bash
CopiarEditar
mkdir second-assistant-demo
cd second-assistant-demo
npm init -y
# or python, etc.
Plan the New Feature
Decide which feature you’ll implement entirely with the second AI tool:
If it’s a notes app, add a “search notes by keyword” function.
If it’s a microservice, add a new endpoint (GET /search) that filters data.
If it’s a CLI, add a subcommand that performs some new logic.
Outline the requirements or acceptance criteria. For a “search notes” feature, for example:
Input: a string (keyword).
Output: a list of matching notes (case-insensitive).
Optional edge cases: empty string, no matches, special characters.
Implement the Feature with the Second Assistant
Open your project in your IDE (with the new code assistant installed).
Start coding or describe the feature in comments so the AI can pick up context:
javascript
CopiarEditar
// I'd like a "searchNotes(keyword)" function that returns an array of notes whose text includes the keyword
Pause and observe suggestions from the assistant. Accept or refine them accordingly.
Avoid writing large chunks yourself—try relying on the AI’s suggestions to see how it structures the code.
If you’re stuck, prompt the assistant with more detail:
javascript
CopiarEditar
// Include partial matches, ignore case, and handle an empty notes array gracefully
Track Lines of AI-Generated vs. Manual Edits
Keep a simple tally of:
Lines the AI wrote that you accepted as-is or with minor tweaks.
Lines you had to significantly adjust or fully rewrite because the AI’s output was incorrect or suboptimal.
For instance, you might open a local text file or keep a notepad with marks:
“AI accepted lines: ~15.”
“Manual rewrites: ~4.”
If your tool highlights AI suggestions differently (e.g., in GitHub Copilot, gray text), use that to track how many lines were auto-completed.
Test the New Feature
If the project has a test suite, run it:
bash
CopiarEditar
npm test
If not, do a quick manual check or write a few tests to confirm correctness.
Note how the assistant’s code performs—did it pass on the first try, or require debugging?
Document Observations in a Markdown File
Create SECOND_ASSISTANT_NOTES.md (or similar):
markdown
CopiarEditar
# Second Code Assistant Observations
**Project**: Notes app
**Feature**: searchNotes(keyword)
**AI Tool**: Tabnine
- **AI-generated lines**: ~20
- **Manual rewrites**: ~5
- **Helpful snippets**:
1. Automatic filtering logic with `notes.filter(...)`
2. Suggested regex for case-insensitive search
- **Inefficient snippets**:
- Proposed a complex data structure not needed for this scenario
- Tried to use a library that wasn't installed in package.json
Summarize any highlights (the AI found a clever approach) or frustrations (the AI insisted on using incorrect syntax).
Compare to Your First Assistant’s Experience
Reflect on your Lesson 1 Hands-On with the first code assistant:
Did this second tool feel more or less intuitive?
Did you see fewer or more errors?
Which one best matched your coding style or offered better docstrings?
Wrap Up
You’ve now completed the assignment, using a second code assistant to implement a new feature.
The Markdown file with lines-of-code data and observations will help you compare performance, ease of use, and suggestion quality.
By the end of this module, you’ll be able to:
Identify the main code assistants and use them within your IDE to speed up coding.
Recognize when and how to leverage AI for automated testing.
Understand basic security and licensing requirements when adopting AI tools.
Video lectures and downloadable materials are organized in the dashboard.
Hands-on labs and coding environments are integrated (e.g., AWS, Jupyter).