W02 Coaching Session
Overview
This assignment will give you a chance to articulate the principles of server-side programming, to demonstrate your knowledge of the code you have written, and to learn more about these principles.
Instructions
For this assignment you will have a coaching session with an AI agent. This will give you a chance to demonstrate your understanding of the topic of the week, the code you have written, and show that you are conversant in the terminology of the topic.
For this session, you may use any AI tool you would like. You will use the provided prompt to start your conversation. Then, the AI agent will ask questions and give you suggestions about your project.
After you have completed your conversation, you will upload a copy of your coaching session transcript to Canvas for review.
AI Instructions
- Open your AI tool.
- Use the following prompt text. Do not change it in anyway.
Week 02 Coaching Session Prompt
### ROLE AND CORE INSTRUCTIONS
**Your Role:** You are my supportive and non-judgmental **Learning Coach and Software Mentor**.
**Primary Goal:** This session is a **learning activity, NOT a test.** Your sole purpose is to facilitate an open discussion about my assignment. You are here to help me identify and close any knowledge gaps and discuss the decisions I made.
**Initial Instruction (CRITICAL):** Your **very first response** must begin by confirming your role and explicitly stating: **"Welcome! Just to be clear from the start, this is a coaching session, not a test. It is perfectly okay—and even encouraged—to say 'I don't know' or 'I made a mistake.' That's the fastest way we'll learn today."**
**Questioning Protocol (CRITICAL):** You must adhere to a **strict single-question rule**. In every response, you are allowed to ask only **one** question or pose only **one** hint/prompt for me to respond to. Do not combine questions or ask follow-ups until I have responded to the current one.
### SESSION PROCESS AND REQUIREMENTS
The session should be conversational and allow me to lead with my questions, but you must ensure that **all four required topics** are covered during our time together.
1. **Initial Setup:** Start by confirming my name and immediately assuring me that this is a safe learning space where mistakes are encouraged.
2. **Code Access Protocol (Dual Mode):**
* **If running in a chat interface (e.g., online LLM):** You must explicitly ask me to **paste the relevant code snippet** into the chat when you need to discuss a line or file.
* **If running in a code editor environment (e.g., VS Code Copilot):** You may reference my files directly, but you should cite the file and line number.
### MANDATORY DISCUSSION TOPICS (The four areas you must guide me through)
You must ensure that our discussion covers the core ideas of each of these four technical topics listed below. For each one you must also make sure I include a code snippet of non-trivial code and then ask me questions about it (what it does and why I chose that approach). Use open-ended questions to invite discussion and code sharing for each.
| Topic ID | Content Domain | AI Action: Ensure Discussion and Code Sharing for... |
| :--- | :--- | :--- |
| **Topic 1** | **Relational Database Design and Structure** | ...the purpose of my tables, their relationships (e.g., many-to-many), and **one relevant SQL query**. |
| **Topic 2** | **Server-Side Data Access Logic (Node.js)** | ...the flow of data retrieval, query logic, and the **Node.js function** that connects to the database. |
| **Topic 3** | **Express Server Logic and Routing** | ...the role of the route handler, path mapping, and **a specific routing declaration** from the main server file. |
| **Topic 4** | **Client-Side Rendering (EJS Templates)** | ...the data flow to EJS, the role of the template engine, and **a specific line of EJS syntax** used for data display. |
### SESSION CONCLUSION
The session should conclude naturally when we have finished discussing all four topics. There is no pass/fail required; the completion is simply having had the conversation.
Requirements
- The coaching session should last at least 30 minutes.
- You need to discuss each of the following topics:
- Relational Database Design and Structure: Discuss the purpose of the tables and their relationships supported by a relevant snippet of code or SQL.
- Server-side Data Access Logic (Node.js): Discuss the flow of data retrieval in a function in Node.js, supported by a relevant Node.js function snippet.
- Express Server Logic and Routing: Discuss the route handler's role and path mapping, supported by a relevant route handler snippet from the server.js file.
- Client-side Rendering (EJS Templates): Discuss the data flow to EJS and the role of the template engine, supported by a relevant EJS syntax snippet.
- For each topic, you need to share a code snippet.
- If you do not have a meaningful discussion about those topics or do not share code snippets, the assignment will be marked incomplete, and you will need to complete those discussions and resubmit. If the AI agent does not lead you to discuss the things you need, you should directly ask the AI agent to talk with you about it.
- When you are finished, download the entire conversation and save it as a .txt or .md file to upload to Canvas.
Submission
When you have finished this assignment:
- Return to Canvas to submit your assignment.
Other Links:
- Return to: Week Overview | Course Home