browse/
6 results
languages/generators-how-a-python-function-can-pause-in-the-middle-and-pick-up-w.md
Generators: how a Python function can pause in the middle and pick up where it left off
A generator is a Python function that can pause halfway, hand you a value, and carry on later from the same line with its variables intact…
infrastructure/environment-variables-how-the-same-code-talks-to-a-practice-database-o.md
Environment variables: how the same code talks to a practice database on your laptop and the real one online
The same program can talk to a practice database on your laptop and the real one on a live website, without a single edit to its code. The…
languages/ruby-strings-why-changing-b-also-changes-a.md
Ruby strings: why changing b also changes a
In Ruby, `b = a` does not copy a string: it puts a second label on the same object. So `b << "s"` changes `a` too, while `b += "s"` does…
tools/path-why-a-terminal-says-command-not-found-for-a-program-you-installed.md
PATH: why a terminal says command not found for a program you installed
You installed a tool, but the terminal says `command not found`, or it runs an older version. The cause is almost always `PATH`: a short…
infrastructure/from-localhost-to-production-what-deploying-your-code-really-means.md
From localhost to production: what “deploying” your code really means
Your app runs perfectly at localhost:3000, but the link does nothing on a friend's phone. That's because localhost means "this computer"…
languages/what-a-variable-really-is-python-names-values-and-the-sign.md
What a variable really is: Python names, values and the = sign
In Python, a variable isn't a box that holds a value. It's a name tag tied to a value that lives on its own. That one picture explains why…