1 of 9

CSE 190: Working with Large Code Bases

Spring 2025

1

Lecture 11

2 of 9

Announcements

  1. Group Project Proposals
    1. Recommendations will be given this Thursday (May 8)
    2. Make sure all team members join the Github team repo
  2. Project 3 Peer Code Reviews
  3. Project 4 will be released today
  4. Code Walkthrough Presentations

3 of 9

Copilot Features–DEMO of Project 2

Code Generation

  • Prompting via comments (Get total number of lines)
  • Using /edit (goto_line_event)
  • Using /fix (Goto class, int casting)

4 of 9

Activity 1: Modifying with Copilot

  1. Modify the source code so that the amount of time that the code is highlighted is 5 seconds long
  2. Open-ended: Take some time to try out Copilot on your own for anything you want! An example idea from past lecture:
    1. Changing the Python Prompt to display more characters and having the sidebar widen based on the prompt

5 of 9

Sandboxing with LLMs

6 of 9

“Sandboxing” and Discussing Tkinter

  • Take about 10 minutes to try to learn about the Tkinter text widget
  • Say your manager wants your to summarize the key documentation related to the Tkinter text widget for the rest of the team. How do you go about doing this?
    • Why the “end -1c”?
    • How come insert sometimes has three parameters? What do each of the parameters mean?
    • Can you explain the insert and delete lines in the update_sidebar_text method?
    • What are the different “states” in the tk.configure method and what do they do?

https://bit.ly/lec11-act

7 of 9

Activity: Word Count in Status Bar

Add a word count display to the status bar that updates as the user types.

8 of 9

Activity: Understanding Syntax Highlighting

Explain at a high level how syntax highlighting works in IDLE.

Specifically, explain how IDLE assigns different colors to different things.

  1. Explain how comments are found in code?
  2. How could you change the color of comments?

https://tinyurl.com/cse190-lec11-act1

9 of 9

Resources