
The hardest part of becoming a software engineer is starting. New developers may feel overwhelmed and never take the first step.
Before writing a line of code every developer needs to first set up their dev environment. This article is to help non-devs dip their toes into the world of software development by providing an easy to follow step by step guide to set up every tool you need to start coding.
I guarantee this will be the simplest introduction to development on the internet and that anyone will be able to follow this guide.
Developer environment setup for Windows
To code on a windows device, you will need to download a Linux subsystem. This sounds much more daunting than it actually is. This is completely free and easy to set up.
You must have at least Windows 10 or higher to be able to set this up.
Microsoft has a really great guide here that you can follow. I will provide the same guide with pictures so you can follow along.
Setting up Windows Subsystem for Linux (WSL)
- In your application bar search for "PowerShell" and run this application as an administrator.

- There should be a blue PowerShell terminal that opens up. Copy and paste this into the terminal and press enter:
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
- After this command finishes running restart your computer.
- In your application bar search for "Microsoft Store" and open the application.
- Find "Ubuntu" in the Microsoft Store and click "Get" then "Install"

- It will install some files and then prompt you to "Enter new UNIX username", enter a username, and then it will prompt you for a password for your new user.
- Once you have your user, this command which should update all your packages:
sudo apt update - Once that is done upgrade your packages by running:
sudo apt upgrade - Next you have to configure Git by setting your git user name by running:
You should replace "Your Name" with your name.git config --global user.name "Your Name" - Next configure Git to use your email, you should use the email associated with your GitHub account:
Replace "YourEmail@email.com" with your email.git config --global user.email "YourEmail@email.com"
Installing and configuring Visual Studio Code (VSCode)
- You will need to install Visual Studio Code, you can do that by going to the VSCode website and clicking download for Windows.

- Once VSCode is done installing open it and it should prompt you to install "Remote - WSL" since you have Window Linux Subsystem installed on your system. Click install.

- After it is done downloading close VSCode.
- Open Ubuntu and run this to open VSCode from the command line:
This will install VSCode Server and open VSCode.code .
- You can use this method to open your VSCode or just search for the application in your application bar and run it.
- That's it! You're all set up to start coding on your new code editor on a Window Subsystem for Linux.
Developer environment setup for Macs
To start coding on a Mac you have to download a few things. Instead of setting up a Linux subsystem like what we had to do on Windows, we will have to use Homebrew to use the command line to install software and tools.
Installing Homebrew
Homebrew allows you to download applications and tools. It is a package manager for Macs that simplifies installing software on macOS. You can check their website out here. It is open-source and 100% safe as long as you know what you're downloading.
- Open your terminal.

- Run this command to install Homebrew:
You will be prompted to continue or abort. Press/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"RETURNto continue.
Using Homebrew to install Git
- Install git using Homebrew by running:
brew install git - Configure your git by setting your username:
You should replace "Your Name" with your name.git config --global user.name "Your Name" - Next configure Git to use your email, you should use the email associated with your GitHub account:
Replace "YourEmail@email.com" with your email.git config --global user.email "YourEmail@email.com"
Install Visual Studio Code
You can go to Visual Studio Code's website and click download for Mac. You should be able to unzip it and drag it into your applications. That's it, now you can start coding!

Conclusion
Once you have these basic tools set up on your computer you will be ready to start coding whatever you like. You can always download more tools and software. For example, if you wanted to start doing Ruby development you could install rbenv and Ruby using Homebrew or WSL.
If you are a complete beginner starting to learn how to code I would recommend checking out my beginner developer series. The next article you should read is the How to use Git and GitHub article now that you have set up your development environment and are ready to start committing code.

About the author
I am a commercial real estate professional making a career pivot & loving every second. 馃彚馃殌馃捇
As a software engineer from a non-traditional background I can help others on their journey to join the tech industry.
Comments
Join the discussionHi Edmond, I love VSC! Great choice for an editor.
Can you use bash commands to install homebrew on zsh? I ran into trouble doing this a month ago and had to use bash to install. Also, isn't $ is the bash prompt? Do you run the $ in the command?
Feel free to completely school me! I'm an artist first, and then a programmer. I look forward to reading more of your articles. Cheers!
Hey Maggie, thanks for the question!
The $ is necessary because it is doing a command substitution. Basically what it does is it allows a command to be run and its output to be pasted back on the command line as arguments to another command.
-c executes the command which downloads Homebrew.
I got this command directly from https://brew.sh/, you can read their documentation there.
Edmond Hui Thank you for your reply! I've heard of command substitution, but I didn't realize that's what that was. My knowledge of terminal is limited. I think that for less knowledgeable programmers like me, you could add this kind of info to your article. When I was googling how to set up homebrew and git a month ago, I found everything on my own that you listed, but it was hard to understand it. Explaining the commands with more nuance would add value to your article for people like me. Just a suggestion though! On my end, I will take more terminal courses :)
Nice article, Edmond!
Glad that the WSL on windows is getting more attention! I've always dreamed to be able to do some serious ruby coding in my gaming Windows PC, but despite the major breakthrough in WSL, it's still very slow compared to my M1 Macbook ^_^
Hey Edmond Hui
- not Virtual Studio Code, but Visual Studio Code.
That's it, now you can start coding!
Well, kind of. While above is true for those who want just to treat VSC as a playground of sorts, its not enough for any professional. For it, youneed to install extensions. At the very least these ones that greatly improves quality of work.
Thank you, fixed the typo. I'm a big fan of some extensions, I could probably write a whole article about the best VSCode extensions.
I'm a big fan of some extensions
Oh yes, so do I..............some of therm is so must-have that should be added to core imho.
I could probably write a whole article about the best VSCode extensions.
Go ahead :) Im sure it will be good read :)
Beginner Tutorials
My goal with this series is to train people with zero coding experience and turning them into high-earning software engineers.



