Finishing is a separate skill from starting. Most beginner Ruby projects stall not because the code is too hard but because "done" was never defined. Treat the final push as a sequence of small, timed decisions: define the finish line, cut the feature list, make one complete path work, then document and hand over what actually runs.
Define "finished" before you open the editor
Write a one-sentence finish line: "A stranger can run ruby main.rb, follow three prompts, and get a correct total." A finished v1 needs one run command, three observable user actions, five manual checks, a README, and a clean commit. Set a 90-minute finish window for the first pass. If a task cannot be completed inside that window, it belongs in v2. Put the finish line at the top of your notes and reread it before every change. A finish line with no observable output is not a finish line; rewrite it until you can demonstrate it in under 5 minutes.
Freeze the feature list at three outcomes
Choose three outcomes only. For a to-do app: add a task, list tasks, delete a task. For a CSV tool: read a file, print the row count, print one total. Anything else goes on a "Later" list capped at five items. Add no gem unless it removes at least 30 minutes of work. Use Ruby 3.1 or newer, and keep the project to 3–5 files: main.rb, one class file, one check file, a README, and .gitignore. That file count is enough to finish without losing track of where the program starts.
Build the shortest complete path first
Make the happy path work from start to finish before improving anything. Write the smallest program that takes input, performs one calculation, and prints output. A first feature should be roughly 20–40 lines of Ruby. Hard-code one value temporarily if that gets you to a printed result. Then replace one hard-coded value at a time, running the program after each change. Run the program after every change, even when the change looks trivial. If you have 10 ideas, keep 3 and defer 7. This is not lowering standards; it is how you reach a runnable v1.
Use version control as a finish line
Commit at three points: after the program runs once, after each of the three outcomes works, and after the README is written. Write commit messages that name the outcome, such as "add delete task". Keep experimental branches to two at most during the final 2 hours. Before tagging v1, run git status and confirm there are no temporary debug files, generated data, or secrets in the folder. A clean status is a hard checkpoint, not a nice extra.
Test the five paths a stranger will try
You need five manual checks, not a complete test suite. Check normal input, empty input, invalid input, a larger input such as 1,000 rows, and the help or usage message. Run each check twice. Record the exact command and expected result in CHECKS.md or at the bottom of the README. If a check takes more than 5 minutes to set up, simplify the input. These five checks catch most beginner defects without turning a small project into a testing project.
Run a 90-minute defect triage
When the project feels almost done but keeps breaking, stop adding features and triage.
Symptoms: it works on your machine but not from a new terminal; fixing one bug creates two more; several half-finished changes are open at once.
Likely causes: no single run command, no fixed definition of done, and too many edits before rerunning the program.
The fix: choose one failing path, reproduce it in under 5 minutes, write a one-line expected result, make the smallest change, rerun all five checks, and commit. Spend 90 minutes maximum. If the defect remains, record it as a known issue rather than widening scope.
Write a five-minute README and run script
A finished project must be usable without you. Write five headings: what it does, requirements, run command, example input, and known issues. State the Ruby version, such as Ruby 3.1 or newer. Keep the run command to one line, for example ruby main.rb. Include one example that produces visible output. Do not paste the whole code into the README. If setup takes more than 5 minutes from a clean folder, cut a dependency or add a tiny run script.
Package the project so it starts cleanly
Copy the project to a new folder and follow your own README. Run the command three times from different terminals. Confirm the program handles an empty file and a missing argument without a raw stack trace. If you use dependencies, list them in a Gemfile and test with bundle exec ruby main.rb; otherwise keep the project dependency-free. A clean start in under 2 minutes is the target. This step exposes hidden assumptions about paths, leftover files, and local data that will not exist on another machine. Ask a friend or use a second user account if available, because a new environment finds missing files quickly.
Do a 24-hour handover check
Wait 24 hours, then return as a stranger. Start from the README only. If you cannot run the project in 10 minutes, fix the README before touching the code. Tag the commit v1.0. Write three lines in NOTES.md: what is finished, what is deliberately deferred, and the next single task. Archive the project folder with a date. Finished does not mean perfect; it means another person can run, check, and understand v1 without asking you.
FAQ
How many features should my first Ruby project have?
Three visible outcomes and no more than five deferred ideas. If you cannot demonstrate each outcome with one command and one check, the feature set is too large for a first v1.
How do I know when to stop refactoring?
Stop when the five checks pass and the README works from a clean folder. Refactor only if it fixes a failing check or removes a repeated block of more than 10 lines. Set a 2-hour refactoring cap.
What if my project is still broken at the deadline?
Ship a smaller v1. Remove one feature, write the known issue in the README, and tag the last working commit. A broken project with a clear known-issues list is easier to finish than an uncommitted pile of changes.