Screen Too Small

This course material requires a larger screen to properly display the terminal and editor interfaces.

Please use a tablet, laptop, or desktop computer for the best learning experience.

You can continue browsing, but the experience will be significantly limited.

Vim Dojo challenge #7

Espresso Extraction: Pulling Apart AI Parameters

During this morning’s caffeine-fueled Scrum, we declared: “Our AI calls must be as neat as a barista’s latte art.” Any call with multiple keyword args now gets its own line, wrapped in parentheses—no more parameter chaos!

challenge.txt :set list

Start

 1response = client.completions(
 2  model:        "gpt-4",
 3  prompt:       "Brew me a joke"
 4  max_tokens:   50,
 5  temperature:  0.5
 6)

Goal

 1response = client.completions(
 2  model:        "gpt-4",
 3  prompt:       "Brew me a joke",
 4  max_tokens:   50,
 5  temperature:  0.5,
 6)

Members only

Hold on, cowboy

You gotta sign in to take on challenges. New ones drop every week — they're fun, and insightful.