Skip to main content

1 Developer Tools Fundamentals

Main visual for Developer Tools Fundamentals

Chapter 1 has one job: make sure you can create code, run code, save code, and explain how to rerun it.

See The Workstation

AI workstation comic guide for developer tools

Read the picture first. The whole chapter is this loop:

terminal -> project folder -> Python environment -> editor/notebook -> Git history

Do not try to master every tool now. Build one stable workstation, then reuse it in later AI projects.

Learning Order And Task List

Use this table as both the guide and the task list.

PageFollow-along actionEvidence to keep
1.1.1 Terminal and command lineOpen the terminal and run pwd, ls, cdA short command log
1.1.2 Basic terminal operationsCreate, move, inspect, and remove files in a practice folderFolder screenshot or terminal output
1.1.3 Package managersCheck how your system installs toolsTool version notes
1.2.1 Git basics and 1.2.2 Git core operationsSave a first local project snapshotOne clean Git commit
1.3.1 Python environmentCreate a virtual environment and run Python inside itPython version and environment command
1.3.2 VS Code and 1.3.3 JupyterEdit code in an editor and explore in a notebookWorking editor/notebook notes
1.4.1 Follow-along workshopCombine terminal, Python, editor, notebook, and GitReproducible ai-learning-lab README

The workshop stays at the end because it is the integration step: learn the pieces first, then connect them.

First Runnable Loop

Run this in a practice folder. It creates a tiny project, runs it, documents it, and commits it.

mkdir ai-learning-lab
cd ai-learning-lab
python -m venv .venv
. .venv/bin/activate
python -c "import sys; print(sys.executable)"
printf '.venv/\n__pycache__/\n' > .gitignore
printf 'print("AI learning lab is ready")\n' > hello_ai.py
printf '# AI Learning Lab\n\nActivate env: . .venv/bin/activate\nRun with: python hello_ai.py\n' > README.md
python hello_ai.py
git init
git add .gitignore README.md hello_ai.py
git commit -m "init learning lab"

Expected output:

AI learning lab is ready

If the command fails, do not erase the error. Save the command, full output, operating system, Python version, and current directory. That record is useful project evidence.

On Windows PowerShell, use .venv\Scripts\Activate.ps1 instead of . .venv/bin/activate. If your system uses python3, replace python with python3 consistently in the commands and README.

Depth Ladder

LevelWhat you can prove
Minimum passYou can create a folder, run a script, and identify the current directory and Python interpreter.
Project-readyA fresh terminal can follow your README, .venv/ is ignored, and git status only shows intentional changes.
Deeper checkYou can explain why PATH, working directory, shell, and interpreter choice change results across machines.

Common Failures

SymptomFirst thing to checkUsual fix
Command not foundIs the tool installed and available in PATH?Reopen the terminal or reinstall the tool
Python import failsAre python and pip from the same environment?Install with python -m pip install ...
File not foundAre you in the correct directory?Run pwd and ls, then move to the project folder
Git commit failsIs Git initialized, staged, and configured?Run git status and set username/email if needed
README command failsDid the README include every required step?Test from a fresh terminal and update the README

Pass Check

Move to Chapter 2 when you can answer these five questions:

  • Which directory is the terminal using?
  • Which Python interpreter is running your script?
  • What changed since the last Git commit?
  • What command reruns the project from a fresh terminal?
  • Where did you record your first error and fix?

The goal is not tool perfection. The goal is a workstation stable enough for the rest of the course.