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 #15

Cleanup Sprint: Time to Bury the Deprecated

The best PRs are ones with net negative lines! Let’s finally delete the cruft we deprecated months ago—grab your Vim and let’s shred that technical debt!

challenge.txt :set list

Start

 1class CoffeeMachine
 2  VERSION = "3.1"
 3
 4  # DEPRECATED since v0.9 - remove after 2024-01-01 (ancient steam-only mode)
 5  def steam_only_mode
 6    puts "Steam whistling…"
 7  end
 8
 9  # DEPRECATED since v1.2 - remove after 2025-06-01 (this machine used to sing show tunes)
10  def warm_up_machine
11    puts "🎶 Beep-boop, warming up... now hitting high C! 🎤"
12    sleep 1
13  end
14
15  # DEPRECATED since v3.0 - remove after 2025-08-01 (legacy dark roast support)
16  def brew_dark_roast
17    puts "🔥 Brewing the darkest roast ever—charcoal’s just a flavor choice, right?"
18    sleep 1
19    puts "Done. Smells like regret."
20  end
21
22  def start_brew
23    puts "☕ Brewing your Typecraft special blend..."
24    sleep 1
25    puts "Enjoy!"
26  end
27
28  def cleanup
29    puts "🧹 Clean sweep complete. Zero regrets."
30  end
31end

Goal

 1class CoffeeMachine
 2  VERSION = "4.0"
 3
 4  # DEPRECATED since v3.0 - remove after 2025-08-01 (legacy dark roast support)
 5  def brew_dark_roast
 6    puts "🔥 Brewing the darkest roast ever—charcoal’s just a flavor choice, right?"
 7    sleep 1
 8    puts "Done. Smells like regret."
 9  end
10
11  def start_brew
12    puts "☕ Brewing your Typecraft special blend..."
13    sleep 1
14    puts "Enjoy!"
15  end
16
17  def cleanup
18    puts "🧹 Clean sweep complete. Zero regrets."
19  end
20end

Members only

Hold on, cowboy

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