Choose a physical spot that supports long sessions
A Ruby workspace is a desk, a chair and a screen before it is software. Use a desk 70–75 cm high and at least 120 cm wide by 70 cm deep. Keep the monitor 50–70 cm away, with the top edge at or slightly below eye level. Put your feet flat and aim for elbows near 90 degrees. Use 300–500 lux of even light and keep the room at 18–22°C. Keep two power sockets within reach and clear cable space behind the desk. Take a 5-minute break every 25–30 minutes and stand every hour. If discomfort persists beyond a few days, consult a qualified health professional.
Match the hardware to Ruby's modest demands
Ruby runs comfortably on 8 GB of RAM; 16 GB is comfortable for an editor, browser and local server. Reserve 10–20 GB of free disk space and use an SSD if possible. A 1920×1080 24-inch screen is useful, but a 1366×768 laptop will work for your first project. Costs vary: £0 if you use an existing machine, £40–£120 for a used monitor, £30–£60 for an external keyboard. Do not buy a gaming PC for Ruby. A five-year-old laptop with 8 GB and a working battery is enough. If the fan runs constantly, close unused browser tabs before changing hardware.
Settle the operating system and terminal
Use Windows 10/11, macOS 12 or newer, or Ubuntu 22.04 LTS. On Windows, use Windows Subsystem for Linux 2 (WSL2) for the closest parity; allow 15–20 GB and 20–40 minutes for installation. On macOS, run xcode-select --install; this uses 1–2 GB and takes 15–30 minutes. On Ubuntu, install build-essential, libssl-dev and zlib1g-dev. Use the built-in terminal and one shell configuration file, such as ~/.bashrc or ~/.zshrc. Check echo $SHELL once and write it down. Mixing shells makes path problems harder to diagnose.
Install Ruby through a version manager
Do not rely on the system Ruby that ships with your operating system; it is often old and protected by permissions. Install a version manager such as rbenv or mise, then install a current stable Ruby, such as 3.3.x; 3.2–3.4 is acceptable. Allow 20–40 minutes and 500 MB–1.5 GB per Ruby version. With rbenv, the core commands are rbenv install 3.3.0 and rbenv global 3.3.0; then check ruby -v. which ruby should point inside your home directory, not /usr/bin/ruby. On Windows inside WSL, install Ruby inside the Linux environment, not on the Windows side. Avoid sudo gem install; it creates permission problems that take longer to fix than to prevent.
Configure the editor for Ruby, not for everything
Choose an editor with a file tree, syntax highlighting and an integrated terminal. Set indentation to two spaces with soft tabs, trim trailing whitespace, place a ruler at 80 or 100 columns, and turn autosave off while learning. Use a 13–15 point font at 1.4 line height and a high-contrast theme. Install Ruby syntax highlighting and one linter or formatter; do not add twenty extensions before you have run one file. A workspace you can read is faster than one packed with tools. Keep the terminal panel at roughly one-third of the screen so you can see code and output together.
Build a predictable folder and version layout
Create one root folder such as ~/ruby-work. Give each project its own subfolder with no spaces, for example ~/ruby-work/hello. Inside it keep a .ruby-version file with the exact patch version (3.3.0), a Gemfile, a Gemfile.lock after bundling, and a short README.md. Run bundle config set --local path vendor/bundle so gems stay inside that project; expect 20–100 MB per project. Initialise Git and add vendor/bundle to .gitignore. Use bundle exec when running project commands so the locked gems are used. Name folders with lower-case letters and hyphens; spaces and capitals cause needless command-line friction.
Verify the workspace with a five-minute smoke test
Open a terminal in the project folder and run ruby -v, gem -v and bundle -v. Start irb, type 2 + 2, confirm the answer is 4, then exit. Create hello.rb containing puts "Workspace ready" and run ruby hello.rb. Check that the command exits without an error and returns you to the prompt. The whole check should take under 5 minutes. If it works, stop configuring and start using the workspace.
Diagnose the common wrong-Ruby failure
The most common failure looks like this: ruby -v reports an old version such as 2.7, or the terminal says command not found. A gem install may fail with “permission denied”, or your editor’s terminal may use a different Ruby from the one in your main terminal. The likely causes are a system Ruby earlier on PATH, a shell configuration file that was not reloaded, a version manager missing from non-login shells, or two managers fighting over the same path. The fix is to open a fresh terminal, run which -a ruby, list installed versions with rbenv versions or mise ls, set the project’s .ruby-version, run rbenv rehash, and remove duplicate manager lines from your shell file. Never fix permissions with sudo gem install; correct the version manager instead. On WSL, install and run Ruby inside Linux. If the problem continues, remove extra managers and repeat the setup from a clean shell; allow 10–20 minutes.
Keep the workspace clean and reproducible
Spend 10 minutes a week on housekeeping. Commit working code, run bundle clean, and delete only projects you have backed up and not touched for 30 days. Keep at most two Ruby versions installed; each costs 500 MB–1.5 GB. Keep at least 15% of the disk free. Update Ruby and gems every 4–6 weeks, one project at a time, so you can undo a bad change. Back up to two places: the project folder and an external drive or cloud account. Write a five-line setup note listing your Ruby version, version manager, editor and project root; it makes rebuilding the workspace far quicker.
FAQ
Do I need a Mac to learn Ruby?
No. Windows 10/11 or Ubuntu 22.04 LTS works well, and Windows users should use WSL2. An 8 GB machine is enough to begin; 16 GB is more comfortable if you keep many browser tabs open.
How much should a beginner workspace cost?
A workspace can cost £0 if you already have a computer. A used monitor is £40–£120, a keyboard £30–£60, and all the software named here is free. Avoid spending more than £250 before you have completed one small project.
Should I install one Ruby version or several?
Start with one stable version, such as 3.3.x. Add a second only when a project requires it; each version takes 500 MB–1.5 GB. Two versions are manageable for a beginner; five are not.