Follow along

Get new tutorials in your feed reader

RSS lets you follow Code Academy without an account, emails or tracking. New articles appear in your reader as soon as they're published.

RSS

Latest in the feed

Python Generators: Lazy Iteration with yield

How yield turns a function into a generator, why generators use almost no memory, and how to build lazy data pipelines with them in Python.

PythonIntermediate6 min read
A Python generator function handing out squared numbers one at a time, with the next value not computed yet

Writing Bash Scripts That Don't Break

Most shell scripts work fine until a file name has a space in it or a command fails halfway through. Learn strict mode, quoting, safe temporary files and cleanup traps, then put it all together in a real backup script.

LinuxIntermediate6 min read
A terminal running a Bash script that starts with set -euo pipefail