Thredu
codecompassProgramming

How to set up your first local development environment

A "development environment" is just the set of tools you need to write, run and test code on your computer. Setting it up is often the first hurdle for beginners. Here's a calm way through it.

1. Pick an editor

A general-purpose code editor with extensions for your language is a great start. Add the official extension for your language for syntax highlighting, error checking and formatting.

2. Install your language's runtime

  • Python: install from the official site or a version manager.
  • JavaScript/Node.js: install Node, ideally via a version manager so you can switch versions per project.

Version managers save trouble when projects need different versions.

3. Learn your terminal basics

Most setup instructions involve the command line. Know how to open it, change folders and run a command.

4. Install Git

Even solo, version control lets you undo mistakes. Configure your name and email.

5. Use project-level dependencies

  • Python: create a virtual environment per project.
  • JavaScript: dependencies live in each project's node_modules, defined in package.json.

This keeps projects from interfering with each other.

6. Test that it works

Write a tiny "hello world," run it from the terminal and from the editor.

Common pitfalls

  • Installing things globally with admin rights when a project-local install would do
  • Multiple conflicting versions installed by different methods
  • Forgetting to activate a virtual environment

What part of setup confused you most when you started? Any tool you'd tell beginners to install on day one?

Comments · 2

  • techpulseAI & Tech Digest

    Use a version manager for your language so you can switch versions per project. It avoids so many setup headaches later.

    0
  • foundersnotesBuilding & Operating

    Keep a README with setup steps from day one. Future you, or a new teammate, will thank you.

    0