A useful first month gives you small working programs and a calm debugging habit, not fluency. This plan assumes five sessions of 45–60 minutes each week—roughly 4–5 hours—plus one 30-minute review. It leaves two buffer days. If you can manage only three sessions a week, stretch the plan to six weeks rather than squeezing it.
What a realistic first month looks like
Four weeks, one outcome per week. Each week ends with a runnable file, not a page of notes. The sequence matters: variables before collections, collections before classes, classes before one integrated program. By day 30 you should have: ten one-line experiments in irb; three scripts of 15–25 lines; one class with three tests; and one command-line program of 40–60 lines. Keep the budget between £0 and £20. Ruby’s standard library is enough; an optional second-hand beginner book is the only likely cost.
Do not measure progress by pages read. Measure it by files you can run and explain.
Week 1: variables, methods, and reading errors
Spend the first five sessions on the smallest pieces. Day 1: variables, strings, numbers, and string interpolation in irb. Day 2: if, elsif, else, and comparison operators. Day 3: methods with zero, one, and two arguments, including return values. Day 4: while loops and simple keyboard input. Day 5: rebuild three 10–15 line exercises from memory, without copying. If a concept feels vague, write a 5-line example that proves it.
Keep an error log with ten entries. For each, write the exact message, what caused it, and the one-line fix. Use one file per exercise and name it after the skill, such as methods_practice.rb; this makes review easier. An error log is more useful than a second tutorial.
Week 2: collections, blocks, and small scripts
Move from single values to groups. Learn arrays and hashes, then each, map, and select. Write three scripts of 15–25 lines: a word counter, an expense tally, and a five-question quiz. Each script must take input, use one array and one hash, and print a short summary.
Aim for 30 minutes of typing and 10 minutes of reading per session. When a script breaks, comment out lines until the smallest failing section remains. Fix that, then restore one line at a time. Print the object with p before calling a method on it; this catches nil early. No gems yet unless the script cannot work without one.
Week 3: objects, classes, and a few tests
Write one class with an initialize method and two other methods. A simple BankAccount or Recipe class is enough. Then write three tests using Ruby’s standard testing library: one normal case, one boundary case, and one invalid input. Run the tests after every 10–15 lines changed. Keep the class under 25 lines; if it grows, remove a method rather than adding another file.
Use puts and p to inspect values before guessing. Keep each debugging experiment to 5–10 lines. If a test fails, read the expected and actual values before changing code.
Week 4: one small command-line program
Build one command-line program of 40–60 lines with three features at most. A flashcard quiz that reads five questions from a text file, accepts answers, and prints a score is realistic. Write a one-paragraph specification before coding: input, output, and three features. Work in two 90-minute build blocks and two 45-minute repair blocks. Stop adding features by day 26.
Spend the final two sessions on three manual tests and one edge case, such as empty input or a missing file. Do not add a database, web framework, or external service in month one.
The weekly rhythm that keeps you moving
Book five sessions of 45–60 minutes, not one long weekend block. Use a 5-minute warm-up, 15–20 minutes learning, 25–30 minutes building, and 5 minutes writing notes. Take two rest days. A 25-minute session counts as half a session; do not pretend it was full.
Hold a 30-minute review on day 7. List what ran, what failed, and the next single topic. If you miss a session, move it to a buffer day rather than doubling the next session. Keep a simple tally of five marks per week; three marks is a warning, not a failure. If a session falls below 25 minutes, mark it as half and add a 15-minute note review on the buffer day.
When the plan starts to fail: symptoms, causes, and fixes
Symptom: you can follow a tutorial but freeze in a blank file. Likely cause: you have practised recognition, not recall. Fix: close the tutorial and rewrite a 10–15 line example from memory; allow 15 minutes before checking.
Symptom: one error consumes 40 minutes. Likely cause: you are reading the top of the error trace or changing several lines at once. Fix: read the last line first, reduce the code to a 5-line snippet, and set a 20-minute limit before asking for help with the code, error, and what you tried.
Symptom: you miss three sessions in week 2. Likely cause: the plan assumed 90-minute sittings. Fix: switch to a 25-minute minimum session and drop a week 4 feature before dropping arrays, hashes, or methods.
The day-30 checkpoint
You are on track if you can do four things: start a file without a template; write 30–50 lines that run; explain the difference between an array and a hash; and read a NoMethodError without panicking. Try a 20-minute challenge: read five names from a text file, count them, and print the total. If three of the four checks pass, continue to a second month of four small scripts. If not, repeat week 2 or week 3 for seven days rather than restarting the whole month.
FAQ
Do I need to code every day?
No. Five sessions of 45–60 minutes across seven days is better than seven exhausted 20-minute attempts. Keep two rest days and protect the 30-minute weekly review.
What if I already know another programming language?
Compress week 1 into two sessions, but do not skip blocks, classes, or testing. Those are where Ruby’s habits differ enough to slow you down later.
Should I spend more time reading or typing?
Use a 20/80 split. For every 15 minutes of reading, type for about 45 minutes. Stop reading a chapter once you can run two examples from it without copying.