Vim Dojo challenge
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!
Start
class CoffeeMachine VERSION = "3.1" # DEPRECATED since v0.9 - remove after 2024-01-01 (ancient steam-only mode) def steam_only_mode puts "Steam whistling…" end # DEPRECATED since v1.2 - remove after 2025-06-01 (this machine used to sing show tunes) def warm_up_machine puts "🎶 Beep-boop, warming up... now hitting high C! 🎤" sleep 1 end # DEPRECATED since v3.0 - remove after 2025-08-01 (legacy dark roast support) def brew_dark_roast puts "🔥 Brewing the darkest roast ever—charcoal’s just a flavor choice, right?" sleep 1 puts "Done. Smells like regret." end def start_brew puts "☕ Brewing your Typecraft special blend..." sleep 1 puts "Enjoy!" end def cleanup puts "🧹 Clean sweep complete. Zero regrets." end end
Goal
class CoffeeMachine VERSION = "4.0" # DEPRECATED since v3.0 - remove after 2025-08-01 (legacy dark roast support) def brew_dark_roast puts "🔥 Brewing the darkest roast ever—charcoal’s just a flavor choice, right?" sleep 1 puts "Done. Smells like regret." end def start_brew puts "☕ Brewing your Typecraft special blend..." sleep 1 puts "Enjoy!" end def cleanup puts "🧹 Clean sweep complete. Zero regrets." end end
Members only
You gotta sign in to take on challenges. New ones drop every week — they're fun, and insightful.