2. Tools around development
There are differences between operating systems, but my approach is to make my development environment the same on all of them. Linux is the target.
Windows
Linux and macOS are UNIX-like systems, so what we want on Windows is a UNIX-like space. For years there were many attempts at this (like Cygwin), and finally Microsoft made its own: WSL. It gives you a Linux space where tools made for UNIX-like systems just work. Keep the project, Node and the terminal together inside it. Microsoft also made Windows Terminal, which comes with Windows 11.
If you stay on plain Windows, turn on Settings → Privacy & security → For developers → Developer Mode. pnpm works best with symlinks, and a normal terminal can't create them without it.
macOS
macOS is UNIX-like, so there's only one small problem to solve. Rename name.tsx to Name.tsx and Git ignores the change. Your code works on your Mac and crashes on CI, which runs on Linux. Tell Git that case matters:
git config core.ignorecase false
For a rename like that, I let Git do it in two steps: git mv name.tsx tmp.tsx, then git mv tmp.tsx Name.tsx.
The terminal app I use is iTerm2. The built-in Terminal had problems rendering Nerd Fonts, and that's why I switched.
Linux
This is our target, the system we want our environment to be similar to. Nowadays I don't use a desktop Linux distribution, but Linux is everywhere: WSL, CI, VPS. So I know a lot about it, just not about its GUI.
Terminal
It's up to you; there are lots of tools here. Mine is zsh with oh-my-zsh, the Starship prompt and, of course, a Nerd Font. That's all. When I have a project open in VS Code, I mostly use its built-in terminal.
Git: version control
If you don't know this kind of tool, it's time to catch up. You want to take snapshots of your work, time travel to older versions of your project and back it up to a server. That's what Git is for. Start with What is Git?
VS Code: code editor
It just works, and you can customize and extend it with lots of extensions. It's very popular, so most problems you'll meet are already solved on Stack Overflow.
Lessons
- Run it on your computer: take the shipment list from 1.1 to your computer, let TypeScript catch a typo and make your first commit.