# Lessons

Short programming lessons in plain words, from Novice to Master, with code, key terms and cheat sheets. Search every lesson.

- ["Play Next" Without Moving Everyone: Linked Lists](https://www.ask-codey.com/lessons/ds-linked-lists) (Apprentice): Tapping "Play next" on a long up-next queue moves every song in it. Find a way to put a song at the front in two steps at any length, and meet the structure that does it: the linked list.
- [$group: Totals, Counts and Averages](https://www.ask-codey.com/lessons/mongodb-aggregation-group) (Journeyman): The $group stage sorts documents into groups by the value of a field, or puts them all in one group, and computes each group's total, count, average, smallest, biggest and first value with accumulators.
- [$lookup: Bringing in Related Documents](https://www.ask-codey.com/lessons/mongodb-aggregation-lookup) (Journeyman): $lookup brings matching documents from another collection into each document of a pipeline, such as each order's customer, as an array you can unwind, and a lookup a screen needs on every read is a sign to embed or copy those fields instead.
- [$unwind: One Document per Array Item](https://www.ask-codey.com/lessons/mongodb-aggregation-unwind) (Journeyman): $unwind turns a document with an array into one document per item, so a pipeline can count, group and total the items themselves, such as the units of each product sold across every order.
- [.http Files in Visual Studio](https://www.ask-codey.com/lessons/dissecting-the-request-and-response-http-files-in-visual-studio) (Journeyman): An .http file holds requests written as plain text, one after another, separated by ###. Visual Studio sends each one with a click and shows the response's status, headers and body, so you can test an API without leaving your project.
- [@if and @for](https://www.ask-codey.com/lessons/binding-and-events-in-angular-if-and-for) (Apprentice): @if shows part of a template only when a condition is true, with @else for the other case. @for repeats part of a template for each item of a list, with track to tell the items apart, and @empty for an empty list.
- [\`try\`, \`catch\` and \`finally\`](https://www.ask-codey.com/lessons/powershell-try-catch) (Journeyman): try runs your lines, catch runs only if one of them hits an error that stops it (which -ErrorAction Stop arranges), $\_ in catch is the error, so you can tell the user what happened and what to do, and finally runs whatever happens.
- [\`-WhatIf\` in Your Own Tools](https://www.ask-codey.com/lessons/powershell-supports-should-process) (Freelancer): SupportsShouldProcess in \[CmdletBinding()\] gives a function -WhatIf and -Confirm, and wrapping each change in if ($PSCmdlet.ShouldProcess(target, action)) makes it print a What if: line instead of changing anything, or ask before each change, exactly like Remove-Item.
- [5,000 Folders Deep: Recursion or a Loop?](https://www.ask-codey.com/lessons/ds-recursion-vs-loops) (Journeyman): Keep the folder tool working on a folder thousands of levels deep, where recursion runs out of call stack: why a bigger limit and a plain loop both fall short, how a loop with a pile of its own does the job, and how to choose between recursion and a loop for any task.
- [800 Lost Items and a Line at the Desk: What a Data Structure Is](https://www.ask-codey.com/lessons/ds-what-is-a-data-structure) (Novice): Keep a school lost-and-found's 800 items so the lunch line keeps moving: why one box, a list and A to Z order fall short, what a data structure is, and the trade-off every one of them makes.
- [A Cleaning Function, Step by Step](https://www.ask-codey.com/lessons/pandas-cleaning-function) (Journeyman): Cleaning steps scattered across notebook cells are hard to run again the same way, so each step becomes a function that starts with result = df.copy() and returns a new table, one clean(raw) function runs them all in order, method chaining with pipe, assign and rename writes it as one readable recipe, and in pandas 3 a single value is changed with .loc.
- [A Contact List That's Fast to Search and Easy to Change: Binary Search Trees](https://www.ask-codey.com/lessons/ds-binary-search-trees) (Journeyman): Keep 100,000 contacts so a name is found on every keystroke, new contacts go in all day, and the screen shows everyone A to Z, or from Kai to Maya, without sorting: why an unsorted list, a sorted array and a dictionary each fall short, and the structure that fixes them, the binary search tree.
- [A Data Layer: One File That Talks to the Database](https://www.ask-codey.com/lessons/mongodb-driver-a-data-layer) (Journeyman): A data layer keeps every driver call in one file, data/pets.js, whose functions listPets, getPet, addPet and updatePet the routes call without ever touching the driver, turning each document into a plain pet and building filters, a projection, a sort and pages from the query string.
- [A Database Connection for Every Request](https://www.ask-codey.com/lessons/fastapi-data-get-db-dependency) (Journeyman): A get_db dependency opens a SQLite connection for each request, hands it to the route with yield, commits when the route succeeds, rolls back when it raises, and always closes it, so plain def routes ask for a connection with Depends instead of opening and closing their own.
- [A Dev Server and Build with Vite](https://www.ask-codey.com/lessons/javascript-tooling-vite) (Journeyman): Vite gives a web project a dev server that shows every change the moment you save, and a build that bundles your code and packages into a small dist folder ready to put online.
- [A First Look at CSS](https://www.ask-codey.com/lessons/html-a-first-look-at-css) (Novice): CSS is the language that decides how a page looks, and one link line in the head connects your page to a stylesheet, such as the ready-made one this course gives you.
- [A First Look: head, info and describe](https://www.ask-codey.com/lessons/pandas-head-info-describe) (Apprentice): head, tail and sample show a few of a DataFrame's rows, info lists every column's type and how many values are there (the first hint of missing values), and describe sums up each number column in eight numbers, from count and mean to the quartiles, with include='all' adding the text columns.
- [A First WebSocket Connection](https://www.ask-codey.com/lessons/node-websockets-first-connection) (Journeyman): The ws package puts a WebSocketServer on the same server and port as an Express app, its connection, message and close events let the server hear from each client and answer it, and the browser's own WebSocket connects a page, with JSON messages whose type says what each one is.
- [A Free MongoDB Atlas Cluster](https://www.ask-codey.com/lessons/node-deploy-atlas-cluster) (Journeyman): An API online can't reach the MongoDB on your laptop, so this lesson makes a free MongoDB Atlas cluster with a database user and network access, keeps its connection string secret in .env, and checks that Node connects to it.
- [A Million Songs to Sort Before Bedtime: Merge Sort](https://www.ask-codey.com/lessons/ds-merge-sort) (Journeyman): Sort a million songs by title in seconds instead of all night: why the simple sorts take hundreds of billions of comparisons, what splitting the list in half buys, and the sort built on splitting and merging, merge sort, with its price in memory.
- [A Model That Guesses](https://www.ask-codey.com/lessons/python-taste-ml-a-model-that-guesses) (Apprentice): A machine learning model is a rule a program learns from examples instead of one you write, and scikit-learn's LinearRegression learns one from a lemonade stand's summer with fit, then guesses the cups a day will sell with predict.
- [A New PC from One File: \`winget export\` and \`import\`](https://www.ask-codey.com/lessons/powershell-winget-export) (Journeyman): winget export writes the list of apps on a PC to a JSON file, which PowerShell can read and change with ConvertFrom-Json and ConvertTo-Json -Depth, and winget import installs every app on the list on a new PC in one command.
- [A Notebook That Tells a Story](https://www.ask-codey.com/lessons/data-notebook-that-tells-a-story) (Journeyman): A report notebook leads its reader from a title and the question to the short answer first, then the evidence, how it was done and what the data can't show, written in Markdown cells with headings, lists, bold and tables, and kept apart from the notebook you explored in.
- [A Prompt in Your Colors](https://www.ask-codey.com/lessons/bash-custom-prompt) (Journeyman): The prompt is the text in a variable, PS1, so you choose what it shows with codes such as \\W for the folder and \\A for the time, color it with \\\[\\e\[…m\\\] codes, show the Git branch with \_\_git_ps1, and keep it in ~/.bashrc.
- [A Prompt in Your Colors](https://www.ask-codey.com/lessons/powershell-custom-prompt) (Journeyman): PowerShell's prompt is a function named prompt that runs before every command you type, so you can write your own that shows the folder's name, the time and colors from $PSStyle, and keep it in your profile.
- [A Recipe with a Name](https://www.ask-codey.com/lessons/dp-a-recipe-with-a-name) (Novice): A design pattern has four parts, a name, a problem, a solution and its consequences, like a recipe card; this lesson shows where patterns came from (an architect's book, then the 1994 book of 23 patterns in three families) and why a pattern is a shared word, not a library you install.
- [A Report Script That Finds the Newest Data](https://www.ask-codey.com/lessons/data-report-script) (Journeyman): A report script runs with one command instead of a person running notebook cells, finds the newest week's file with sorted and glob (which works because the file names start with the year), stacks every week into one table with concat, and takes its folder as an option through a main(argv) function, so running it again next week builds next week's report.
- [A Script Is an Application](https://www.ask-codey.com/lessons/bash-scripts-are-applications) (Novice): Every application takes something in, does some work and gives something back, and a bash script does the same from a text file of commands you can read, which makes it a quick-run application of your own, best at jobs made of files, folders and other programs.
- [A Script Is an Application](https://www.ask-codey.com/lessons/powershell-scripts-are-applications) (Novice): Every application takes something in, does some work and gives something back, and a PowerShell script does the same from a .ps1 text file you can read, which makes it a quick-run application of your own, best at jobs made of files, data, settings and other programs.
- [A Simple API Client](https://www.ask-codey.com/lessons/calling-apis-with-httpclient-using-a-simple-http-client) (Journeyman): Wrap an API in a client class, the way a DAO wraps a table. It's given an HttpClient, has one async method per endpoint, and turns 404 into null or false, so the rest of the program never sees a URL, a status code or JSON.
- [A Team Pattern Catalog: Adding, Changing and Retiring](https://www.ask-codey.com/lessons/dp-team-pattern-catalog) (Freelancer): Once a team has a handful of pattern cards, they drift: two contradict, one describes how things used to be done, and new teammates copy whatever they find first; a catalog keeps every card in one place with a status, changes cards through review with a short decision record, and retires old patterns without deleting them.
- [A Tour of the Express Starter: Routes, Requests and Responses](https://www.ask-codey.com/lessons/mongodb-express-starter-tour) (Apprentice): The Maple Street Pet Adoption Center's API is handed over, built with Express, and this lesson runs it and tours it, from npm start and its routes to req.params, req.query and req.body, res.json and status codes, ending at data/pets.js, the one file the database code goes in.
- [A Web Server with Node's http Module](https://www.ask-codey.com/lessons/node-http-first-server) (Apprentice): Node's own http module starts a web server that keeps running and calls your function once for every request, which reads req.method and req.url and answers with res.writeHead and res.end.
- [Absolute](https://www.ask-codey.com/lessons/css-position-absolute) (Apprentice): Absolute positioning takes an element out of the page's flow and places it relative to its nearest positioned ancestor, usually a parent with position relative.
- [Abstract Factory: Parts That Must Match](https://www.ask-codey.com/lessons/dp-abstract-factory) (Journeyman): When each brand needs its own connection, command format and status reader, and three separate factories each pick one by the brand's name, one copied line can hand a Bolt lock a Tuneo reader; an abstract factory gives each brand one kit that makes all of its parts, so they can't be mixed.
- [Abstraction in Art](https://www.ask-codey.com/lessons/general-abstraction-abstraction-in-art) (Novice): Abstraction means leaving out the details you don't need, shown through examples from art, math, language and the animal kingdom.
- [Abstraction in C#: an overview](https://www.ask-codey.com/lessons/abstraction-in-csharp-an-overview) (Apprentice): In code, abstraction means working with an object through the few things that matter to you, and ignoring the rest. Base classes already do this; abstract classes and interfaces take it further.
- [Abstraction in OOP: an overview](https://www.ask-codey.com/lessons/abstraction-in-oop-an-overview) (Apprentice): Abstract classes take inheritance a step further, letting you write general classes whose properties and logic child classes share.
- [Accuracy](https://www.ask-codey.com/lessons/ml-accuracy) (Apprentice): Accuracy is the share of a classifier's guesses that are right, worked out by counting matches or with scikit-learn's accuracy_score, and it's a fair first number, but the same accuracy can hide very different mistakes, and a fraud check that never says fraud scores 98% on payments where 2% are fraud.
- [Adapter: The Interpreter Between Two Strangers](https://www.ask-codey.com/lessons/dp-adapter) (Apprentice): When the hub's routines are written in three brands' words (setPower, release, startStream), every new brand edits every routine; an adapter is a small class that keeps the hub's own promise and passes each call on in the brand's words, so the hub never learns a brand's language.
- [Adding Abstraction](https://www.ask-codey.com/lessons/abstraction-in-csharp-adding-abstraction) (Journeyman): Mark a base class abstract when it's too general to create on its own. An abstract class can't be created with new, and its abstract methods have no body, so every concrete derived class must override them.
- [Adding Abstraction](https://www.ask-codey.com/lessons/abstraction-in-oop-adding-abstraction) (Journeyman): How to mark a class and its methods \`abstract\` so it can't be created on its own and every child class must fill in the missing methods.
- [Adding and Removing Items](https://www.ask-codey.com/lessons/javascript-arrays-adding-and-removing) (Apprentice): Grow and shrink an array as things change, adding and removing items at the end with push and pop, at the front with unshift and shift, and in the middle with splice.
- [Adding Many Documents with insertMany](https://www.ask-codey.com/lessons/mongodb-insertmany-adding-many-documents) (Apprentice): insertMany adds a whole list of documents in one call and tells you each one's \_id; a duplicate \_id stops it unless you set ordered to false, and load() runs a whole file of them.
- [Adding Pictures](https://www.ask-codey.com/lessons/html-adding-pictures) (Novice): The img element puts a picture on your page, with src saying which picture file to show and alt saying in words what the picture tells the reader.
- [Adding Test Classes](https://www.ask-codey.com/lessons/unit-testing-with-mstest-adding-test-classes) (Apprentice): Add an MSTest test project beside your app, give it a reference to the app, and add a test class for each class you test.
- [Adding Test Classes](https://www.ask-codey.com/lessons/unit-testing-adding-test-classes) (Apprentice): Add the JUnit dependency to pom.xml, then let IntelliJ generate a test class for the class you want to test.
- [ADO.NET Objects](https://www.ask-codey.com/lessons/querying-a-database-with-ado-net-ado-net-objects) (Journeyman): Use SqlConnection to connect, SqlCommand to run SQL, and SqlDataReader to read rows, choosing ExecuteReader, ExecuteScalar or ExecuteNonQuery for each kind of statement.
- [Advanced Functions: \`\[CmdletBinding()\]\`](https://www.ask-codey.com/lessons/powershell-advanced-functions) (Journeyman): One line, \[CmdletBinding()\] above param(), turns a function into an advanced function that binds its parameters the way a cmdlet does: it refuses a misspelled parameter instead of quietly ignoring it, and gets -Verbose, -ErrorAction and the other common parameters for free.
- [Aliases and Small Functions](https://www.ask-codey.com/lessons/powershell-aliases-and-small-functions) (Apprentice): Set-Alias gives a command a short name of your own, and when the job needs a parameter's value or more than one step, a small function does it instead; both go in your profile so they're there in every window.
- [Aliases and Small Functions](https://www.ask-codey.com/lessons/bash-aliases-and-small-functions) (Apprentice): An alias gives a long command a short name, such as ll for ls -lah, and a small function does the same for a job that needs the word you type after it, such as mkcd to make a folder and go into it.
- [All of .NET at Your Fingertips](https://www.ask-codey.com/lessons/powershell-dotnet) (Freelancer): Under every cmdlet is .NET, a library of thousands of ready-made tools, and PowerShell reaches any of them directly: a type in square brackets and :: call its static members, such as \[Math\]::Round, \[IO.Path\]::GetExtension and \[Guid\]::NewGuid(), and Add-Type compiles a few lines of C# into tools of your own.
- [Alt Text That Helps](https://www.ask-codey.com/lessons/html-images-alt-text-that-helps) (Apprentice): Write alt text by what each picture is for, so a page still makes sense to someone who can't see its pictures, and add captions everyone can read.
- [Angular Components: an overview](https://www.ask-codey.com/lessons/angular-components-an-overview) (Novice): An Angular app is a tree of components. Each component is a small, reusable piece of the page, made of a TypeScript class for its data and behavior, an HTML template for how it looks, and its own styles.
- [Another Way: A Free Cluster on MongoDB Atlas](https://www.ask-codey.com/lessons/mongodb-setup-atlas-free-cluster) (Novice): Make a free MongoDB Atlas cluster in the browser, with a database user and your IP address on its access list, connect mongosh and Compass to it with its mongodb+srv connection string, and stay on the Free tier so nothing costs money.
- [ANSI Standard Syntax for DELETE](https://www.ask-codey.com/lessons/deleting-data-ansi-standard-syntax-for-delete) (Apprentice): Remove rows with DELETE FROM, always limited by a WHERE clause you've checked with a SELECT first.
- [ANSI Standard Syntax for UPDATE](https://www.ask-codey.com/lessons/updating-data-ansi-standard-syntax-for-update) (Apprentice): Change existing rows with UPDATE ... SET, and always limit it with a WHERE clause you've checked with a SELECT first.
- [Answer It in One Step: Trading Memory for Time](https://www.ask-codey.com/lessons/big-o-time-vs-memory) (Apprentice): Answer "how long are the first few songs?" in one step instead of a loop, by spending a little memory on running totals, and measure both sides of that trade in Big-O: time complexity and space complexity.
- [Answering a Question by Hand, and Where It Breaks](https://www.ask-codey.com/lessons/data-by-hand-where-it-breaks) (Apprentice): A list of order dictionaries, a loop and a dictionary of running totals answer a coffee chain's question about sales by store in plain Python, and three more questions and one blank price show where hand-written code starts to strain, which is the problem a table library such as pandas solves.
- [Anti-Patterns: Mistakes with Names](https://www.ask-codey.com/lessons/dp-anti-patterns) (Journeyman): Teams keep making the same mistakes, as they keep finding the same fixes, and the mistakes have names too: the god object, the golden hammer, copy-paste programming and spaghetti code are anti-patterns, answers that look like they work, cause more trouble than they solve, and have a known better answer.
- [APIs as Objects: \`Invoke-RestMethod\`](https://www.ask-codey.com/lessons/powershell-invoke-restmethod) (Journeyman): Invoke-RestMethod asks a web API for data and turns its JSON answer into objects, so a weather forecast arrives ready for Select-Object, Where-Object and the rest of the pipeline, and query parameters after a ? in the address ask for exactly what you want.
- [Appending to a File](https://www.ask-codey.com/lessons/writing-to-files-in-csharp-appending-to-a-file) (Journeyman): To add to the end of a file instead of replacing it, open a StreamWriter with append set to true, or use File.AppendAllText. Either creates the file if it isn't there yet.
- [Appending to a File](https://www.ask-codey.com/lessons/working-with-the-filestream-appending-to-a-file) (Journeyman): How to add lines to the end of a file by opening a \`FileOutputStream\` in append mode.
- [Are These Two Friends? Adjacency Lists and Grids](https://www.ask-codey.com/lessons/ds-graph-representations) (Journeyman): Answer "are these two already friends?" in one step without running out of memory, before every Add friend button: why reading a friend list and a box for every pair both fall short at a million people, and how to choose between an adjacency list, a set per person and an adjacency matrix.
- [Are Two Loops Twice as Slow? Why O(2n) Is Still O(n)](https://www.ask-codey.com/lessons/big-o-dropping-constants) (Apprentice): Big-O keeps only the part of the step count that grows fastest and drops the rest, so 2n steps is O(n) and n² + n steps is O(n²). Here's why, and when the small stuff still matters.
- [Arguments, Exit Codes and Clear Errors](https://www.ask-codey.com/lessons/node-command-line-arguments) (Apprentice): A command-line tool reads the words typed after it with process.argv and util.parseArgs, prints a --help line, sends errors to console.error with a message a person can act on, and sets process.exitCode so the computer that ran it knows whether it worked.
- [Arguments: $1, $# and "$@"](https://www.ask-codey.com/lessons/bash-script-arguments) (Apprentice): The words typed after a script's name are its arguments: $1 is the first, $2 the second, $# says how many there are, and "$@" hands all of them on, each in one piece.
- [ARIA: When HTML Isn't Enough](https://www.ask-codey.com/lessons/html-accessibility-aria) (Freelancer): ARIA attributes change what a screen reader announces, never how an element behaves, so you use them only where HTML has no element or attribute for the job, such as naming an icon-only button.
- [Arithmetic and Expressions](https://www.ask-codey.com/lessons/arithmetic-and-expressions) (Novice): Do arithmetic in Java with +, -, \*, / and %, see why dividing two ints drops the remainder, and follow the order in which Java works out an expression.
- [Arithmetic and Expressions in C#](https://www.ask-codey.com/lessons/arithmetic-and-expressions-in-csharp) (Novice): Calculate in C# with + - \* / and %, know why 5 / 4 is 1, and work out an expression in the order C# does.
- [Array Basics](https://www.ask-codey.com/lessons/arrays-in-csharp-array-basics) (Novice): Create C# arrays, read and change their elements by index starting at 0, and use Length to find the last one.
- [Arrays](https://www.ask-codey.com/lessons/csharp-vs-javascript-arrays) (Apprentice): A JavaScript array works like a C# List&lt;T>. It grows and shrinks with push, pop, shift and unshift, and has length, includes and indexOf. Its filter, map, find and reduce methods do the jobs of LINQ's Where, Select, First and Sum.
- [Arrays](https://www.ask-codey.com/lessons/bash-arrays) (Journeyman): An array keeps a list in numbered slots, counted from 0: songs=("Highway Tea" "Window Down") makes one, ${songs\[0\]} reads a slot, ${#songs\[@\]} counts the items, songs+=( ) adds one, "${songs\[@\]}" hands on every item in one piece, and mapfile -t fills an array from a file's lines.
- [Arrays](https://www.ask-codey.com/lessons/java-vs-javascript-arrays) (Apprentice): How to add and remove items in a JavaScript array, and how filter(), map() and reduce() work like Java's Stream methods.
- [Arrays and Documents Inside Documents](https://www.ask-codey.com/lessons/mongodb-arrays-and-nested-documents) (Novice): Square brackets hold a list, called an array, such as a recipe's tags; braces inside a document hold a document inside a document, such as its nutrition box; and a list of documents holds the ingredients, each with a name, an amount and a unit.
- [Arrays and Lists](https://www.ask-codey.com/lessons/ds-code-you-need-arrays-and-lists) (Novice): A review of the two ways each language keeps items in a row: a fixed-size array and a list that grows, reading and changing an item by its index, and when to use each.
- [Arrays of Documents and $elemMatch](https://www.ask-codey.com/lessons/mongodb-arrays-of-documents-and-elemmatch) (Journeyman): Dot notation reaches a field of every document in an array, such as "ingredients.name"; two such conditions can be met by two different items, and $elemMatch makes them hold for the same item.
- [Arrays of Objects](https://www.ask-codey.com/lessons/javascript-objects-arrays-of-objects) (Apprentice): An array of objects is a list of records, like a stack of filled-in forms, and it's how programs keep search results, carts and listings that you read, loop over and update.
- [Arrays vs Linked Lists](https://www.ask-codey.com/lessons/ds-arrays-vs-linked-lists) (Journeyman): Put the growing array's and the linked list's cost cards side by side, see why growing arrays win most of the time in real code, and learn the jobs where a linked list is the better fit.
- [Arrow Functions](https://www.ask-codey.com/lessons/csharp-vs-javascript-arrow-functions) (Apprentice): An arrow function is JavaScript's lambda, written (a, b) => a + b, almost exactly like C#. One parameter needs no parentheses, a body in braces needs a return, and an object returned on its own needs parentheses around it.
- [Arrows: Is-a, Has-a and Uses](https://www.ask-codey.com/lessons/dp-class-diagram-arrows) (Apprentice): Boxes alone don't say how classes connect, so a class diagram joins them with four arrows (inherits, implements, has and uses), each with its own line and arrowhead, and each one read out loud as a sentence about the design.
- [Article, Section and Aside](https://www.ask-codey.com/lessons/html-article-section-and-aside) (Apprentice): Inside the main content, mark up each piece that stands on its own as an article, each themed group with its own heading as a section, and related extras as an aside, using one short test for each.
- [Asking for Input, and Converting Types](https://www.ask-codey.com/lessons/python-input-and-converting-types) (Apprentice): input() asks a question in the terminal and always hands back the answer as text, so a program turns typed numbers into numbers with int() or float() (and numbers into text with str()), checks a value's type with type(), and stops with a ValueError when the text isn't a number.
- [Asking Questions: \`Read-Host\`](https://www.ask-codey.com/lessons/powershell-read-host) (Apprentice): Read-Host asks a question, waits, and hands back what was typed, always as text, -MaskInput shows stars instead of the answer, and a parameter is usually the better way in, because a question needs someone at the keyboard and a script that runs on its own has no one there.
- [Asking Questions: read](https://www.ask-codey.com/lessons/bash-reading-input) (Apprentice): read waits for the user to type a line and keeps it in a variable: -p shows a question first, -s hides what's typed, and ${name:-default} gives an answer that was left empty a default.
- [Asking the Same Question Twice: Memoization](https://www.ask-codey.com/lessons/ds-memoization) (Journeyman): Speed up a recursive function that answers 10 stairs at once, 40 in half a minute and 50 in about an hour: why a faster computer and a loop with your own stack don't help, where the time really goes, and how writing each answer down, memoization, makes it instant.
- [Associative Arrays: Lists with Names](https://www.ask-codey.com/lessons/bash-associative-arrays) (Freelancer): An associative array finds each value by a name instead of a number: declare -A total makes one, total\[chill\]=15 stores a value under a name, "${!total\[@\]}" lists the names, and adding to total\[$mood\] inside a loop keeps a total for every category; it needs bash 4 or newer, which on a Mac means bash 5 from Homebrew.
- [Async and Await](https://www.ask-codey.com/lessons/calling-apis-from-javascript-async-and-await) (Journeyman): JavaScript has async and await too, working just like C#'s. An async function can await a promise, such as fetch's, and read like ordinary code, with try and catch for errors. Use it to load data into the page and send a form to an API.
- [async and await](https://www.ask-codey.com/lessons/javascript-promises-async-and-await) (Journeyman): async and await let you write code that waits for promises as if it were a recipe, one step under another, with try and catch for the steps that fail.
- [async and await in Plain Words](https://www.ask-codey.com/lessons/fastapi-async-await-plain-words) (Journeyman): Most of a back end's time goes on waiting, so an async def function can pause at each await and let other work run, asyncio.gather waits for two things at once instead of one after the other, and time.sleep inside async def holds up everything else.
- [Async Routes: When They Help, and When They Don't](https://www.ask-codey.com/lessons/fastapi-async-routes-when-they-help) (Freelancer): An async def route that calls other services with httpx's AsyncClient can ask them all at once with asyncio.gather and give up after a timeout with a 503, while routes with blocking code such as sqlite3 stay plain def, because one blocking call inside async def holds up every request.
- [Attribute Selectors](https://www.ask-codey.com/lessons/css-attribute-selectors) (Apprentice): Attribute selectors reach elements by what their tags say, such as every checkbox, the song that's playing now, every link to a PDF or every link that leaves your site, with no class added.
- [Attributes](https://www.ask-codey.com/lessons/html-attributes) (Novice): Attributes add information to an element, such as its language, a tooltip or a name for it, written in the start tag as a name, an equals sign and a value in quotes.
- [Authentication vs Authorization](https://www.ask-codey.com/lessons/security-and-sessions-authentication-vs-authorization) (Apprentice): Authentication asks who you are; authorization asks what you're allowed to do. A web app proves who you are once, at sign-in, then remembers you with a cookie on every request after.
- [Autocomplete and Phone Keyboards](https://www.ask-codey.com/lessons/html-forms-autocomplete-and-input-modes) (Journeyman): The autocomplete, inputmode and enterkeyhint attributes let a browser fill in what it already knows and give a phone the right keyboard, so a form takes seconds instead of minutes.
- [Auto-Properties and Read-Only Properties](https://www.ask-codey.com/lessons/properties-in-csharp-auto-properties-and-read-only-properties) (Apprentice): Write short auto-properties, make a property read-only to the outside with private set or get-only, and calculate a property from others.
- [Axios](https://www.ask-codey.com/lessons/fetch-vs-axios-axios) (Apprentice): Call a REST API with the Axios library, whose get, post, put and delete functions set the method, the JSON header and the error check for you.
- [Azure Cosmos DB's MongoDB API, Briefly](https://www.ask-codey.com/lessons/mongodb-azure-cosmos-db-mongodb-api) (Journeyman): Azure has two services your MongoDB code can talk to, Azure Cosmos DB for MongoDB, billed in request units, and Azure DocumentDB, billed by its servers, and moving to either is often a new connection string plus a careful check of what each one doesn't support.
- [Background Jobs and Parallel Work](https://www.ask-codey.com/lessons/powershell-jobs) (Freelancer): Start-ThreadJob runs a script block in the background while you keep working, Get-Job shows its State, and Receive-Job hands over what it printed; ForEach-Object -Parallel does each item in its own runspace, -ThrottleLimit 4 at a time, which resizes 500 photos in a quarter of the time, with $using: to bring in a variable from outside.
- [Background Jobs: &, jobs, fg and bg](https://www.ask-codey.com/lessons/bash-background-jobs) (Journeyman): An & at the end of a command runs it in the background and gives you the prompt back; jobs lists what's running, Ctrl+Z pauses the job in front, fg and bg bring a job back or let it carry on behind you, and nohup keeps a job running after the terminal closes.
- [Backups That Work: \`robocopy\`](https://www.ask-codey.com/lessons/powershell-robocopy) (Journeyman): robocopy, the copying program that comes with Windows, copies a folder and after that only what changed, mirrors it with /MIR (which deletes from the backup too), rehearses with /L, and ends with an exit code where anything below 8 means success.
- [Backups That Work: rsync](https://www.ask-codey.com/lessons/bash-rsync) (Journeyman): rsync -a copies a folder and, every time after the first, only the files that changed; a slash at the end of the source means "what's inside"; --delete makes the backup a mirror, so rehearse it with -n first; and a backup counts only once you've restored from it and compared the result with diff -r.
- [Bar Charts: Comparing Categories](https://www.ask-codey.com/lessons/data-bar-charts) (Apprentice): A bar chart draws one bar for each category with its height as the amount, so ax.bar compares groups such as flavors, sorting the table first puts the biggest bar first, ax.barh lays long names out sideways, and ax.bar_label writes each bar's number on it.
- [Baselines and Residual Plots](https://www.ask-codey.com/lessons/ml-regression-baselines-and-residual-plots) (Journeyman): A DummyRegressor that always guesses the training average is the baseline a model must beat on the same test set, and a predicted-versus-actual plot and a residual plot show where the misses are, while a pattern in the residuals says the model is missing something it could use.
- [Bold, Italic and What They Mean](https://www.ask-codey.com/lessons/html-emphasis-and-importance) (Novice): The strong, em, b, i and small elements all change how text looks, but each one says something different about what the words mean, so you choose them by meaning, not by looks.
- [Booleans and Comparisons](https://www.ask-codey.com/lessons/javascript-booleans-and-comparisons) (Novice): Ask yes-or-no questions about your values with comparisons such as === and >=, and keep the true or false answer in a well-named boolean.
- [Bootstrap and Tailwind: What a Framework Gives You and What It Costs](https://www.ask-codey.com/lessons/css-frameworks-bootstrap-and-tailwind) (Journeyman): The same library event card built in plain CSS, in Bootstrap 5.3.8 and in Tailwind CSS 4.3.3 shows what a CSS framework gives you (speed, consistency, ready-made parts and a responsive grid), what it costs (download size, look-alike sites, new names), how your own CSS makes it yours, and what to check before starting from a template.
- [Boxes: A Class on Paper](https://www.ask-codey.com/lessons/dp-class-diagram-boxes) (Novice): Code shows a design one line at a time, so teams draw it instead: each class as a box with its name, its fields and its methods, marked + for public and - for private, with an interface's box labeled as a promise.
- [box-sizing: Making Width Mean What You Think](https://www.ask-codey.com/lessons/css-box-sizing) (Apprentice): By default a box's width leaves out its padding and border, so it comes out wider than you asked; box-sizing border-box makes the width you write the width you get.
- [Brace Expansion: Twelve Folders in One Line](https://www.ask-codey.com/lessons/bash-brace-expansion) (Apprentice): Braces turn one word into many before a command runs, from a list such as {beach,city} or a range such as {01..12}, so mkdir makes a folder for every month in one line and cp file{,.bak} makes a quick backup.
- [Bridge: Any Control, Any Device](https://www.ask-codey.com/lessons/dp-bridge) (Journeyman): Three ways to control the house (the phone app, voice and the wall panel) times three brands of device made nine classes, and every new control or brand adds a whole row of them; a bridge splits the two into separate families, controls that have a device, so a new control or a new brand is one new class.
- [Broadcasting and Rooms](https://www.ask-codey.com/lessons/node-websockets-broadcasting) (Journeyman): A ws server broadcasts by sending one message to every open client in wss.clients, greets a client who connects late with the current state, keeps rooms as a Map of Sets so a message reaches only one group and cleans up when a client closes, and is tested with real ws clients on a port the test picks.
- [Browser Defaults and a Small Reset](https://www.ask-codey.com/lessons/css-browser-defaults-and-resets) (Apprentice): Every browser styles a page before your CSS arrives, with big headings, blue underlined links and margins you never wrote, and a short modern reset tames the defaults that get in your way without throwing away the useful ones.
- [BSON Types and the \_id Field](https://www.ask-codey.com/lessons/mongodb-bson-types-and-the-id-field) (Apprentice): MongoDB stores documents as BSON, which adds types JSON doesn't have; whole numbers become int and decimals double, money goes in NumberDecimal and dates in ISODate, and every document has an \_id, an ObjectId unless you choose your own.
- [Bubbling and Event Delegation](https://www.ask-codey.com/lessons/javascript-events-bubbling-and-delegation) (Journeyman): A click travels up from the element it happened on through every parent, so one listener on a list can handle every button inside it, even buttons added later.
- [Builder: Step by Step, Then Build](https://www.ask-codey.com/lessons/dp-builder) (Apprentice): When a shipment is made with a constructor of nine arguments, half of them false or empty, nobody can read a call and a swapped pair compiles fine; a builder names each step, leaves out what you don't need, and checks the whole thing once, when you build.
- [Builders the Modern Way: Named Arguments and Records](https://www.ask-codey.com/lessons/dp-builder-modern) (Journeyman): A builder fixes a long constructor, but it's a second class that repeats every field; named and optional arguments, records with with, Python dataclasses and JavaScript object literals do most of its job in the language itself, and this lesson shows when they do and when a builder still earns its place.
- [Building a Pipeline a Step at a Time](https://www.ask-codey.com/lessons/bash-building-a-pipeline) (Journeyman): Build a long pipeline the way people who write them do, starting with head on a few lines, adding one stage at a time and looking after each, and read someone else's one-liner the same way, from the left.
- [Built-in Validation](https://www.ask-codey.com/lessons/html-forms-built-in-validation) (Apprentice): A few HTML attributes let the browser check a form's answers before it sends them, so people fix a missing email or a short ZIP code right away, with no JavaScript.
- [But Arrays Can Be Tedious](https://www.ask-codey.com/lessons/array-review-in-csharp-but-arrays-can-be-tedious) (Apprentice): Arrays can't grow or shrink, so adding, inserting and removing elements means making new arrays and shifting values by hand.
- [But… Arrays can be Tedious](https://www.ask-codey.com/lessons/array-review-but-arrays-can-be-tedious) (Apprentice): An array has a fixed size, so growing it, or inserting or removing an item in the middle, means copying and shifting items yourself.
- [Buttons](https://www.ask-codey.com/lessons/html-forms-buttons) (Apprentice): A button's type decides what it does in a form, submit, reset or nothing at all, and a button with no type sends the form, which surprises people.
- [C# Data Types](https://www.ask-codey.com/lessons/csharp-data-types) (Novice): Every C# variable has a data type that decides what it can hold: whole numbers, decimals, money, single characters, text, or true and false.
- [C# in VS Code](https://www.ask-codey.com/lessons/development-tools-csharp-in-vs-code) (Apprentice): Build, run and debug C# in VS Code on Windows, macOS or Linux, with the .NET SDK, Microsoft's C# extension and a launch.json that tells the debugger what to start.
- [C# vs JavaScript: an overview](https://www.ask-codey.com/lessons/csharp-vs-javascript-an-overview) (Novice): JavaScript was made for browsers in 1995 and is standardized as ECMAScript. It looks like C#, with braces, if and for, but it's a different language. It runs in every browser, and in Node.js outside one.
- [calc(), min() and max(): Math in CSS](https://www.ask-codey.com/lessons/css-calc-min-max) (Journeyman): calc() does arithmetic with sizes, even mixing units such as 100% and 2rem, and min() and max() pick the smaller or the larger of two sizes, so a box fits a phone and a wide screen with no media query at all.
- [Calculations in Columns](https://www.ask-codey.com/lessons/the-select-statement-calculations-in-columns) (Apprentice): Calculate a new column from other columns in the same row, such as sales_price \* quantity.
- [Calculations in Columns](https://www.ask-codey.com/lessons/select-in-t-sql-calculations-in-columns) (Apprentice): Work out new values as you query, with arithmetic on a row's columns and joined text, and give each calculated column a name.
- [Calculations vs Aggregations](https://www.ask-codey.com/lessons/aggregate-functions-calculations-vs-aggregations) (Apprentice): The difference between a calculation, which works on the values in one row, and an aggregate function, which turns many rows into one value.
- [Calculations vs Aggregations](https://www.ask-codey.com/lessons/aggregate-functions-in-t-sql-calculations-vs-aggregations) (Apprentice): A calculation works within one row and returns a value for every row; an aggregation works across many rows and returns one value for all of them.
- [Calling a Stored Procedure from C#](https://www.ask-codey.com/lessons/stored-procedures-in-t-sql-calling-a-stored-procedure-from-csharp) (Journeyman): In ADO.NET, put the procedure's name in a SqlCommand, set its CommandType to StoredProcedure, and add each parameter by name. Then read the results as from any query.
- [Calling Other Programs](https://www.ask-codey.com/lessons/powershell-native-commands) (Journeyman): Programs such as git, dotnet and npm run from PowerShell by name, hand back their output as lines of text, take arguments from variables and arrays, and run by a path with & in front; a failing program doesn't stop a script by itself, so check $LASTEXITCODE after it, or set $PSNativeCommandUseErrorActionPreference to $true.
- [Can Any Sort Go Faster? The n log n Speed Limit](https://www.ask-codey.com/lessons/ds-sorting-speed-limit) (Freelancer): Know whether a faster sort can exist before you hunt for one: why a faster machine, a tweaked quicksort or a cleverer comparison can't beat O(n log n) for a sort that compares, and the one kind of data where you can.
- [Canceling Events](https://www.ask-codey.com/lessons/common-events-cancelling-events) (Journeyman): A handler can cancel what the browser would do next, such as sending a form that failed validation, by calling preventDefault() on the event object the browser passes in.
- [Captions and Subtitles](https://www.ask-codey.com/lessons/html-media-captions-and-subtitles) (Journeyman): A track element adds captions or subtitles to a video from a small text file you can write by hand, so people who can't hear it, or don't speak its language, can still follow along.
- [Cascade Layers with @layer](https://www.ask-codey.com/lessons/css-cascade-layers) (Journeyman): Cascade layers sort your rules into ranked groups such as reset, base, components and utilities, so a rule in a later layer wins whatever its selector, and specificity fights and !important stop being the way styles get settled.
- [CASE / WHEN in T-SQL](https://www.ask-codey.com/lessons/case-when-in-t-sql) (Journeyman): CASE picks a value by conditions, like if and else if. Use it to label rows, to count only the rows that match with SUM(CASE ...), and to sort in a custom order.
- [Chain of Responsibility: The Coin Sorter](https://www.ask-codey.com/lessons/dp-chain-of-responsibility) (Journeyman): When every voice command has to pass a night-time check, a someone's-home check and a permission check, one function full of ifs grows with every new check and gets copied for every new device; a Chain of Responsibility makes each check its own link that stops the command or passes it on, so checks can be added, reordered and reused.
- [Changing Documents with updateOne and $set](https://www.ask-codey.com/lessons/mongodb-updateone-and-set) (Apprentice): updateOne and updateMany change documents where they are, with a filter that picks the documents and an update operator that says what changes; $set writes fields, $unset removes them, and matchedCount and modifiedCount report what happened.
- [Changing Roles](https://www.ask-codey.com/lessons/what-is-polymorphism-changing-roles) (Journeyman): Polymorphism means focusing on just the one role of an object that matters at the moment, as Chloe is a student, a musician and an athlete at different times of day.
- [Changing Roles](https://www.ask-codey.com/lessons/polymorphism-in-csharp-changing-roles) (Apprentice): Through the day, people treat Chloe as a student, a singer or an athlete. Each sees only the role it needs. Polymorphism shifts focus in the same way.
- [Changing Rows: UPDATE and DELETE](https://www.ask-codey.com/lessons/fastapi-sql-update-and-delete) (Apprentice): UPDATE changes the columns SET names and DELETE removes rows, each only in the rows its WHERE picks, rowcount says how many rows that was so an API can tell a change from a missing row, and a with block commits changes that belong together or rolls them all back.
- [Charts Everyone Can Read](https://www.ask-codey.com/lessons/data-charts-everyone-can-read) (Journeyman): About one man in twelve can't tell red from green, so a chart never lets color carry the meaning alone, adding markers, line styles and labels on the lines, using a colorblind-friendly style such as tableau-colorblind10, keeping text big enough to read, and giving a chart in a report a sentence of alt text.
- [Charts Straight from pandas: df.plot](https://www.ask-codey.com/lessons/data-pandas-plot) (Journeyman): Every DataFrame and Series has a plot method that draws it with matplotlib, so kind= picks a line, bar, barh, scatter or hist chart, ax=ax draws it on an Axes you made, a groupby result can be plotted at the end of the same chain, and what comes back is the same matplotlib Axes you label, save and test.
- [Checkboxes, Radio Buttons and Fieldsets](https://www.ask-codey.com/lessons/html-forms-checkboxes-radios-and-fieldsets) (Apprentice): Radio buttons let a visitor pick exactly one choice and checkboxes any number, and a fieldset with a legend groups them so everyone, screen-reader users too, knows what each choice answers.
- [Checking a Form with JavaScript](https://www.ask-codey.com/lessons/javascript-forms-validation) (Journeyman): Let the browser check a form with required, min and type, ask it in code with checkValidity(), add rules of your own with setCustomValidity(), and show each error next to its field where everyone, screen reader users included, can find it.
- [Checking Before You Act: File Tests](https://www.ask-codey.com/lessons/bash-file-tests) (Apprentice): File tests let a script look before it acts: -e asks whether a path exists, -f and -d whether it's a file or a folder, -s whether a file has anything in it, and -nt whether it's newer than another.
- [Checking Input by Hand](https://www.ask-codey.com/lessons/fastapi-validation-by-hand) (Apprentice): An API can't trust what a request sends, so before it saves anything it checks each field for being there, having the right type, staying in its range and being an allowed value, and it collects every problem to send back at once.
- [Checking Input by Hand](https://www.ask-codey.com/lessons/node-validation-by-hand) (Apprentice): A server checks every request body before it saves anything, because any program can send anything, and a validation function collects every problem (a missing field, the wrong type, text that's too long, a value that isn't allowed) so the API can answer 400 with the whole list.
- [Checking Input: Validation Attributes](https://www.ask-codey.com/lessons/powershell-parameter-validation) (Journeyman): Validation attributes check a parameter's value before any line of the function runs: \[ValidateSet()\] allows only a list of choices and makes Tab fill them in, \[ValidateRange()\] keeps a number between two limits, \[ValidateNotNullOrEmpty()\] turns away an empty value, and Mandatory asks for one that's missing.
- [Checking Types with mypy](https://www.ask-codey.com/lessons/python-type-checking-with-mypy) (Journeyman): mypy reads your type hints and every call without running the code, and reports each place where a value can't be what its hint promises, such as text passed as a price or a None that the next line uses as text.
- [Checking Your Data with assert](https://www.ask-codey.com/lessons/pandas-checking-data-with-assert) (Journeyman): assert stops the code with an AssertionError and your message whenever a condition is False, so checks on ranges with between and all, on repeated timestamps and on missing values, gathered in one check_readings function, catch a cleaning step that went wrong every time the cleaning runs.
- [Choosing a Creational Pattern](https://www.ask-codey.com/lessons/dp-choosing-creational) (Journeyman): By now the course has made objects six ways: a simple factory, a dictionary of functions, Factory Method, Abstract Factory, Builder and Prototype. One look-alike table compares them with plain new, the honest default, so the next object you make gets the way that fits its problem, not the newest pattern you learned.
- [Choosing by Relationship: One-to-Few, One-to-Many, Many-to-Many](https://www.ask-codey.com/lessons/mongodb-choosing-by-relationship) (Journeyman): How many documents sit on each side of a relationship points to its model; embed a few, reference from the many side, never keep an array that grows without end, and link many-to-many with an array of ids.
- [Choosing Fields with Projections](https://www.ask-codey.com/lessons/mongodb-projections) (Apprentice): A projection, the second argument to find, chooses which fields come back; 1 includes a field and 0 leaves it out, \_id comes along unless you leave it out, and the two can't be mixed except for \_id.
- [Choosing the Chart for the Question](https://www.ask-codey.com/lessons/data-choosing-the-chart) (Journeyman): The question you're answering picks the chart, a line for change over time, bars to compare groups, a scatter plot for two things that may move together, a histogram for how values are spread, and sorted bars of shares for the parts of a whole, because a pie's slices are hard to compare by eye.
- [Circuit Breaker: Stop Calling a Broken Service](https://www.ask-codey.com/lessons/dp-circuit-breaker) (Freelancer): When a weather service is down for an hour, every screen that asks it waits for its timeout, again and again, and retries only make the wait longer; a circuit breaker remembers the failures, stops calling for a while, and lets one trial call through to see whether the service is back.
- [Classes and Objects](https://www.ask-codey.com/lessons/ds-code-you-need-classes) (Apprentice): A review of classes and objects in all five languages: a Snack class with fields, a constructor and methods, objects made from it, and the classic shape of a Java program you'll see in textbooks.
- [Classes: Blueprints for Objects](https://www.ask-codey.com/lessons/javascript-classes-blueprints) (Apprentice): A class is a blueprint for objects of one kind, with a constructor that fills in each new object and methods they all share, and new builds an object from it.
- [Classes: Blueprints for Your Own Things](https://www.ask-codey.com/lessons/python-classes-basics) (Apprentice): A class describes one kind of thing your program keeps track of, what it holds and what it can do, so every object made from it gets the same attributes, the same methods and a friendly printout.
- [Clean Code with ESLint and Prettier](https://www.ask-codey.com/lessons/javascript-tooling-eslint-and-prettier) (Journeyman): ESLint reads your code and flags likely mistakes, like an unused variable or a == that should be ===, and Prettier formats every file the same way, so you set them up once with a flat config and npm scripts and let VS Code run them as you save.
- [Cleaning Up: trap and mktemp](https://www.ask-codey.com/lessons/bash-trap-and-temp-files) (Freelancer): mktemp makes a temporary file or folder with a name no other file has, and trap '...' EXIT runs cleanup however a script ends, Ctrl+C included, so a script that works in a scratch file never leaves half-finished work behind.
- [Clickable Regions of a Picture: Image Maps](https://www.ask-codey.com/lessons/html-images-image-maps) (Apprentice): Turn the parts of one picture into separate links with an image map, measure each clickable shape in pixels, and give the same links as text for everyone the map leaves out.
- [Client-Side Validation](https://www.ask-codey.com/lessons/model-binding-and-validation-client-side-validation) (Apprentice): Browsers check HTML attributes such as required on their own; ASP.NET Core's validation scripts check your model's data annotations in the browser, from the data-val attributes the tag helpers write.
- [Closures at Work: Private State and Factories](https://www.ask-codey.com/lessons/javascript-closures-private-state-and-factories) (Journeyman): Put closures to work to keep a count that no other code can change, to build as many independent counters as you need with a factory function, and to make a function that runs only once.
- [Closures: Functions That Remember](https://www.ask-codey.com/lessons/javascript-closures-functions-that-remember) (Journeyman): A closure is a function together with the variables it could see where it was made, so it keeps using them after the function that made them has finished.
- [Closures: Lambdas That Remember](https://www.ask-codey.com/lessons/linq-closures) (Journeyman): A lambda can use the local variables around it. It captures the variable itself, not a copy of its value, and keeps it alive for as long as the lambda lives, which is how a method can hand back a counter that remembers its count.
- [Code Smells: Symptom, Cause, Cure](https://www.ask-codey.com/lessons/dp-code-smells) (Apprentice): Working code can still be hard to change, and it usually shows it: a code smell is a symptom you can see, like a cough, that points to a problem underneath; this lesson reads three smells in a food truck's ordering code as a doctor would, symptom, cause and cure, and shows why not every cure is a pattern.
- [Collisions: Two Coats, One Hook](https://www.ask-codey.com/lessons/ds-hash-collisions) (Journeyman): Keep every coat when two names land on the same hook: why refusing the coat, taking the next free hook and starting with a huge rack each fall short, and the plan most hash tables use instead: chaining, the load factor and resizing.
- [Color That Works: Palettes and Contrast](https://www.ask-codey.com/lessons/css-color-and-contrast) (Journeyman): A small palette (a brand color, neutrals, an accent, and success and error colors) makes a site look like one brand, and text that meets a contrast ratio of 4.5 to 1, with meaning never shown by color alone, makes it readable for everyone.
- [Color: Names, Hex, rgb() and hsl()](https://www.ask-codey.com/lessons/css-color-values) (Novice): CSS colors text with the color property and fills the area behind it with background-color, and it writes each color as a name, a hex code, rgb() or hsl(), with an alpha value when the color should be see-through.
- [Column Types: dtypes and astype](https://www.ask-codey.com/lessons/pandas-dtypes-and-astype) (Apprentice): Every pandas column has one dtype that decides what its values can do, dtypes lists them (int64, float64, str, bool, datetime64, category), astype changes a column's type, and astype stops on text such as '59 lbs' because it can't guess which part is the number.
- [Columns and Characters: cut and tr](https://www.ask-codey.com/lessons/bash-cut-and-tr) (Apprentice): cut keeps the columns you name with -f, splitting each line at the delimiter you give with -d (or keeps character positions with -c), and tr changes characters one for one, such as capitals into lowercase, or deletes them with -d.
- [Columns and Totals: awk](https://www.ask-codey.com/lessons/bash-awk) (Journeyman): awk splits every line into numbered fields, prints the ones you ask for, keeps only the lines that match a condition, and adds up a column, in total or per month, item or address.
- [Columns You Make Yourself: Calculated Properties](https://www.ask-codey.com/lessons/powershell-calculated-properties) (Journeyman): A calculated property is a column you add to Select-Object yourself, written as a hashtable with a Name for the heading and an Expression that works the value out for each object, such as a file's size in megabytes, rounded with \[math\]::Round.
- [Combinators: Descendant, Child and Sibling](https://www.ask-codey.com/lessons/css-combinators) (Apprentice): Combinators let one selector reach elements by where they sit on the page's family tree, inside another element, directly under it, right after it or anywhere after it, with no class needed.
- [Combining Conditions with &, | and ~](https://www.ask-codey.com/lessons/pandas-combining-conditions) (Apprentice): Python's and, or and not can't combine whole columns of True and False, so pandas uses & (and), | (or) and ~ (not), with parentheses around each comparison; isin, between and str.contains replace long chains of conditions, and query writes a filter as text.
- [Combining Conditions with and, or and not](https://www.ask-codey.com/lessons/python-and-or-not) (Apprentice): and is True only when both conditions are True, or is True when at least one is, not flips True and False, and in checks whether text appears inside other text, which together turn a real rule with several parts into one condition.
- [Combining Conditions with And, Or and Not](https://www.ask-codey.com/lessons/javascript-conditions-and-or-not) (Apprentice): The logical operators && (and), || (or) and ! (not) join small true-or-false checks into one condition, so a single if can follow a real rule with several parts.
- [Combining Conditions: $and, $or and $not](https://www.ask-codey.com/lessons/mongodb-combining-conditions) (Apprentice): Two fields in one filter already mean "and"; $or matches when any of its conditions does, $and holds conditions that can't share one document, and $not and $nor rule documents out.
- [Command: An Action You Can Hold](https://www.ask-codey.com/lessons/dp-command) (Journeyman): When the dispatcher's plan for the morning is stored as rows of text and run by a switch on each action's name, every new kind of action means editing the runner; the Command pattern turns "Assign package 42 to Dana" into an object that can be stored, queued, logged and run later.
- [Command-Line Options with argparse](https://www.ask-codey.com/lessons/python-automation-command-line-arguments) (Journeyman): The words typed after a script's name arrive in sys.argv, and the argparse module turns them into a positional argument, options with defaults and flags, checks them, and writes a --help page, so one script works on any folder without editing its code.
- [Common Aggregate Functions](https://www.ask-codey.com/lessons/aggregate-functions-common-aggregate-functions) (Apprentice): What COUNT, SUM, AVG, MIN and MAX return, and how each one treats NULL values.
- [Common Aggregate Functions](https://www.ask-codey.com/lessons/aggregate-functions-in-t-sql-common-aggregate-functions) (Apprentice): COUNT counts rows or values, SUM adds them, AVG averages them, and MIN and MAX find the smallest and largest. All but COUNT(\*) skip NULL.
- [Common DOM Interactions](https://www.ask-codey.com/lessons/working-with-elements-common-dom-interactions) (Apprentice): Once you have an element, you change its text with textContent, its HTML with innerHTML, its look with style, and its CSS classes with classList.
- [Common HTTP Status Codes](https://www.ask-codey.com/lessons/returning-http-status-codes-common-http-status-codes) (Apprentice): The status codes a REST API uses most, 200, 201, 204, 400, 401, 403, 404 and 500, and what each tells the client.
- [Common Layout Bugs and How to Fix Them](https://www.ask-codey.com/lessons/css-common-layout-bugs) (Journeyman): The seven layout bugs almost everyone meets, from a page that scrolls sideways to a z-index that won't work, each with its symptom, its cause and the fix that removes the cause instead of hiding it.
- [Common LINQ Methods](https://www.ask-codey.com/lessons/linq-common-linq-methods) (Journeyman): The LINQ methods you'll use every day. Where, OrderBy, ThenBy and Select filter, sort and reshape; Count, Sum, Average, Min, Max, Any, All and GroupBy summarize; First, FirstOrDefault, Take, Skip and Distinct pick items.
- [Common Sense Design](https://www.ask-codey.com/lessons/foundations-of-database-design-common-sense-design) (Journeyman): Plan a database from the questions it must answer, then split the data into tables of closely related columns, linked by primary and foreign keys.
- [Common Sense Design](https://www.ask-codey.com/lessons/foundations-of-database-design-common-sense-design-in-sql-server) (Journeyman): Design tables from the questions the data must answer. Learn from Northwind's design - one subject per table, columns at their smallest useful size, a primary key in every table, and foreign keys to link them.
- [Common SQL Functions](https://www.ask-codey.com/lessons/common-sql-functions) (Apprentice): How to use MySQL's CONCAT() to join text from several columns and COALESCE() to replace NULL with a default value.
- [Common Stream Functions](https://www.ask-codey.com/lessons/what-is-a-stream-common-stream-functions) (Journeyman): Use the common stream functions forEach, filter, map, distinct and reduce to process a list without writing loops.
- [Common String Tasks](https://www.ask-codey.com/lessons/strings-in-csharp-common-tasks) (Apprentice): Combine string methods to do everyday jobs, cleaning up input, reformatting names and phone numbers, padding, reversing and building long strings.
- [Common Tasks](https://www.ask-codey.com/lessons/working-with-strings-common-tasks) (Apprentice): Input text rarely arrives in the format you need, so developers reformat it every day, by trimming, splitting, joining, searching, padding, replacing and reversing.
- [Common Terminal Commands](https://www.ask-codey.com/lessons/working-with-the-terminal-common-terminal-commands) (Novice): The terminal commands you'll use most (pwd, cd, ls, mkdir, touch, cp, mv and rm) for moving around and managing files and folders.
- [Common T-SQL Functions](https://www.ask-codey.com/lessons/common-t-sql-functions) (Apprentice): T-SQL's built-in functions work on one row at a time. Join and change text, put a value in place of NULL, and pull apart dates and round numbers.
- [Common UML Diagrams](https://www.ask-codey.com/lessons/uml-diagrams-common-uml-diagrams) (Apprentice): UML is a shared way of drawing software. A use case diagram shows who uses the system and for what, a class diagram shows the classes and how they're related, and a sequence diagram shows the messages that pass between parts, in order. Sketch them to think and to explain.
- [Comparing Models Fairly](https://www.ask-codey.com/lessons/ml-comparing-models-fairly) (Freelancer): A fair comparison scores every model on the same training rows with one seeded splitter, one metric and a baseline, puts each model's mean and spread side by side, treats a difference smaller than the spread as a tie that goes to the simpler model, and ends with one test-set score for the chosen model, reported as it is.
- [Comparing Regression Models](https://www.ask-codey.com/lessons/ml-comparing-regression-models) (Journeyman): Models are compared fairly only on the same split, with the same metric and a baseline in the table, and putting each model's training error beside its test error shows which ones memorized; the simplest model that's good enough is usually the one to keep.
- [Comparison Operators: $gt, $lt, $in and More](https://www.ask-codey.com/lessons/mongodb-comparison-operators) (Apprentice): Comparison operators let a filter ask for more than an exact value, such as less than 30 minutes, a range between two numbers, one of a list of cuisines, or anything but one value.
- [Component Lifecycle](https://www.ask-codey.com/lessons/component-communication-in-angular-component-lifecycle) (Apprentice): A component is created, shown, updated and finally destroyed. ngOnInit runs once when it's ready, with its inputs set; ngOnDestroy runs when it's removed, to clean up timers and the like. effect runs code whenever the signals it reads change.
- [Components](https://www.ask-codey.com/lessons/bootstrap-components) (Apprentice): Build a page from Bootstrap's ready-made components (buttons, navbars, cards, tables, forms, alerts and carousels) by copying their HTML and changing the content.
- [Composite: Boxes Inside Boxes](https://www.ask-codey.com/lessons/dp-composite) (Journeyman): When the tracker weighs a shipment by asking every item "are you a box or a pallet?", it needs one more nested loop for every level of pallets, and a pallet on a pallet on a pallet gets missed; with the Composite pattern, a box and a pallet answer the same question, and a pallet answers by asking what's on it.
- [Compound Indexes and the Order of Fields](https://www.ask-codey.com/lessons/mongodb-compound-indexes) (Journeyman): A compound index keeps its entries in order by one field and then by the next, so a single index can serve a filter and a sort together, and the order of its fields (equal, then sort, then range) decides how much of it MongoDB has to read.
- [Comprehensions: New Lists in One Line](https://www.ask-codey.com/lessons/python-comprehensions) (Apprentice): A comprehension builds a new list, dictionary or set from another collection in one line, written as what goes in, for each item, if a condition holds, and replaces the empty-list-and-append loop whenever the whole job is building one collection.
- [Configuration Checked at Startup](https://www.ask-codey.com/lessons/node-pro-configuration) (Journeyman): An API reads every setting it needs in one config module that checks them all with Zod when the server starts, so a missing or mistyped setting stops it at once with a message naming each problem, and NODE_ENV, an .env file and the host's own settings decide the values in each place it runs.
- [Configure the Project](https://www.ask-codey.com/lessons/configure-the-project) (Journeyman): Add the MySQL driver, commons-dbcp2 and spring-jdbc dependencies to a Maven project's pom.xml so your Java code can work with a MySQL database.
- [Configure the Project for SQL Server](https://www.ask-codey.com/lessons/configure-the-project-for-sql-server) (Journeyman): Add the Microsoft.Data.SqlClient package to a C# project, write a connection string for your local SQL Server, and keep it in appsettings.json.
- [Connecting from Node and Saving Documents](https://www.ask-codey.com/lessons/node-mongodb-connect-and-insert) (Apprentice): The official mongodb package connects Node to MongoDB with a MongoClient made from a connection string kept in .env, saves documents with insertOne and insertMany, reads them back with find().toArray(), and closes the client when the work is done.
- [Connecting from Node: MongoClient and the Connection String](https://www.ask-codey.com/lessons/mongodb-driver-connecting-from-node) (Journeyman): The official mongodb package connects a Node app to MongoDB through a MongoClient made from a connection string, which lives in a .env file that Node reads with --env-file, and the app connects that one client when it starts and closes it when it stops.
- [Constructor Injection](https://www.ask-codey.com/lessons/dependency-injection-constructor-injection) (Journeyman): A class asks for its dependencies in its constructor and keeps them in readonly fields. Whoever creates it passes them in, so a test can pass a fake.
- [Container Queries: Components That Fit Their Space](https://www.ask-codey.com/lessons/css-container-queries) (Freelancer): A container query changes a component's style by the width of the box it sits in instead of the width of the screen, so one product card can be stacked in a narrow sidebar and side by side in a wide spot on the same page.
- [Containers: Who Does the Handing Out](https://www.ask-codey.com/lessons/dp-di-containers) (Journeyman): Once every class asks for what it needs, someone has to make the parts and hand them out; doing it in one place at the start of the app (the composition root) keeps it from being copied everywhere, and a container automates that place, with lifetimes that say whether a part is made once for the app, once per request, or new every time.
- [Controllers and Actions](https://www.ask-codey.com/lessons/controllers-and-actions) (Journeyman): A controller is a class whose public methods, its actions, answer requests. Learn how the default route picks one from the address, where parameters come from, and what an action can return.
- [Conventional and Attribute Routing](https://www.ask-codey.com/lessons/routing-in-aspnet-core-conventional-and-attribute-routing) (Journeyman): Conventional routing builds every address from one pattern; attribute routing gives each action its own address with \[Route\] and \[HttpGet\]. Constraints such as {id:int} decide which addresses match.
- [Converting between Data Types](https://www.ask-codey.com/lessons/converting-between-data-types) (Apprentice): Java converts a smaller number type to a larger one for you; anything else you convert yourself, with a cast for numbers or a parse method such as Integer.parseInt for text.
- [Converting Data Types in C#](https://www.ask-codey.com/lessons/converting-data-types-in-csharp) (Apprentice): C# converts a smaller type to a larger one for you; anything else you convert yourself, with a cast, the Convert class, or Parse for text.
- [Cookie Authentication and \[Authorize\]](https://www.ask-codey.com/lessons/security-and-sessions-cookie-authentication-and-authorize) (Journeyman): Turn on cookie authentication in Program.cs, sign users in with claims and SignInAsync, protect actions with \[Authorize\] and roles, and show who's signed in with User.
- [Copy and Move: Copy-Item and Move-Item](https://www.ask-codey.com/lessons/powershell-copy-and-move) (Novice): Copy-Item makes a copy and leaves the original where it was, Move-Item takes the original to its new place, -Recurse copies a folder with everything in it, and -WhatIf shows exactly where a copy or move would land before anything changes.
- [Copy, Move and Rename: cp and mv](https://www.ask-codey.com/lessons/bash-copy-move-rename) (Novice): mv moves a file into another folder or gives it a new name, cp makes a copy and leaves the original where it was, cp -r copies a whole folder, and -i or -n stop either one from replacing a file by surprise.
- [Copying a Few Fields: the Extended Reference Pattern](https://www.ask-codey.com/lessons/mongodb-extended-reference-pattern) (Journeyman): An order can keep a product's \_id together with a copy of its name and the price paid, so a "my orders" page needs one read and the price stays what the customer paid; copy only a few fields, and decide for each one whether it stays as history or follows the original.
- [Copying Between Computers: scp and rsync](https://www.ask-codey.com/lessons/bash-copying-between-computers) (Journeyman): scp copies a file or two to or from another computer, and rsync sends a whole folder but only what changed; both write the other computer's side as host:path, with a colon, and rsync -n rehearses first.
- [Copying to Another Computer](https://www.ask-codey.com/lessons/powershell-copy-to-session) (Journeyman): A shared folder has a network address, a UNC path such as \\\\back-office\\reports, that Test-Path, Get-ChildItem and Copy-Item use like any other path, and where there's no share, Copy-Item -ToSession and -FromSession copy a file through a remoting session made with New-PSSession and closed with Remove-PSSession.
- [Copying, Moving and Renaming Files Safely](https://www.ask-codey.com/lessons/python-automation-copy-move-rename) (Journeyman): shutil.copy2 copies a file, shutil.move and Path.rename move and rename one, and three habits keep a file-moving script safe, a backup copy, a check that the destination is free, and a dry run that shows the plan before anything moves.
- [CORS: Which Web Pages May Call Your API](https://www.ask-codey.com/lessons/node-security-cors) (Journeyman): A browser lets a web page read answers only from its own origin unless the other server allows it, and the cors package lets an Express API name the pages it allows, which protects people's browsers but never stops scripts and tools.
- [CORS: Which Web Pages May Call Your API](https://www.ask-codey.com/lessons/fastapi-security-cors) (Journeyman): A browser lets a web page read answers only from its own origin unless the API allows it, and FastAPI's CORSMiddleware with an allow-list of origins lets the club's own pages in, which protects people's browsers but never stops a script or a tool.
- [Count, Sort, Remove Duplicates: wc, sort and uniq](https://www.ask-codey.com/lessons/bash-count-sort-unique) (Apprentice): wc counts lines, words and characters, sort puts lines in order, as text or with -n as numbers, and uniq merges repeated lines that sit next to each other, so sort | uniq -c | sort -rn ranks how often each line appears.
- [Counting and Grouping: Measure-Object and Group-Object](https://www.ask-codey.com/lessons/powershell-measure-and-group) (Apprentice): Measure-Object counts the objects a pipeline hands it and adds up, averages or finds the largest of one property, such as the total size of every file, and Group-Object sorts objects into piles by a property, such as one pile per file type, each with a count.
- [Counting What's There: value_counts and unique](https://www.ask-codey.com/lessons/pandas-value-counts) (Apprentice): value_counts counts how many rows hold each value of a column, most common first, normalize=True turns the counts into shares of the whole, unique lists the different values in a column and nunique counts them.
- [Counting with for](https://www.ask-codey.com/lessons/javascript-loops-for) (Novice): A for loop puts its start, its condition and its step in one line, so counting up, counting down or counting by any step reads at a glance, and break and continue let you stop early or skip a pass.
- [Counting with for and range](https://www.ask-codey.com/lessons/python-for-loops-and-range) (Novice): A for loop runs its block once for each item it's handed, range() hands it a row of numbers to count with, up, down or in steps, and break and continue end a loop early or skip one pass.
- [Counting, Collecting and Flattening Streams](https://www.ask-codey.com/lessons/common-java-stream-functions-collecting) (Journeyman): Count, total, join, group and flatten a list of objects with streams, and read any stream as intermediate steps followed by one terminal step.
- [Counting, Grouping and Paging](https://www.ask-codey.com/lessons/fastapi-sql-counting-and-paging) (Journeyman): COUNT, SUM and AVG let the database add up rows instead of sending every one to Python, GROUP BY gives one answer for each vendor, and LIMIT with OFFSET hands an API one page of a long list at a time, with COUNT(\*) giving the total beside it.
- [Create Database Scripts](https://www.ask-codey.com/lessons/foundations-of-database-design-create-database-scripts) (Journeyman): Build a database in SQL with CREATE DATABASE, CREATE TABLE and ALTER TABLE, including primary keys, default values and foreign key constraints.
- [Create Database Scripts in T-SQL](https://www.ask-codey.com/lessons/foundations-of-database-design-create-database-scripts-in-t-sql) (Journeyman): Turn a design into a script that builds it - CREATE DATABASE, CREATE TABLE with types, NOT NULL, IDENTITY and DEFAULT, and constraints for primary keys, foreign keys, UNIQUE and CHECK.
- [Create, Update and Delete: POST, PUT, PATCH and DELETE](https://www.ask-codey.com/lessons/fastapi-rest-create-update-delete) (Journeyman): A FastAPI resource is finished with four routes that change it, POST that answers 201 with the new item, PUT that replaces a whole item, PATCH that changes only the fields sent with model_dump(exclude_unset=True), and DELETE that answers 204 with no body, each answering 404 when the item isn't there.
- [Creating a REST Controller](https://www.ask-codey.com/lessons/restful-web-apis-creating-a-rest-controller) (Journeyman): Build a REST API in Spring Boot with a @RestController class whose methods return JSON for each GET, POST, PUT and DELETE request.
- [Creating a Shared Data Service](https://www.ask-codey.com/lessons/angular-services-creating-a-shared-data-service) (Journeyman): A shared data service keeps its state in a private signal, shows it to components read-only with asReadonly() and computed values, and changes it only through its own methods. Every component that injects it sees the same, up-to-date data.
- [Creating an Angular App: an overview](https://www.ask-codey.com/lessons/creating-an-angular-app-an-overview) (Novice): Angular is Google's framework for single-page apps. The browser loads one page and one app, and Angular builds and rebuilds the page from components, getting its data from APIs. It's written in TypeScript, and created and run with the Angular CLI.
- [Creating an API Controller](https://www.ask-codey.com/lessons/web-apis-with-controllers-creating-an-api-controller) (Journeyman): An API controller derives from ControllerBase, is marked \[ApiController\], and gets its address from \[Route\]. It asks for its DAO through an interface registered in Program.cs, and its actions return data that ASP.NET Core sends as JSON.
- [Creating an MVC Project](https://www.ask-codey.com/lessons/aspnet-core-creating-an-mvc-project) (Apprentice): Create an ASP.NET Core MVC project, run it in the browser, and find your way around its folders and Program.cs.
- [Creating and Changing Tables: Migrations](https://www.ask-codey.com/lessons/fastapi-data-schema-and-migrations) (Journeyman): Migrations are numbered SQL scripts that create and change an API's tables, run in order when the app starts, with SQLite's PRAGMA user_version remembering how many a database has had, so every copy of the database gets each change exactly once.
- [Creating Data Models](https://www.ask-codey.com/lessons/objects-from-a-database-creating-data-models) (Journeyman): A data model class mirrors a database table, with a private variable and a getter and setter for each column.
- [Creating Stored Procedures](https://www.ask-codey.com/lessons/stored-procedures-in-t-sql-creating-stored-procedures) (Journeyman): A stored procedure is a named, saved batch of SQL that takes parameters. Create one with CREATE OR ALTER PROCEDURE, give parameters defaults, and run it with EXEC.
- [Creating the LogService](https://www.ask-codey.com/lessons/logging-exceptions-creating-the-logservice) (Journeyman): Building a small LogService that appends time-stamped messages to one log file per day.
- [Creating the LogService](https://www.ask-codey.com/lessons/logging-exceptions-in-csharp-creating-the-logservice) (Journeyman): Build a LogService that appends one time-stamped line per entry to a file named for the day, such as logs\\errors\\20260314.log. It asks for an IClock so tests can choose the date, and it never lets a logging problem crash the app.
- [Cross-Validation](https://www.ask-codey.com/lessons/ml-cross-validation) (Journeyman): Cross-validation splits the rows into k folds and tests the model on each fold in turn, learning from the others, so every row is tested exactly once; cross_val_score gives the k scores, you report their mean and their spread, and KFold with shuffle=True and a random_state makes the folds random and repeatable.
- [CSS](https://www.ask-codey.com/lessons/html-css) (Novice): A CSS rule finds elements with a selector (by element name, class or id) and formats them with the properties inside its curly braces, such as color, border, width and display.
- [CSS Grid: Rows and Columns](https://www.ask-codey.com/lessons/css-grid-basics) (Apprentice): CSS Grid turns a box into an ice cube tray of rows and columns, so a photo gallery, a product page or a calendar lines up both ways at once with a few lines of CSS.
- [CSS Nesting](https://www.ask-codey.com/lessons/css-nesting) (Journeyman): CSS nesting lets you write a rule inside another rule, so a component's parts, its hover state and its media queries live together in one place instead of scattered through the file.
- [CSS Performance: What Slows a Page, and Critical CSS](https://www.ask-codey.com/lessons/css-performance) (Freelancer): See why a stylesheet holds up the first paint, find unused CSS with the Coverage panel, animate transform instead of layout, skip off-screen work with content-visibility, inline the critical CSS, and measure the result with Lighthouse.
- [CSV Files in Bash, and Their Limits](https://www.ask-codey.com/lessons/bash-csv-files) (Journeyman): A CSV file is a table saved as text: while IFS=, read -r reads it a row at a time into named variables, awk -F, picks and totals its columns, and a comma inside a quoted value breaks both.
- [CSV Files: Tables in Plain Text](https://www.ask-codey.com/lessons/python-files-csv) (Apprentice): A CSV file is a table in plain text that every spreadsheet can open and save, and Python's csv module writes it with DictWriter and reads it with reader or DictReader, giving back every value as text that you convert to numbers with int() and float().
- [Curves with Polynomial Features](https://www.ask-codey.com/lessons/ml-polynomial-features) (Journeyman): When the label rises and then falls, a straight line misses both ends, but adding a squared copy of a feature lets a linear regression draw a curve; PolynomialFeatures makes those columns, fit on the training rows and used to transform both parts, and a high degree swings wildly at the edges of the data.
- [Custom Properties: Variables in CSS](https://www.ask-codey.com/lessons/css-custom-properties) (Apprentice): A custom property gives a value such as a brand color a name you choose, once, and every rule that reads it with var() follows when that one value changes.
- [Cutting In, and Keeping Only the Last 100: Deques and Ring Buffers](https://www.ask-codey.com/lessons/ds-deques-and-ring-buffers) (Journeyman): A paid mobile order jumps to the front of the line, a customer at the back gives up and leaves, and a log must keep only its last 100 lines out of a million. Find the line that's cheap at both ends, and the fixed circle of slots that never moves or grows.
- [Dapper or EF Core?](https://www.ask-codey.com/lessons/entity-framework-core-dapper-or-ef-core) (Journeyman): Dapper gives full control of the SQL with very little to learn; EF Core writes the SQL, tracks changes and follows relationships. Choose Dapper when the SQL matters most and EF Core when the objects do, and keep to one per project unless there's a reason.
- [Data Access Objects](https://www.ask-codey.com/lessons/mapping-data-to-models-in-csharp-data-access-objects) (Journeyman): Gather all the SQL for one table into a Data Access Object (DAO), so the rest of the program asks for models and never sees the database.
- [Data Access Objects](https://www.ask-codey.com/lessons/mapping-data-to-models-data-access-objects) (Journeyman): A data access object (DAO) is a class that holds the database code for one table, so the rest of your program calls methods like getAllCategories() instead of writing SQL.
- [Data Annotations and ModelState](https://www.ask-codey.com/lessons/model-binding-and-validation-data-annotations-and-modelstate) (Journeyman): Put validation rules on the model with data annotations such as \[Required\], \[StringLength\] and \[Range\]; check ModelState.IsValid in the action; add your own errors with AddModelError; and show the messages with validation tag helpers.
- [Data in Transit vs Data at Rest](https://www.ask-codey.com/lessons/what-is-a-stream-data-in-transit-vs-data-at-rest) (Apprentice): Stored data is at rest, and data moving between places, such as over a network or from a query, is in transit.
- [Database Diagrams in SSMS](https://www.ask-codey.com/lessons/foundations-of-database-design-database-diagrams-in-ssms) (Journeyman): SSMS draws a database's tables and the foreign keys between them. Make a diagram of Northwind, read its keys and relationship lines, and know when to draw one.
- [Database Relationships: an overview](https://www.ask-codey.com/lessons/database-relationships-an-overview) (Apprentice): The three kinds of relationship between tables (one-to-many, one-to-one and many-to-many) and how a diagram shows each.
- [Dataclasses: Classes That Hold Data](https://www.ask-codey.com/lessons/python-dataclasses) (Journeyman): The @dataclass decorator writes a data-holding class's \_\_init\_\_, \_\_repr\_\_ and == for you from a list of fields with types, with defaults for the fields a call can leave out and default_factory for a fresh list in every object.
- [DataFrames: Rows, Columns and the Index](https://www.ask-codey.com/lessons/pandas-dataframes) (Apprentice): A DataFrame is pandas' table, and shape, columns and dtypes describe it, df\['col'\] picks one column as a Series, df\[\['a', 'b'\]\] picks several as a smaller table, a new column can be made from two others in one line, and the index labels every row.
- [Dates and Times](https://www.ask-codey.com/lessons/bash-dates) (Journeyman): date followed by + and a pattern prints a date in the shape you need, such as date +%F for 2026-11-09; date -d works out other days, such as 7 days ago; date +%s counts seconds, for timing a job; and a Mac's date uses -v instead of -d.
- [DbContext and Entities](https://www.ask-codey.com/lessons/entity-framework-core-dbcontext-and-entities) (Journeyman): EF Core maps entity classes to tables, matching names by convention. A DbContext class lists a DbSet for each table and holds the connection. In ASP.NET Core, register it with AddDbContext and UseSqlServer, and controllers ask for it like any other service.
- [Debounce and Throttle](https://www.ask-codey.com/lessons/javascript-performance-debounce-and-throttle) (Freelancer): Debounce waits for a pause before it runs a function, throttle runs it at most once every so often, and an AbortController cancels a request that's out of date, so a busy page stays fast and shows the right answer.
- [Debugging in VS Code](https://www.ask-codey.com/lessons/powershell-debugging-in-vs-code) (Journeyman): A breakpoint pauses a script on a line in VS Code, so you can look at every variable, step through it one line at a time with F10, and watch an expression until a value surprises you; Set-PSBreakpoint does the same at the prompt.
- [Debugging Layouts with Developer Tools](https://www.ask-codey.com/lessons/css-debugging-with-devtools) (Journeyman): A seven-step routine for "why does it look like that?", using the Computed pane, the box model diagram, the flex and grid overlays, switching rules off, forcing :hover and :focus, and the outline trick.
- [Debugging Scripts: bash -x](https://www.ask-codey.com/lessons/bash-debugging-scripts) (Journeyman): bash -x runs a script and prints every line before it runs, with its variables already filled in, so you can watch what the script really did; set -x and set +x trace one part only, and PS4 adds line numbers to the trace.
- [Debugging with Breakpoints](https://www.ask-codey.com/lessons/javascript-debugging-breakpoints) (Apprentice): A debugger pauses your program at a breakpoint, lets you run it one line at a time, and shows every variable's value as you go, in VS Code for Node and in the browser's DevTools for a page, so you can see the line where a value goes wrong.
- [Decision Trees](https://www.ask-codey.com/lessons/ml-decision-trees) (Journeyman): A decision tree sorts examples into classes with yes-or-no questions about their features, picking each question so the groups it makes are as unmixed as possible (the Gini impurity), with max_depth to limit how many questions it asks and no need to rescale the features first.
- [Decorator: Same Phone, More Features](https://www.ask-codey.com/lessons/dp-decorator) (Journeyman): SkyCast is slow and counts every call, so the hub needs today's weather remembered and every ask logged; subclasses for each combination (cached, logged, cached and logged) multiply with every feature, while decorators wrap the weather source in small layers that keep its interface, so features stack in any order without changing SkyCast.
- [Decorators the Modern Way: Wrapping a Function](https://www.ask-codey.com/lessons/dp-decorator-modern) (Journeyman): When the hub needs the same cache in front of tomorrow's forecast as in front of today's weather, a decorator class per method multiplies again; a function that takes a function and returns a better one adds the feature to any call, and Python's @ and TypeScript's decorators are language shortcuts for that same move, applied where a function or class is defined.
- [Default and Keyword Arguments](https://www.ask-codey.com/lessons/python-functions-default-and-keyword-arguments) (Apprentice): A default value lets a call leave an argument out, a keyword argument names the parameter it fills so the order no longer matters, and print() uses both in its sep= and end= arguments.
- [Defining an Object](https://www.ask-codey.com/lessons/working-with-objects-defining-an-object) (Apprentice): An object's responsibilities split into what it knows (its variables) and what it can do (its methods), and a class is the blueprint that describes both.
- [Defining an Object](https://www.ask-codey.com/lessons/working-with-objects-in-csharp-defining-an-object) (Apprentice): An object's responsibilities split into what it knows (its state) and what it does (its behavior), and a class is the blueprint that describes both.
- [Defining Interfaces](https://www.ask-codey.com/lessons/defining-interfaces) (Journeyman): How to write a Java interface and implement more than one in a class with the \`implements\` keyword.
- [Defining Interfaces](https://www.ask-codey.com/lessons/interfaces-in-csharp-defining-interfaces) (Journeyman): Define an interface with the interface keyword, a name starting with I, and members with no bodies. A class implements it by listing it after the colon, after its base class, and writing every member as public.
- [Defining the Links](https://www.ask-codey.com/lessons/route-parameters-in-angular-defining-the-links) (Journeyman): Build a link with an id in it by giving routerLink a list of parts: \[routerLink\]="\['/categories', category.categoryId\]" makes /categories/3. The same list works with Router's navigate, and the router joins and escapes the parts for you.
- [Defining the Routes](https://www.ask-codey.com/lessons/basic-routing-in-angular-defining-the-routes) (Apprentice): A route pairs a path with the component to show for it. List them in app.routes.ts, the home page at the empty path and a page-not-found route with \*\* last, because the router uses the first route that matches. A route can also set the page's title or redirect an old address.
- [Delegation: Handing the Job On](https://www.ask-codey.com/lessons/dp-delegation) (Apprentice): When every screen reaches through a rental to price its bike, a new rule such as a $2 helmet has to be added everywhere, and one place is missed; delegation gives the rental its own price() that hands the bike's part on to the bike, the move half the design patterns are built from.
- [DELETE](https://www.ask-codey.com/lessons/web-apis-with-controllers-delete) (Journeyman): DELETE removes the item at an address. It sends no body; the action deletes by the id from the route and answers 204 No Content, or 404 Not Found when there was nothing to delete.
- [DELETE](https://www.ask-codey.com/lessons/restful-web-apis-delete) (Journeyman): Handle a DELETE request with @DeleteMapping, taking the category's id from the URL, and answer 204 No Content.
- [Deleting Data](https://www.ask-codey.com/lessons/modifying-data-in-t-sql-deleting-data) (Apprentice): Remove rows with DELETE FROM ... WHERE, test the WHERE first, and delete in the order the foreign keys allow.
- [Deleting Documents Safely](https://www.ask-codey.com/lessons/mongodb-deleting-documents-safely) (Apprentice): deleteOne and deleteMany remove the documents a filter matches, with no undo, so you run the same filter with find first; an empty filter deletes everything, drop removes the whole collection, and a soft delete hides a document without losing it.
- [Deleting Safely: Remove-Item, -WhatIf and -Confirm](https://www.ask-codey.com/lessons/powershell-deleting-safely) (Novice): Remove-Item deletes files and folders with no Recycle Bin to catch them, so you rehearse a delete with -WhatIf, approve each item with -Confirm, and add -Recurse only for a folder you've looked inside.
- [Deleting Safely: rm and rmdir](https://www.ask-codey.com/lessons/bash-deleting-safely) (Novice): rm deletes files for good, with no trash can to undo it, so you check the same names with ls first, let rm -i ask about each file, and use rmdir for empty folders and rm -r only after looking inside.
- [Dependency Injection: Hand Me What I Need](https://www.ask-codey.com/lessons/dp-dependency-injection) (Journeyman): When a class builds its own database and reads the real clock, nothing outside it can change either one, so its rules can't be tested; dependency injection has the class ask for them in its constructor, and whoever makes it hands them in, which finishes the idea Pass 1 started with the bakery's settings.
- [Dependency Inversion: Depend on the Promise](https://www.ask-codey.com/lessons/dp-dependency-inversion) (Journeyman): When the report-card sender builds the school's email server inside itself, it can never send a text and can never be tested without sending real email; the dependency inversion principle says the report card should depend on a promise it owns ("a way to send"), and be handed whatever keeps it, which is the start of dependency injection.
- [Deploying a Web API and an Angular App to Azure](https://www.ask-codey.com/lessons/deploying-to-azure-deploying-a-web-api-and-an-angular-app-to-azure) (Journeyman): Put the products app on the internet. The database moves to Azure SQL Database, the built Angular app goes into the API's wwwroot so one App Service serves both from one address, and the connection string and signing key become App Service settings, never files in Git.
- [Describing Each Group](https://www.ask-codey.com/lessons/ml-describing-clusters) (Journeyman): A clustering is only useful once each group is described, so you groupby the cluster label to get each group's means and size, compare them with the whole table's, name each group in plain words from what its numbers say, and state the limits, that other features or another k would give other groups and that a member isn't their group.
- [Description Lists](https://www.ask-codey.com/lessons/html-description-lists) (Apprentice): A description list pairs names with their meanings or values, such as a glossary or a menu with prices, using dl for the list, dt for each name and dd for what it means.
- [Design Tokens: a Small Design System](https://www.ask-codey.com/lessons/css-design-tokens) (Journeyman): Design tokens are a short list of custom properties for a site's colors, type sizes, spacing, corners and shadows, named by their job, so every component is built from the same decisions and one change restyles them all.
- [Designing a User Experience](https://www.ask-codey.com/lessons/ui-and-ux-designing-a-user-experience) (Apprentice): The UI is what users see; the UX is how it feels to get something done. Start from what users want to do, plan the flow and sketch a wireframe before writing code, then make every screen clear, consistent, honest about what's happening, and usable by everyone. Then watch real people try it.
- [Designing REST Endpoints: Create, Update and Delete](https://www.ask-codey.com/lessons/node-rest-endpoints) (Journeyman): A REST API names each kind of thing it holds with a plural noun, such as /tickets, and lets the HTTP method be the verb, so POST answers 201 with the new item, PUT replaces an item, PATCH changes part of it, and DELETE answers 204 with no body.
- [Destructuring](https://www.ask-codey.com/lessons/javascript-unpacking-destructuring) (Apprentice): Destructuring unpacks the values you need from an object or an array into variables in one line, with defaults for anything missing and new names when you want them.
- [Details and Summary: Show and Hide](https://www.ask-codey.com/lessons/html-details-and-summary) (Apprentice): The details and summary elements make a section that opens and closes when it's clicked, such as an FAQ answer or a quiz answer, with no JavaScript and with keyboard support built in.
- [Developer Tools](https://www.ask-codey.com/lessons/html-developer-tools) (Apprentice): Every browser has built-in developer tools that show any element on a page, its HTML and every CSS rule applied to it, so you can find out why a page looks the way it does.
- [Developer Tools: Inspecting a Page](https://www.ask-codey.com/lessons/html-developer-tools-inspecting-a-page) (Apprentice): Every browser has built-in developer tools that show the page as the browser built it, so you can find any element, see what the browser repaired, and try changes safely.
- [Diagramming: an overview](https://www.ask-codey.com/lessons/diagramming-an-overview) (Novice): Sketch a program before you build it with three kinds of diagram, a flowchart, a UML class diagram and an entity-relationship diagram, on paper or in a free tool.
- [Dictionaries in C#](https://www.ask-codey.com/lessons/dictionaries-in-csharp) (Apprentice): A Dictionary&lt;TKey, TValue> stores values under unique keys, so you can look one up by its label instead of its position.
- [Dictionaries: Looking Things Up by Name](https://www.ask-codey.com/lessons/python-dictionaries) (Novice): A dictionary stores each value under a key you choose, so a program finds a value by its name instead of its position, and adds, changes and removes entries as the data changes.
- [Did It Work? \`$?\`, \`$LASTEXITCODE\`, \`&&\` and \`||\`](https://www.ask-codey.com/lessons/powershell-did-it-work) (Apprentice): $? says whether the last command worked, $LASTEXITCODE holds the number a program ended with (0 when it worked), && runs the next command only if the last one worked, and || runs it only if the last one failed.
- [Did It Work? Exit Codes, && and ||](https://www.ask-codey.com/lessons/bash-exit-codes) (Apprentice): Every command ends with an exit code, 0 when it worked and another number when it didn't, which $? shows; && runs the next command only if the last one worked, || only if it failed, and ; either way.
- [Different Shapes in One Collection: the Polymorphic Pattern](https://www.ask-codey.com/lessons/mongodb-polymorphic-pattern) (Journeyman): Bikes, helmets and lights can share one products collection, each with the fields every product has, its own fields, and a type field that says which kind it is, so one query can search them all and another can pick out one kind.
- [Different Steps for Different Columns](https://www.ask-codey.com/lessons/ml-column-transformer) (Freelancer): A ColumnTransformer sends each list of columns through its own steps, so the number columns are filled with the median and standardized while the category columns are filled with the most frequent value and one-hot encoded, columns it isn't given are dropped by default, and as the first step of a pipeline it lets one fit and one predict handle a whole table, with get_feature_names_out listing the columns the model gets.
- [Distance Between Examples](https://www.ask-codey.com/lessons/ml-distance-between-examples) (Apprentice): Two examples become points when each feature is a direction, the straight-line (Euclidean) distance between them comes from the Pythagorean theorem and math.dist works it out for any number of features, and a feature measured in big units, like grams, swamps one scored from 0 to 10 until the features are put on a common scale.
- [Div and Span: Boxes with No Meaning](https://www.ask-codey.com/lessons/html-div-and-span) (Apprentice): Div and span are plain boxes that say nothing about what they hold, so you use them to group or style content only when no meaningful element fits, and you learn to spot the "div soup" that happens when they're used for everything.
- [Documents and Collections](https://www.ask-codey.com/lessons/node-mongodb-documents-and-collections) (Apprentice): MongoDB keeps an app's data as documents, records that look like JavaScript objects, grouped into collections inside a database, and every document carries its own unique \_id.
- [Documents: Fields, Values, Quotes and Braces](https://www.ask-codey.com/lessons/mongodb-fields-values-quotes-and-braces) (Novice): A document is written like a filled-in form, with braces around it, a field name, a colon and a value for each line, commas between them, and quotes around text but not around numbers or true and false; mongosh's errors point at the punctuation that's missing.
- [Doing Something to Each: ForEach-Object](https://www.ask-codey.com/lessons/powershell-foreach-object) (Apprentice): ForEach-Object runs a script block once for every object the pipeline hands it, with $\_ as this item, so one line can rename 200 photos, and -WhatIf goes inside the braces, on the command that makes the change, so you can rehearse first.
- [Do-While Loop](https://www.ask-codey.com/lessons/looping-do-while-loop) (Apprentice): The do-while loop is similar to the while loop, but it guarantees that the block of code will be executed at least once since the condition is evaluated after the execution of the loop body.
- [Do-While Loop](https://www.ask-codey.com/lessons/looping-in-csharp-do-while-loop) (Apprentice): Run a block of code at least once, then repeat it while a condition is true, with C#'s do-while loop.
- [Draw Your Own: Paper, Mermaid and draw.io](https://www.ask-codey.com/lessons/dp-draw-your-own-diagrams) (Apprentice): A design drawn on a whiteboard is lost by Friday, so pick the tool by the job: paper for thinking, Mermaid's text diagrams for the ones that live beside the code (GitHub and VS Code draw them for you), and draw.io for a tidy picture.
- [Drawing the Page from Your Data](https://www.ask-codey.com/lessons/javascript-rendering-from-data) (Journeyman): Keep what the page shows in an array, write one render function that draws the page from it, and have every listener change the data and call render, so the page and the data never disagree.
- [Dropdowns, Text Areas and Suggestions](https://www.ask-codey.com/lessons/html-forms-select-textarea-and-datalist) (Apprentice): A select makes a dropdown list of options, a textarea gives room for a longer answer, and a datalist suggests answers while still letting the visitor type their own.
- [Dropping or Filling Missing Values](https://www.ask-codey.com/lessons/pandas-missing-values-handling) (Apprentice): Once you know where a table's gaps are, dropna removes rows (all of them with any gap, or only those missing the columns you name in subset), fillna puts a value, a median or 'Unknown' in each gap, and a flag column records which values were filled so none is passed off as measured.
- [DRY Code](https://www.ask-codey.com/lessons/dry-code) (Novice): Classes that repeat the same variables and methods break the DRY principle, and merging them into one class is not the answer.
- [DRY Code in C#](https://www.ask-codey.com/lessons/dry-code-in-csharp) (Novice): When several classes repeat the same properties and methods, the code breaks the DRY rule (Don't Repeat Yourself). One class that does everything isn't the answer either.
- [Durations: Finish Times with Timedelta](https://www.ask-codey.com/lessons/pandas-durations) (Journeyman): Finish times typed as text such as '0:27:15' sort wrongly and can't be averaged, so pd.to_timedelta turns them into durations, the ones it can't read, such as '27:15', are found with errors='coerce' and fixed, dt.total_seconds() turns a duration into minutes and a pace per mile, and whole minutes and seconds turn it back into text people can read.
- [Editing in the Terminal: edit](https://www.ask-codey.com/lessons/powershell-editing-with-edit) (Novice): edit opens a text file in Microsoft Edit, an editor inside the terminal where the arrow keys and the mouse both work, Ctrl+S saves and Ctrl+Q quits, and notepad and code open the same file in a window.
- [Editing in the Terminal: nano](https://www.ask-codey.com/lessons/bash-editing-with-nano) (Novice): nano is a text editor that runs inside the terminal, where you open a file with nano and its name, move with the arrow keys, save with Ctrl+O and quit with Ctrl+X; and if vim opens by accident, Esc and then :q! get you out.
- [Elements and Tags](https://www.ask-codey.com/lessons/html-elements-and-tags) (Novice): Every web page is built from elements, boxes with a start tag, content and an end tag, that fit inside each other like boxes inside boxes.
- [Elements, Tags and Attributes](https://www.ask-codey.com/lessons/css-html-elements-tags-and-attributes) (Novice): A web page is content with labels on it, called tags, and once you can read the labels you know exactly what your CSS will style.
- [Embedding Maps and Videos with iframe](https://www.ask-codey.com/lessons/html-media-iframes-and-embeds) (Journeyman): An iframe shows a piece of another website, such as a YouTube video or a map, inside your page, and a few attributes keep it accessible, fast and safe.
- [Embedding: Keeping Related Data Together](https://www.ask-codey.com/lessons/mongodb-embedding-documents) (Apprentice): Embedding puts related data inside the document that uses it, like an order's line items and shipping address, so one read gets everything and one write saves it all at once, within a 16 MB limit per document.
- [Environment Variables and \`PATH\`](https://www.ask-codey.com/lessons/powershell-environment-variables) (Apprentice): Environment variables are settings Windows hands to every program, read and set in PowerShell with $env:, and PATH is the one that lists the folders searched for a command, which is why a program outside them is not recognized until you run it by its path or add its folder for this session.
- [Environment Variables: export and env](https://www.ask-codey.com/lessons/bash-environment-variables) (Apprentice): Programs you start can't see your shell variables, only environment variables, so export shares a variable with them, env and printenv show what they'll see, and NAME=value in front of a command sets one for that command alone.
- [Equality and Truthy Values](https://www.ask-codey.com/lessons/javascript-tricky-values-equality-and-truthiness) (Apprentice): JavaScript has a loose == that converts types before comparing and a strict === that doesn't, and it treats every value as truthy or falsy in a condition, so you learn which to use and where 0 and empty text trip people up.
- [Error Handling and Consistent Error Responses](https://www.ask-codey.com/lessons/node-express-error-handling) (Journeyman): Express 5 passes an error from any route, async ones included, to error-handling middleware with four parameters, and a 404 handler after the routes catches every unknown path, so every error the API sends has one JSON shape and no caller ever sees an HTML page or a stack trace.
- [Errors a User Can Act On](https://www.ask-codey.com/lessons/bash-script-errors) (Journeyman): A script people depend on says what went wrong and what to do about it: it prints problems on standard error with >&2, stops with an exit code that means something (0 it worked, 1 it failed, 2 it was run wrong), and keeps those habits in a die function and a usage message.
- [Errors and the Mean Absolute Error](https://www.ask-codey.com/lessons/ml-mean-absolute-error) (Apprentice): A guess's error, or residual, is the actual value minus the guess, and because errors above and below cancel out when they're averaged, the mean absolute error averages their sizes instead, giving how far off the guesses usually are in the label's own units, by hand or with scikit-learn's mean_absolute_error.
- [ESLint and Prettier for a Node Project](https://www.ask-codey.com/lessons/node-pro-eslint-and-prettier) (Journeyman): ESLint reads a Node project's code and reports likely mistakes, such as a variable nobody uses or a == that hides text from a URL, and Prettier lays out every file the same way, so you set both up once with a flat config, globals.node and npm scripts.
- [Event Binding](https://www.ask-codey.com/lessons/binding-and-events-in-angular-event-binding) (Apprentice): Parentheses bind an event to a method of the component, such as (click)="addToCart()". $event passes the event itself, a template reference variable such as #box passes an element, and (keyup.enter) listens for one key.
- [Event Logs: Why Did It Restart?](https://www.ask-codey.com/lessons/powershell-event-logs) (Journeyman): Windows writes what happens to it in event logs, and Get-WinEvent -FilterHashtable finds the events you want by log, event ID, level and start time, so the five restart IDs, 41, 1074, 6005, 6006 and 6008, tell a planned restart from a crash or a power cut.
- [Example](https://www.ask-codey.com/lessons/mapping-data-to-models-example) (Journeyman): A CategoriesDao class loads every category from the database into a list, and Main prints each category's name.
- [Example: a Product DAO](https://www.ask-codey.com/lessons/mapping-data-to-models-in-csharp-example-a-product-dao) (Journeyman): A complete ProductDao for Northwind, with methods to get, search, add, update and delete products, all with parameters and one mapping method.
- [Exceptions in C#](https://www.ask-codey.com/lessons/exceptions-in-csharp) (Apprentice): When something goes wrong at run time, C# throws an exception, and the program crashes unless code catches it. Prevent what you can check for; catch what you can't, most specific type first; and throw your own when a method can't do what it's asked.
- [Execute: Insert, Update and Delete](https://www.ask-codey.com/lessons/dapper-execute-insert-update-and-delete) (Journeyman): Execute runs INSERT, UPDATE and DELETE and returns how many rows changed. To get a new row's id back, query it with QuerySingle&lt;int>.
- [Exercise: A Fan Page for Your Favorite Band](https://www.ask-codey.com/lessons/exercise-html-band-fan-page) (Novice): Build a two-page fan site for a band you love, with a heading outline, paragraphs, a link to the band's site, jump-to links and an album page linked both ways, and let the tests check every heading and link.
- [Exercise: A Game High-Score Board](https://www.ask-codey.com/lessons/exercise-html-high-score-board) (Apprentice): Build the Galaxy Blasters arcade's high-score board from plain-text data, with a countdown list, a scores table with a caption, header cells and a totals row, and a description list, and let the tests check its structure.
- [Exercise: A Mobile-First Taco Truck Page](https://www.ask-codey.com/lessons/exercise-css-mobile-first-taco-truck) (Journeyman): Style Sol Taco Truck's ready-made page mobile first, with a one-column phone layout, two min-width breakpoints in rem and a truck photo that fills its box, and let the tests check each part.
- [Exercise: A Morning Start-Up Script](https://www.ask-codey.com/lessons/exercise-bash-a-morning-start-up-script) (Apprentice): Write morning.sh, a script that greets whoever runs it and shows the date, the to-do list and the free disk space, make it runnable, turn it into a command called morning, and let a check script run it from another folder to tell you what's done.
- [Exercise: A Morning Start-Up Script](https://www.ask-codey.com/lessons/exercise-powershell-a-morning-start-up-script) (Apprentice): Write morning.ps1, a script that greets whoever runs it, shows the date, reads the to-do list beside it from any folder and shows the free space on drive C, answer three questions about running it, and let a Pester check run it the way someone else would.
- [Exercise: A Pet Adoption Page](https://www.ask-codey.com/lessons/exercise-css-pet-adoption-page) (Novice): Write Paws & Whiskers' whole "Meet Biscuit" page from a content sheet, with a skeleton, structure elements, a pet-card class and a linked stylesheet with two rules, and let the tests check every part.
- [Exercise: A Photo Gallery Grid](https://www.ask-codey.com/lessons/exercise-css-photo-gallery-grid) (Journeyman): Lay out Trail Photo Club's page with CSS Grid, from named page areas to a gallery that fits any width, a photo of the month that covers four cells and cards lined up with subgrid, and let the tests check each step.
- [Exercise: A Pizza Order Form](https://www.ask-codey.com/lessons/exercise-html-pizza-order-form) (Apprentice): Build Slice of Heaven Pizza's online order form with radio buttons, checkboxes, a dropdown, typed inputs and a text area, then send it and see exactly what the kitchen receives.
- [Exercise: A Playlist You Can Walk](https://www.ask-codey.com/lessons/exercise-ds-linked-playlist) (Apprentice): "Play next" lags on long up-next queues, and Previous must be instant: build a music player's playlist where next, previous, play next and remove each take the same moment at any length, with the tests checking every end and a 200,000-song run, and name each method's Big-O.
- [Exercise: A Podcast Episode Page](https://www.ask-codey.com/lessons/exercise-html-podcast-episode-page) (Journeyman): Build the page for a bike-repair podcast's episode, with an audio player, a transcript, a captioned video and a map, and let the tests check each part.
- [Exercise: A Project's Build Script](https://www.ask-codey.com/lessons/exercise-powershell-a-projects-build-script) (Journeyman): Finish the Maple Street Bikes website's build.ps1 with check, test, package and publish tasks that find their tools with Get-Command, stop when a program's exit code says it failed, and read the deploy token from the environment, and let a Pester check run each task the way a build server would.
- [Exercise: A Project's Scripts](https://www.ask-codey.com/lessons/exercise-bash-a-projects-scripts) (Journeyman): Give an animal shelter's website the scripts every project has: setup.sh checks the tools and makes a private .env, test.sh checks that every page has a title, and deploy.sh loads .env, runs the tests and copies the site with rsync; then keep .env out of Git, and let a check script tell you what's done.
- [Exercise: A Recipe Box App](https://www.ask-codey.com/lessons/exercise-bash-a-recipe-box-app) (Freelancer): Finish recipes, a whole command-line application in bash, with add and list subcommands, getopts options, a help page and a version, its recipes in ~/.local/share and its settings in ~/.config made on the first run, columns, and color only on a terminal, while a check script runs it job by job.
- [Exercise: A Recipe Box Module](https://www.ask-codey.com/lessons/exercise-powershell-a-recipe-box-module) (Freelancer): Turn a recipe-box module that prints lines of text into a real tool, so its recipes come back as objects you can sort and filter, live in a folder of their own under $env:LOCALAPPDATA, show in color on the screen without a color in the data, and fill a small window with a list and a button, while a Pester check tries it on a recipe box of its own.
- [Exercise: A Reusable Review Card](https://www.ask-codey.com/lessons/exercise-html-reusable-review-card) (Freelancer): Build Pixel Palace's reviews page with a banner in declarative shadow DOM, a review card layout written once and used four times, and star ratings from a ready-made custom element, then explain two repairs the parser made, and let the tests check it all.
- [Exercise: A Song Request Form](https://www.ask-codey.com/lessons/exercise-html-song-request-form) (Apprentice): Build the request form for a local radio station, with four labeled text boxes and a submit button, then send it by GET and by POST and record exactly what it sent, while the tests check every box and label.
- [Exercise: A Trivia Night Page](https://www.ask-codey.com/lessons/exercise-html-trivia-night) (Apprentice): Build the page for a pizzeria's trivia night, with answers that open on a click, house rules in a popover, the date in a time element and a quote from last month's winners, and let the tests and the validator check it.
- [Exercise: A Weekend Trip Guide](https://www.ask-codey.com/lessons/exercise-html-weekend-trip-guide) (Apprentice): Build a three-page weekend guide to a lakeside town, with pictures, alt text, links between the pages and a ready-made stylesheet, then put it online and send someone the link.
- [Exercise: Abstraction](https://www.ask-codey.com/lessons/exercise-abstraction) (Journeyman): Finish a city bike share. Make Vehicle an abstract class that every kind of vehicle prices for itself, give the electric ones the IChargeable contract, and write a RideService that gets its time from an IClock.
- [Exercise: Adoption Applications with Mongoose](https://www.ask-codey.com/lessons/exercise-mongodb-adoption-applications-with-mongoose) (Journeyman): Write a Mongoose schema and model for the Maple Street Pet Adoption Center's adoption applications, with required fields, an allowed list of statuses and a reference to the pet, then the three data-layer functions its API calls, and let the tests check each one.
- [Exercise: Adoption Pipeline](https://www.ask-codey.com/lessons/exercise-ml-adoption-pipeline) (Freelancer): Write three functions that build a ColumnTransformer to fill, scale and one-hot encode Happy Tails' 800 pets, put it in a pipeline with logistic regression, and train it on the training pets only, and let pytest check the steps, their settings, what each step learned, and a guess for a pet with a blank weight and a new color.
- [Exercise: Aggregating Data](https://www.ask-codey.com/lessons/exercise-aggregating-data) (Journeyman): Twelve questions about Northwind, answered with COUNT, SUM, AVG, MIN, MAX, GROUP BY and HAVING, each with the result to expect.
- [Exercise: an Angular Client for a Web API](https://www.ask-codey.com/lessons/exercise-an-angular-client-for-a-web-api) (Journeyman): Give your products API a front end. A service calls the API with HttpClient; a component lists the products, filters them by category, deletes them and adds new ones, and says so when something fails. Ten tests answer for a pretend API, so they need nothing running.
- [Exercise: An Animated Game Start Screen](https://www.ask-codey.com/lessons/exercise-css-game-start-screen) (Journeyman): Bring Star Hopper's start screen to life with twinkling stars, a title that slides in, buttons that lift on hover and focus and a looping loading bar, then calm it all for reduced motion, while the tests check every rule.
- [Exercise: an API Client](https://www.ask-codey.com/lessons/exercise-an-api-client) (Journeyman): Write a ProductClient for your products API, with one async method per endpoint, 404s turned into null or false, and a low-stock report built with LINQ. Tests give it a fake API, so they need nothing running.
- [Exercise: Arcade Token Counters](https://www.ask-codey.com/lessons/exercise-javascript-arcade-token-counters) (Journeyman): Write the Starlight Arcade's token counters, prize-ticket machine and once-only welcome bonus, each keeping its count private in a closure, and let the tests check each one.
- [Exercise: Arrays and Loops](https://www.ask-codey.com/lessons/exercise-arrays-and-loops) (Apprentice): Solve 17 problems with arrays and loops (filling, searching, totaling, finding the highest and lowest, reversing) and check each with tests.
- [Exercise: Audit the Movie Theater Page](https://www.ask-codey.com/lessons/exercise-html-accessibility-audit) (Journeyman): Run a full accessibility audit on the Starlight Cinema's showtimes page, log the ten barriers you find, fix the HTML, and let the tests confirm every fix.
- [Exercise: Back Up While You Sleep](https://www.ask-codey.com/lessons/exercise-bash-back-up-while-you-sleep) (Journeyman): Finish a nightly backup that cron can run while nobody is there: rsync mirrors a school-work folder, the script works from any folder with a PATH of its own, logs everything with the date and time, takes a lock with flock, refuses to mirror an empty folder and can rehearse with --dry-run; then write its crontab line for 18:00, while a check runs it the way cron would.
- [Exercise: Back Up While You Sleep](https://www.ask-codey.com/lessons/exercise-powershell-back-up-while-you-sleep) (Journeyman): Turn a backup script that only works at the keyboard into one a scheduled task can run every evening at 6 PM, with no questions, full paths, a dated log and a transcript, a robocopy mirror that never mirrors an empty folder and can rehearse, and an honest exit code, then build the task that runs it, while a Pester check runs your script the way the task would.
- [Exercise: Badges and a Sticky Header](https://www.ask-codey.com/lessons/exercise-css-adoption-cards-badges) (Apprentice): Pin New! badges to the corners of Paws & Whiskers' pet cards, lay an overlay over a photo, make the header stick and the Adopt today button stay on screen, and choose what sits in front, while the tests check every rule.
- [Exercise: Bakery Data Check](https://www.ask-codey.com/lessons/exercise-ml-bakery-data-check) (Apprentice): Clone the course's first exercise, make its virtual environment, install the pinned toolkit, read how Sunrise Bakery's data was made, and finish three functions that report the installed versions, load the bakery's 120 days and count the table's rows and columns, then let pytest check them and hand the work in with Git.
- [Exercise: Bakery Price Board](https://www.ask-codey.com/lessons/exercise-node-bakery-price-board) (Novice): Finish Maple Street Bakery's price board, a Node program that prints each item with console.log, fixing a line with a mistake, switching a sold-out item off with a comment and printing process.version, then let the tests check every line and hand it in with Git.
- [Exercise: Bakery Specials API](https://www.ask-codey.com/lessons/exercise-fastapi-bakery-specials-api) (Apprentice): Finish Maple Street Bakery's FastAPI app with two GET routes, a welcome message at / and today's specials at /specials, try them on the docs page, let pytest's tests check both, and hand your work in with Git.
- [Exercise: Band Fan Page](https://www.ask-codey.com/lessons/exercise-javascript-band-fan-page) (Apprentice): Put a band's tour on its fan page with JavaScript, building a line for each upcoming show from an array, marking the sold-out ones and counting what's left, with tests for the data and a checklist for the page.
- [Exercise: Bean Street's First Notebook](https://www.ask-codey.com/lessons/exercise-data-first-notebook) (Novice): Fix a coffee chain's first notebook, whose cells are in the wrong order and which has no title, by adding a Markdown title, putting the cells in an order that runs from top to bottom, running Restart and Run All and saving, then let pytest read the saved notebook and hand it in with Git.
- [Exercise: Best Sellers by Month](https://www.ask-codey.com/lessons/exercise-mongodb-best-sellers-by-month) (Journeyman): Write five report pipelines for Riverbend Bike Shop's sales dashboard, from its top 5 products by units sold to its sales in each month of 2026 and each customer's spending with their name, and let the tests check the rows each one gives back.
- [Exercise: Bike Cards That Fit Anywhere](https://www.ask-codey.com/lessons/exercise-css-bike-shop-container-cards) (Journeyman): Make one Spoke & Chain bike card fit three kinds of spots, a wide feature, a catalog column and a narrow sidebar, with named containers, @container rules and a fluid title, and let the tests check each part.
- [Exercise: Bike Rental Prices](https://www.ask-codey.com/lessons/exercise-javascript-bike-rental-prices) (Apprentice): Finish four functions for a bike rental shop, using conditions, the conditional operator and a for loop, and let the tests check every price, bike size and group receipt.
- [Exercise: Bike Repair Tickets](https://www.ask-codey.com/lessons/exercise-fastapi-bike-repair-tickets) (Journeyman): Finish a bike shop's FastAPI tickets API with a PATCH that changes only what's sent, a status change that moves one step at a time and answers 409 through your own exception and its handler, a DELETE that answers 204, and handlers that give every error, FastAPI's own 404 and 422 and a crash included, one JSON shape.
- [Exercise: Bike Repair Tickets](https://www.ask-codey.com/lessons/exercise-node-bike-repair-tickets) (Journeyman): Finish Spoke & Chain's tickets API with Express and Zod, checking every new ticket, moving a ticket only to its next status, deleting with 204, and answering every error in one JSON shape, and let Supertest's tests check every answer.
- [Exercise: Board Game Shelf API](https://www.ask-codey.com/lessons/exercise-node-board-game-shelf-api) (Apprentice): Finish the board game café's Express API, with a games router that lists the games with filters for group size and playing time, finds one game by its id and adds a game, plus a timing middleware and a JSON 404, and let Supertest's tests check every answer.
- [Exercise: Board Game Shelf API](https://www.ask-codey.com/lessons/exercise-fastapi-board-game-shelf-api) (Apprentice): Finish the board game café's FastAPI games router, which lists the shelf with filters for group size and playing time, finds one game by its id with a 404 when there's none, and adds a game with a 201, and let TestClient's tests check every answer.
- [Exercise: Book Club Picks](https://www.ask-codey.com/lessons/exercise-node-book-club-picks) (Apprentice): Split the Chapter Two Book Club's one long planner file into three modules with named exports, add npm scripts, install date-fns at a pinned version to format the meeting date, and keep node_modules out of Git, with node --test checking every step.
- [Exercise: Book Club's First Route](https://www.ask-codey.com/lessons/exercise-python-book-club-first-route) (Apprentice): Write a book club's first FastAPI app, a route that lists every book and a route that finds one book by its number or answers 404, then write two TestClient tests of your own and let pytest check it all.
- [Exercise: BooksPlus](https://www.ask-codey.com/lessons/exercise-booksplus) (Journeyman): Turn a new ASP.NET Core MVC project into a small bookstore website for BooksPlus, with featured books, a list, details, search and a form that adds a book, and run tests that request every page.
- [Exercise: Bookstore Search](https://www.ask-codey.com/lessons/exercise-javascript-bookstore-search) (Freelancer): Make a bookstore's search box fast and safe, writing a debounce function tested with fake timers, a search that finds books by title or author, and results drawn with textContent, so a title made of HTML shows as text.
- [Exercise: Bootstrap](https://www.ask-codey.com/lessons/exercise-bootstrap) (Apprentice): Build a four-page bookstore with Bootstrap 5, with a navbar, a carousel, a table of books with a paging button group, and two forms, and check it at every screen size.
- [Exercise: Build a Coat Check](https://www.ask-codey.com/lessons/exercise-ds-coat-check) (Journeyman): The paper tickets ran out, and 3,000 coats are coming: build a coat check that hands any coat back in a moment however full it gets, keeps every coat when two names share a hook, and moves to a bigger room before it slows down. The tests check it, collisions and a busy night included.
- [Exercise: Build a Growing Array](https://www.ask-codey.com/lessons/exercise-ds-growing-array) (Apprentice): The music app crashes on the 9th song of an 8-slot playlist: build a playlist that takes any number of songs, adds a million in under 2 seconds and opens any song at once, with tests on every edge, and name each method's Big-O.
- [Exercise: Build-It Pizzeria](https://www.ask-codey.com/lessons/exercise-build-it-pizzeria) (Journeyman): Design a database for a build-your-own pizzeria from its menu and order slips, write the script that builds and fills it, and answer the owner's questions with queries.
- [Exercise: Café Regulars](https://www.ask-codey.com/lessons/exercise-ml-cafe-regulars) (Journeyman): Write four functions that run one round of k-means by hand in plain Python, group the Cozy Corner Café's 600 loyalty members with a StandardScaler and KMeans pipeline, and describe each group with groupby, and let pytest check the hand round, the pipeline, the labels and the summaries.
- [Exercise: Camping Trip Forecast](https://www.ask-codey.com/lessons/exercise-python-camping-forecast) (Journeyman): Write the four functions behind a camping trip's forecast, finding the forecast's address in the Weather Service's answer, picking out the weekend, planning the packing and falling back to a saved copy, and let pytest's tests check them offline with saved answers and stand-in fetches.
- [Exercise: Check a Remote PC](https://www.ask-codey.com/lessons/exercise-powershell-check-a-remote-pc) (Freelancer): Finish two tools for a small office's PCs, Test-PcConnection to say whether each PC answers and whether its remoting door is open, and Get-PcHealth to check free space and the print service right here for your own PC and through Invoke-Command only for another PC whose door is open, while a Pester check stands in for the other PCs so nothing needs remoting turned on.
- [Exercise: Checkout Without Overselling](https://www.ask-codey.com/lessons/exercise-mongodb-checkout-without-overselling) (Journeyman): Write the five statements behind Riverbend Bike Shop's checkout and cancel, from a stock update that never sells a bike twice to a restock, and let the tests run two checkouts at once and a cancel inside a transaction.
- [Exercise: Classes](https://www.ask-codey.com/lessons/exercise-classes) (Apprentice): Write six classes from a specification (Rectangle, Circle, MathTest, Printer, Elevator and Airplane), choosing each property's access, and let the tests check them.
- [Exercise: Code from a Class Diagram](https://www.ask-codey.com/lessons/exercise-dp-code-from-a-diagram) (Apprentice): Take a ticket from Riverside Library's app team: a class diagram of the library's media is agreed, and the code doesn't match it yet. Finish the classes so audiobooks are lent like books, a member holds up to five items, and giving one back makes room, with the tests green throughout.
- [Exercise: Coffee Orders by Hand](https://www.ask-codey.com/lessons/exercise-data-coffee-orders-by-hand) (Apprentice): Read a week of Bean Street Coffee's orders with the csv module and answer the owner's questions in plain Python, total sales by store, the best-selling drink and the average order, with four functions that pytest checks.
- [Exercise: Coffee Sales at a Glance](https://www.ask-codey.com/lessons/exercise-python-coffee-sales-at-a-glance) (Apprentice): Answer a coffee chain owner's three questions about a month of sales with pandas and matplotlib, by writing four functions that load the data, total each store, find the busiest day and save a labeled bar chart, and let pytest's tests check each one.
- [Exercise: Coffee Shop Receipt](https://www.ask-codey.com/lessons/exercise-javascript-coffee-shop-receipt) (Novice): Finish six small functions that work out a coffee shop receipt's subtotal, tax, tip and lines, using numbers, strings, comparisons and conversions, and let the tests check each one.
- [Exercise: Collections](https://www.ask-codey.com/lessons/exercise-collections) (Apprentice): Solve 14 problems with List&lt;T> and Dictionary&lt;TKey, TValue> (filtering, searching, counting, looking up and combining) and check each one with tests.
- [Exercise: Community Center Story](https://www.ask-codey.com/lessons/exercise-data-community-center-story) (Journeyman): Write four tested functions that find which classes fill up, the busiest month, the no-show rate and the categories too small to trust at a community center, then tell the story in a notebook under four set headings, run it from a fresh start, and let pytest read the saved notebook.
- [Exercise: Community Garden Requests](https://www.ask-codey.com/lessons/exercise-fastapi-community-garden-requests) (Apprentice): Answer Greenleaf Community Garden's requests by hand in plain Python, with a function that reads each request's method, path and query string and returns the right status code and body, a 404, 400 or 405 included, and let pytest check every answer.
- [Exercise: Community Garden Server](https://www.ask-codey.com/lessons/exercise-node-garden-plots-server) (Apprentice): Finish the community garden's server with Node's own http module, answering the list of plots, the free plots, one plot by its number and a JSON 404 for anything else, and let Supertest's tests check every answer.
- [Exercise: Concert Tickets API Tests](https://www.ask-codey.com/lessons/exercise-node-concert-tickets-api-tests) (Journeyman): Write the Supertest tests for Starlight Stage's working tickets API, from its shows to buying tickets, its errors and refunds, and prove they're good by catching three bugs the check plants in the API.
- [Exercise: Concert Tickets API Tests](https://www.ask-codey.com/lessons/exercise-fastapi-concert-tickets-api-tests) (Journeyman): Write the TestClient tests for Starlight Stage's working tickets API, from its shows to buying tickets, its errors and refunds, and prove they're good by catching three bugs the check plants in copies of the API.
- [Exercise: Connecting an App](https://www.ask-codey.com/lessons/exercise-connecting-an-app) (Journeyman): Write the Data Access Objects for the BooksPlus bookstore (categories, books and customers) with ADO.NET, and run tests that check them against your own database.
- [Exercise: Cookies and Pizza](https://www.ask-codey.com/lessons/exercise-cookies-and-pizza) (Apprentice): Plan a party in JavaScript. Write functions with default parameters for cookies and boxes, then use filter, map, find, sort and reduce with arrow functions to pick pizzas, price an order and describe it, with tests run by Node.
- [Exercise: Delivery Time Errors](https://www.ask-codey.com/lessons/exercise-ml-delivery-time-errors) (Journeyman): Write the mean absolute error, the root mean squared error, R squared and a check against the always-the-average baseline in plain Python for Pine Ridge Delivery's time estimates, and let pytest compare each one with scikit-learn's own function.
- [Exercise: Dependency Injection](https://www.ask-codey.com/lessons/exercise-dependency-injection) (Journeyman): Write a cinema box office that is given its clock and price list, sells each seat once with a HashSet, keeps a waiting list in a Queue, and undoes sales with a Stack.
- [Exercise: Deploy Over SSH](https://www.ask-codey.com/lessons/exercise-bash-deploy-over-ssh) (Freelancer): Give the book club's server a short name in an SSH config file, then write deploy.sh, one command that checks the site, copies it to the server with rsync over SSH, lists what's live with ssh and can rehearse first, and let a check script that needs no server tell you what's done.
- [Exercise: Dog Breed Explorer](https://www.ask-codey.com/lessons/exercise-javascript-dog-breed-explorer) (Journeyman): Finish an animal shelter's dog breed explorer, writing the functions that read the Dog CEO API's breed list, build a photo's address and load a photo with friendly errors, with offline tests for the functions and a checklist for the page's loading, empty and error states.
- [Exercise: Downloads Sorter](https://www.ask-codey.com/lessons/exercise-python-downloads-sorter) (Journeyman): Finish a command-line tool that sorts a folder's files into Photos, Documents, Installers and Archives, planning the moves first, showing them with --dry-run, and never replacing or deleting a file, while pytest checks each step on folders it builds for itself.
- [Exercise: Emergency Room Triage](https://www.ask-codey.com/lessons/exercise-ds-er-triage) (Journeyman): Build an emergency room's waiting list: most urgent first, fair ties, arrivals and calls all night, and a 100,000-patient disaster drill in under 3 seconds; then see what the same structure does for Module 7's maps and routes.
- [Exercise: Explain the Energy Bill](https://www.ask-codey.com/lessons/exercise-ml-explain-the-energy-bill) (Freelancer): Write three functions that measure which features Greenway Home Energy's random forest leans on with permutation importance on its test homes, pick the few that matter most, and turn them into four plain sentences for a homeowner, and let pytest check the call's settings, the sorting and its ties, and every sentence.
- [Exercise: Fair Model Showdown](https://www.ask-codey.com/lessons/exercise-ml-fair-model-showdown) (Freelancer): Write four functions that build a tree's settings grid with step names, set up a grid search scored by accuracy on the folds you're given, compare models on the same folds with each one's mean and spread, and score the chosen model once on the test bookings, and let pytest check the grid, the shared folds and that the test rows are never learned from.
- [Exercise: Fairness Audit](https://www.ask-codey.com/lessons/exercise-ml-fairness-audit) (Freelancer): Write two functions that audit the Summit Scholarship Fund's interview screen, one that works out each district's selection rate, true positive rate and false positive rate from its own counts, reporting a rate that would divide by 0 as None, and one that finds the largest gap between districts, and let pytest check the exact rates.
- [Exercise: Farmers Market First Look](https://www.ask-codey.com/lessons/exercise-data-farmers-market-first-look) (Apprentice): Write five functions that load a farmers market's sales from a CSV file, its vendor list from the right sheet of an Excel workbook and its nested JSON reviews as one row each, then sum up a table and count its top categories, and let pytest check what each one returns.
- [Exercise: Farmers Market Vendors](https://www.ask-codey.com/lessons/exercise-fastapi-farmers-market-vendors) (Journeyman): Write the Saturday Farmers Market's data code in one file, with a vendors table and a products table linked by a foreign key, a join, grouped counts that include a vendor with no products, one page of vendors with the total, and a unique email that raises your own DuplicateEmail, and let pytest check each on a fresh database.
- [Exercise: Farmers Market Vendors](https://www.ask-codey.com/lessons/exercise-node-farmers-market-vendors) (Journeyman): Write the Saturday Farmers Market's vendor functions with the official driver (filters with $in and $gte, a sorted page with its total, one vendor by its id, updates with $set and $push, a delete, two indexes and a text search) and let tests on a throwaway MongoDB check every one.
- [Exercise: Fast Order Lookups](https://www.ask-codey.com/lessons/exercise-mongodb-fast-order-lookups) (Journeyman): Create the four indexes that make Riverbend Bike Shop's slow pages fast and its sign-up form safe, and let the tests read each query's explain report, run the search box and try a duplicate email.
- [Exercise: Fewer Keystrokes](https://www.ask-codey.com/lessons/exercise-powershell-fewer-keystrokes) (Journeyman): Finish Grandma's photo book the fast way, setting PSReadLine up with a list view and a longer memory, fixing a long command with keys, finding an old command in a saved history, and writing one-line commands with && and || that a Pester check runs where the first step works and where it fails.
- [Exercise: Fewer Keystrokes](https://www.ask-codey.com/lessons/exercise-bash-fewer-keystrokes) (Journeyman): Write the settings that make your shell faster into a file of your own, count a photo project's photos four folders deep with \*\*, read two exit codes, and write one line that backs up the beach photos and says so only if it worked, then let a check script tell you what's done.
- [Exercise: File I/O](https://www.ask-codey.com/lessons/exercise-file-i-o) (Journeyman): Read a school's grades from a CSV file with mistakes in it, log every line you can't read with your own LogService, write an honor roll, add new students to the end of a file, and import an honor roll all or nothing, with an exception that names the bad line.
- [Exercise: Find the Duplicate Songs](https://www.ask-codey.com/lessons/exercise-big-o-duplicate-songs) (Apprentice): Users with big libraries say the "find duplicate songs" button never finishes: write a new one with the same answers that handles 200,000 songs in under 2 seconds, count what today's button costs, and name each one's growth rate.
- [Exercise: Find the Song](https://www.ask-codey.com/lessons/exercise-ds-find-the-song) (Apprentice): A music app's search box freezes on a million songs: write the catalog's search so it reads at most 20 titles, keep the playlist search that reads from the top, count what each one reads, and let the tests check them, edge cases and 10,000 searches included.
- [Exercise: Find Your Way](https://www.ask-codey.com/lessons/exercise-bash-find-your-way) (Novice): Explore a summer camp made of folders with pwd, ls, cd and Tab, write down what you find, and let a check script tell you which answers are right.
- [Exercise: Find Your Way](https://www.ask-codey.com/lessons/exercise-powershell-find-your-way) (Novice): Explore Camp Bluejay's folders with Get-Location, Get-ChildItem, Set-Location and Get-Content, write six answers in answers.txt, and let a Pester check tell you which are right.
- [Exercise: First Styles](https://www.ask-codey.com/lessons/exercise-css-first-styles) (Novice): Give The Daily Grind's menu its look with five CSS rules from the owner's style guide, and run the exercise checks for the first time to see each rule pass.
- [Exercise: Fix the Broken Recipe Blog](https://www.ask-codey.com/lessons/exercise-css-fix-the-broken-layout) (Freelancer): Find and fix five layout bugs on a recipe blog's home page with the developer tools, write down the cause of each, and let the checks confirm every fix.
- [Exercise: Fix the Coffee Shop Page](https://www.ask-codey.com/lessons/exercise-html-fix-the-coffee-shop-page) (Novice): Find and fix six mistakes in a coffee shop's home page, using the developer tools to see what the browser made of it, until every test passes.
- [Exercise: Fix the Frustrating Sign-Up Form](https://www.ask-codey.com/lessons/exercise-html-fix-the-sign-up-form) (Journeyman): Fix Peak Fitness's frustrating sign-up form with real labels, the right types, autocomplete, hints and required fields marked in words, then let the checks and a keyboard-only run prove it works.
- [Exercise: Fix the Misleading Charts](https://www.ask-codey.com/lessons/exercise-data-fix-misleading-charts) (Journeyman): Fix four charts of a city's recycling numbers that run but mislead, a bar chart whose axis starts at 40, a line with no title or labels, two lines told apart only by red and green, and two charts side by side on different scales, then put four charts on one page saved as a PNG, and let pytest read each chart's Axes.
- [Exercise: Food Truck Orders](https://www.ask-codey.com/lessons/exercise-node-food-truck-orders) (Apprentice): Finish the Rolling Noodle food truck's order functions, a day's total with reduce, one dish's orders with filter, receipt lines with map and destructuring, JSON both ways and an async loader with a clear error, and let node --test check each one.
- [Exercise: Food Truck Orders](https://www.ask-codey.com/lessons/exercise-fastapi-food-truck-orders) (Apprentice): Load the Rolling Noodle food truck's day of orders from JSON into Order objects, refuse bad JSON with a clear ValueError, then total the day, find one dish's orders and build the receipt's lines, all with type hints, and let pytest's tests check each piece.
- [Exercise: Food Truck Weekly Report](https://www.ask-codey.com/lessons/exercise-data-food-truck-weekly-report) (Journeyman): Write the six functions of a food truck's weekly report script, which find the newest week's sales file, load it, sum up its headline numbers, chart the items sold, write the report as a web page in a folder for that week, and run it all from one command with argparse options, and let pytest check the numbers and the files it writes.
- [Exercise: Fraud Check Scorecard](https://www.ask-codey.com/lessons/exercise-ml-fraud-check-scorecard) (Journeyman): Write the confusion matrix's four counts, accuracy, precision, recall, the F1 score and all three scores at a chosen threshold in plain Python for Northside Credit Union's fraud check, and let pytest compare each one with scikit-learn's own function, edge cases included.
- [Exercise: Friends of Friends](https://www.ask-codey.com/lessons/exercise-ds-friends-of-friends) (Journeyman): A small social app needs a "people you may know" box and a "how many steps apart?" line that stay fast in a town of 90,000 people: turn the app's list of friendships into something quick to search, write both features, and let the tests check them, the big town included.
- [Exercise: From Div Soup to Semantic HTML](https://www.ask-codey.com/lessons/exercise-html-div-soup-to-semantic) (Apprentice): Rewrite the Maple Street Library's div-soup news page with header, nav, main, article, section, aside and footer, without changing a word, and watch its ready-made stylesheet and its checks reward every region you mark up.
- [Exercise: Fruit Sorter](https://www.ask-codey.com/lessons/exercise-ml-fruit-sorter) (Journeyman): Write four functions for Three Rivers Fruit Packers, a straight-line distance and a nearest-neighbors search in plain Python, then a decision tree and a nearest neighbors classifier with the settings you choose, and let pytest check the distances, the neighbors' order and the models' settings.
- [Exercise: Fun Run Sign-Ups](https://www.ask-codey.com/lessons/exercise-javascript-fun-run-sign-ups) (Apprentice): Finish seven functions that tidy a 5K fun run's messy sign-ups, from names and bib numbers to missing shirt sizes, donations and emergency contacts, and save and load the list as JSON, with tests that check each one.
- [Exercise: Game Night Project Setup](https://www.ask-codey.com/lessons/exercise-javascript-game-night-project-setup) (Journeyman): Take a working but messy Game Night scoreboard and set it up like a professional project, with npm scripts, ESLint, Prettier and a .gitignore, until npm run lint, npm run format:check and the tests all pass.
- [Exercise: Game Night Toolkit](https://www.ask-codey.com/lessons/exercise-python-game-night-toolkit) (Apprentice): Finish a game night package of modules, dice and scores, keep a try-out line from running on import, connect the modules with import lines, and run it all from its own virtual environment with pinned requirements.
- [Exercise: Game Score Functions](https://www.ask-codey.com/lessons/exercise-javascript-game-score-functions) (Apprentice): Write the four functions that keep score in a small video game, from points for coins to the end-of-level line, and let the tests check each one.
- [Exercise: Green Before, Green After](https://www.ask-codey.com/lessons/exercise-dp-green-before-green-after) (Novice): Take your first ticket from Sunrise Bakery: a receipt printer that needs the subtotal and tax on their own, and delivery from Monday. Change the working checkout code in small, safe steps (rename, pull a method out, add the rule), running the tests after every one.
- [Exercise: Guess the Command](https://www.ask-codey.com/lessons/exercise-powershell-guess-the-command) (Apprentice): Answer eight questions from a bike shop's owner by guessing verb-noun commands and checking them with Get-Command, Get-Alias and Get-Help, write the answers in answers.txt, and let a Pester check tell you which are right.
- [Exercise: Harden the Coffee Club API](https://www.ask-codey.com/lessons/exercise-node-harden-the-coffee-club-api) (Journeyman): Harden Bean There Coffee Club's working Express API before it goes online, with helmet's headers, CORS for the club's own pages, a rate limit on sign-in, an allow-list of fields and a check that refuses operator objects, and let Supertest's tests check every job.
- [Exercise: Harden the Coffee Club API](https://www.ask-codey.com/lessons/exercise-fastapi-harden-the-coffee-club-api) (Journeyman): Harden Bean There Coffee Club's working FastAPI app before it goes online, with CORS for the club's two web pages, security headers from a middleware, a slowapi rate limit on sign-in, an update model that can't set role, and the JWT secret read from the environment, and let the tests check every job.
- [Exercise: High-Score Leaderboard](https://www.ask-codey.com/lessons/exercise-javascript-high-score-leaderboard) (Journeyman): Finish six functions that turn an arcade game's high-score list into its top 3, display lines, totals and a numbered leaderboard, using map, filter, reduce and sort, and let the tests check each one.
- [Exercise: Hillcrest 5K Results](https://www.ask-codey.com/lessons/exercise-data-5k-results) (Apprentice): Write six functions for a fun run's messy registrations and results, tidying names, standardizing t-shirt sizes, splitting names, counting sign-ups by weekday, and turning typed finish times into minutes and a pace per mile, and let pytest check what each one returns.
- [Exercise: Hilltop Creamery Charts](https://www.ask-codey.com/lessons/exercise-data-creamery-charts) (Journeyman): Write four chart functions for an ice cream shop's year, a line of the cones sold each day, bars of the scoops by flavor, a scatter plot of temperature against cones and a histogram of order totals, each returning fig and ax, and let pytest read each chart's title, labels and data.
- [Exercise: Home Price Guesser](https://www.ask-codey.com/lessons/exercise-ml-home-price-guesser) (Journeyman): Write three functions that split Maple Grove's 400 home sales into training and test homes with no home on both sides, train a LinearRegression on the training homes, and guess prices for new homes, and let pytest check the split, the model and the guesses.
- [Exercise: Honest Scores](https://www.ask-codey.com/lessons/exercise-ml-honest-scores) (Journeyman): Write three functions that score a model with shuffled, seeded cross-validation, put its training score beside its validation score, and choose a tree's depth by cross-validation without ever touching the test showings, on Lakeside Cinema's 900 showings, and let pytest check them.
- [Exercise: Houseplant Care](https://www.ask-codey.com/lessons/exercise-python-houseplant-care) (Journeyman): Finish a houseplant app's Plant class, a Cactus subclass that rests in winter, a CareLog dataclass and a function that lists today's plants to water, and let pytest's tests check each one.
- [Exercise: How Many Loaves?](https://www.ask-codey.com/lessons/exercise-ml-how-many-loaves) (Apprentice): Write four plain-Python functions that hold back Sunrise Bakery's last two weeks as test days, guess them with the average and with a weekday rule learned from the training days, and measure each guess's average miss, and let pytest check the split, the arithmetic and that no test day goes into a guess.
- [Exercise: Ingredient Search](https://www.ask-codey.com/lessons/exercise-mongodb-ingredient-search) (Apprentice): Write six mongosh queries for Sunday Kitchen's "what can I cook with what's in my fridge?" search, from recipes with chickpeas to page 2 of the best-rated, and let the tests run each one on the 40 recipes and check what it finds.
- [Exercise: Inheritance](https://www.ask-codey.com/lessons/exercise-inheritance) (Apprentice): Finish a café menu's Drink and Pastry classes so they inherit from MenuItem, with constructors that call base(...), an overridden Price and an overridden ToString().
- [Exercise: Joins](https://www.ask-codey.com/lessons/exercise-joins) (Journeyman): Twelve questions about Northwind that each need more than one table, answered with inner and outer joins, a self join, sub-queries and CASE, each with the result to expect.
- [Exercise: Know Your Listings](https://www.ask-codey.com/lessons/exercise-ml-know-your-listings) (Apprentice): Write three functions that split Riverside's 300 apartment listings into features and a label, sum up a column's mean, median and standard deviation, and rank the features by how strongly each moves with the rent, and let pytest check them.
- [Exercise: Lemonade Stand Forecast](https://www.ask-codey.com/lessons/exercise-python-lemonade-stand-forecast) (Apprentice): Hold back some of a lemonade stand's summer for testing, train a straight-line model with scikit-learn on the rest, turn temperatures into guesses, and measure how far off they are, while pytest checks each function.
- [Exercise: Live Match Scoreboard](https://www.ask-codey.com/lessons/exercise-node-live-match-scoreboard) (Journeyman): Write the live line behind Hilltop Intramurals' scoreboard with the ws package, so every goal reaches every open page at once, a fan who connects late sees the score straight away, bad messages get an error back, and everyone sees how many are watching, with real WebSocket clients in the tests.
- [Exercise: Load a Partial View with fetch](https://www.ask-codey.com/lessons/exercise-load-a-partial-view-with-fetch) (Journeyman): Give BooksPlus a search that updates as you type. Move the results into a partial view, add an action that returns just that partial, and write the JavaScript that fetches it on every keystroke, while the plain search form keeps working.
- [Exercise: Lost and Found CI](https://www.ask-codey.com/lessons/exercise-fastapi-lost-and-found-ci) (Journeyman): Set up Ruff and mypy for the Lost and Found Desk's FastAPI project in pyproject.toml, fix everything they report without changing what the API answers, and add a GitHub Actions workflow that runs Ruff, mypy and pytest on every push.
- [Exercise: Lost and Found CI](https://www.ask-codey.com/lessons/exercise-node-lost-and-found-ci) (Journeyman): Add ESLint and Prettier to the Lost and Found Desk's API with npm scripts, fix every problem they report without changing what the API answers, and add a GitHub Actions workflow that lints, checks the format and runs the tests on every push.
- [Exercise: Make It Fail Well](https://www.ask-codey.com/lessons/exercise-powershell-make-it-fail-well) (Journeyman): Fix a photo mover that loses photos on a bad day, so a failed copy never deletes a photo, a photo with the same name is never replaced, its results stay apart from its messages and a summary prints whatever happens, then answer four questions on reading errors and debugging while a Pester check tries it for real.
- [Exercise: Make It Fail Well](https://www.ask-codey.com/lessons/exercise-bash-make-it-fail-well) (Journeyman): Turn a photo mover that works only on a good day into one you can trust: strict mode, a die function, a usage message, errors on standard error, exit codes that mean something, cleanup with trap, a bug found with bash -x, and two bats tests of your own, while a check script runs it job by job.
- [Exercise: Make the Food Truck Page Shine](https://www.ask-codey.com/lessons/exercise-html-food-truck-metadata) (Journeyman): Write the head of a food truck's page, with a real title and description, a link preview, a canonical link and structured data, and let the tests and two validators check it.
- [Exercise: Market Day Warm-Up](https://www.ask-codey.com/lessons/exercise-ml-market-day-warm-up) (Apprentice): Write five functions that load a farmers' market's 260 weekly sales from a CSV file, count the missing values in each column, fill the blank sales counts with the median on a copy and flag them, pick out one stall's rows, and work out each stall's share of the rows, and let pytest check what each one returns.
- [Exercise: Menus Inside Menus](https://www.ask-codey.com/lessons/exercise-ds-nested-menus) (Journeyman): A restaurant is putting its menu online, with sections inside sections and a tasting menu ten levels deep on the way: count every dish, find the chef's pick, and print the whole menu as an outline, with code that works at any depth. The tests check all three, ten levels down included.
- [Exercise: Methods and Conditions](https://www.ask-codey.com/lessons/exercise-methods-and-conditions) (Apprentice): Write 15 methods for three small businesses, using parameters, return values, ref and out, and conditions, and check each one with tests.
- [Exercise: Model Check-Up](https://www.ask-codey.com/lessons/exercise-ml-model-check-up) (Journeyman): Give Pine Ridge Delivery's year-old model its check-up in Python, saving the whole pipeline with joblib and loading it back only when the scikit-learn version matches, reporting each column's share of new orders outside the training range and its change in mean, and building a model card that refuses an empty section, with pytest checking each step.
- [Exercise: Model the Bike Shop's Orders](https://www.ask-codey.com/lessons/exercise-mongodb-model-the-bike-shops-orders) (Journeyman): Add a customer, a product and an order to Riverbend Bike Shop's store in the right shape, embedding and referencing where each belongs, then answer three of the app's questions and explain each choice in a sentence.
- [Exercise: Modifying Data](https://www.ask-codey.com/lessons/exercise-modifying-data) (Apprentice): Add a category, products, yourself and a customer's order to Northwind, then update and delete them, with scripts that use variables and transactions.
- [Exercise: Movie Night Picker](https://www.ask-codey.com/lessons/exercise-fastapi-movie-night-picker) (Freelancer): Finish Movie Night Picker, an API that asks a showtimes service and a reviews service at the same time with httpx and asyncio.gather, answers 503 when either is slow or down, and saves the group's pick with a 201 before posting it to the group chat in a background task, checked by tests that never touch the network.
- [Exercise: MVC with Dapper](https://www.ask-codey.com/lessons/exercise-mvc-with-dapper) (Journeyman): Grow the BooksPlus website - Dapper and dependency injection, attribute routes, a paged grid of partial-view cards, a validated Add a Book form for administrators only, and recently viewed books in the session.
- [Exercise: Name Your Own Pattern](https://www.ask-codey.com/lessons/exercise-dp-name-your-own-pattern) (Freelancer): Take a ticket from Summit Gym's front-desk team: three spreadsheet importers are near-copies, and a fourth team needs one too. Pull out their shared shape so the new importer is a few lines, keep all three importers' tests green, and write the pattern's card in the README.
- [Exercise: Northwind Web API](https://www.ask-codey.com/lessons/exercise-northwind-web-api) (Journeyman): Build Northwind's products API. Write an async controller with GET (all, by category, by id), POST, PUT and DELETE, each answering the right status code, and set up Program.cs to register the DAO and handle errors in one place.
- [Exercise: Orchard Harvest Models](https://www.ask-codey.com/lessons/exercise-ml-orchard-harvest-models) (Journeyman): Write three functions that make curve features with PolynomialFeatures, build a regression tree with a depth limit and a seed, and compare models fairly on Hilltop Orchard's 200 harvests, each fit on the same training trees with its training and test errors side by side, and let pytest check them.
- [Exercise: Organize the Board Game Café's Styles](https://www.ask-codey.com/lessons/exercise-css-board-game-cafe-layers) (Journeyman): Sort Meeple's 260-line stylesheet into four cascade layers, nest the rules that belong together and remove every !important, while a check compares every style on the page with the original to prove nothing changed.
- [Exercise: Outdoor Gear Finder](https://www.ask-codey.com/lessons/exercise-data-gear-finder) (Apprentice): Write five functions for an outdoor gear store's online gear finder, filtering its catalog by budget and by stock, listing the best-rated products fairly, adding price bands with pd.cut and sale prices with np.where, and let pytest check the table each one returns.
- [Exercise: Pack for the Trip](https://www.ask-codey.com/lessons/exercise-powershell-pack-for-the-trip) (Apprentice): Get a lake trip ready with PowerShell, unpacking a friend's zip, packing the trip's photos into one, checking three things with Test-Path and making a junction, and let a Pester check tell you what's done.
- [Exercise: Pack for the Trip](https://www.ask-codey.com/lessons/exercise-bash-pack-for-the-trip) (Apprentice): Get a trip folder ready to go by finding what takes the space with du and df, giving a deep folder a short name with ln -s, packing archives with tar and zip, and opening one a friend sent, while a check script tells you which parts are done.
- [Exercise: Pantry and Shopping List](https://www.ask-codey.com/lessons/exercise-python-pantry-shopping-list) (Apprentice): Write the five functions behind a recipe app's pantry, with a dictionary of amounts, sets of ingredients, a set difference, comprehensions and sorting with a key, and let pytest's tests check each one.
- [Exercise: Parking Kiosk](https://www.ask-codey.com/lessons/exercise-python-parking-kiosk) (Journeyman): Write the three functions behind a parking garage's pay kiosk, which turn what drivers type into hours or refuse it with a clear ValueError, price the stay or refuse impossible hours with a KioskError, and keep asking until an answer can be priced, and let pytest check what each one returns, raises and prints.
- [Exercise: Pet Adoption Applications](https://www.ask-codey.com/lessons/exercise-fastapi-pet-adoption-applications) (Journeyman): Finish an adoption center's FastAPI applications router with a request model whose field rules refuse bad applications with a 422 and a response model that keeps the staff's private notes out of every answer, and let TestClient's tests check each one.
- [Exercise: Pet Adoption Profiles](https://www.ask-codey.com/lessons/exercise-javascript-pet-adoption-profiles) (Apprentice): Finish five functions for a pet adoption site, building profile lines with destructuring and safe copies with spread, and let the tests check each one.
- [Exercise: Pet API Warm-Up](https://www.ask-codey.com/lessons/exercise-mongodb-pet-api-warm-up) (Apprentice): Finish the three async functions in the pet adoption API's data file, listing pets by species, finding one pet by its id and adding a pet, so its routes work, and let the Supertest tests check every answer.
- [Exercise: Pet Listings Data Layer](https://www.ask-codey.com/lessons/exercise-mongodb-pet-listings-data-layer) (Journeyman): Move the Maple Street Pet Adoption Center's API from an array to MongoDB by finishing its data layer with the official driver, from the paged and filtered list to the right status for a bad id and a missing pet and the indexes the list needs, and let the tests check every request on a throwaway MongoDB.
- [Exercise: Photo Contest Uploads](https://www.ask-codey.com/lessons/exercise-node-photo-contest-uploads) (Freelancer): Finish Snapshot Saturday's API, accepting one photo per entry with multer's size and type limits, answering 202 while a small job queue makes each thumbnail after the response, and streaming every entry as a CSV download with pipeline, with Supertest and node --test checking each part.
- [Exercise: Pick the Structure](https://www.ask-codey.com/lessons/exercise-ds-pick-the-structure) (Journeyman): Five tickets from apps you use, each easy to get right on a small input and only fast on a big one with the right choice, one of them a problem the course hasn't shown: choose the structure, write it, name its Big-O, and let the tests time it.
- [Exercise: Pizza Delivery Report](https://www.ask-codey.com/lessons/exercise-data-pizza-delivery-report) (Journeyman): Write five summary functions for a pizza shop's summer of delivery orders, sales by neighborhood, a summary of each size by named aggregation, each neighborhood's share of the orders, a weekday-by-size pivot table with totals and the sales week by week, and let pytest check the table each one returns.
- [Exercise: Pizza Order Tracker](https://www.ask-codey.com/lessons/exercise-javascript-pizza-order-tracker) (Journeyman): Write the order tracker for a busy pizza shop with async and await, Promise.all and Promise.any, from one order through the oven to the fastest free driver, and let the tests check each piece.
- [Exercise: Plan Your Class Schedule](https://www.ask-codey.com/lessons/exercise-ds-class-schedule) (Freelancer): A college planning app must tell students what they can take now, an order for every course that keeps each prerequisite first, and how many semesters the degree takes, and spot a catalog mistake that makes any order impossible, fast enough for a catalog of 50,000 courses.
- [Exercise: Plant Shop Catalog](https://www.ask-codey.com/lessons/exercise-node-plant-shop-catalog) (Apprentice): Move a plant shop's catalog into MongoDB with the official driver, connecting, saving 12 plants with insertMany, reading them back, finding the pet-safe ones and adding a new plant, and let tests on a throwaway MongoDB check every function.
- [Exercise: Plant Shop Catalog](https://www.ask-codey.com/lessons/exercise-fastapi-plant-shop-catalog) (Apprentice): Move Fern & Fig Plant Shop's catalog into SQLite by writing six functions with hand-written SQL, to make the table with its rules, add a plant, list the pet-safe plants cheapest first, search by part of a name, change a price and remove a plant, every value passed with a placeholder, and let pytest check each one on a fresh database in memory.
- [Exercise: Plug the Leak](https://www.ask-codey.com/lessons/exercise-ml-plug-the-leak) (Freelancer): Write three functions that close the leaks in StreamBox's 2,000 subscriber rows, dropping the column known only after a cancellation, splitting so no subscriber is on both sides, and cross-validating a scaled model with the scaler inside a pipeline, and let pytest check that nothing leaks.
- [Exercise: Polymorphism](https://www.ask-codey.com/lessons/exercise-polymorphism) (Journeyman): Write a café Order that holds any mix of menu items in one List&lt;MenuItem>, and works out the total, a meal-deal discount and the receipt, letting each item price itself.
- [Exercise: Product Catalog Rules](https://www.ask-codey.com/lessons/exercise-mongodb-product-catalog-rules) (Journeyman): Write five mongosh statements for Riverbend Bike Shop's catalog, an order with copied names and prices, a review that keeps the five newest and the numbers behind the average, two searches across bikes, helmets and lights, and the rules that keep bad products out, and let the tests check each one.
- [Exercise: Product Reviews](https://www.ask-codey.com/lessons/exercise-product-reviews) (Journeyman): Build a product's reviews page from four components that talk through inputs and outputs. A star rating that shows or chooses a rating, a list of reviews, a form that sends a new review up, and the page that holds the data and puts them together.
- [Exercise: Race Two Solutions](https://www.ask-codey.com/lessons/exercise-big-o-race-two-solutions) (Apprentice): Product needs to know, with numbers, how the repeats report grows and how long it will take for 64,000 songs: build a stopwatch in your language, race two finished solutions at four sizes, keep the fastest of five runs, name each growth rate from your measurements, and predict a time you haven't measured.
- [Exercise: Ratings and Favorites](https://www.ask-codey.com/lessons/exercise-mongodb-ratings-and-favorites) (Apprentice): Write seven mongosh changes behind Sunday Kitchen's buttons, from rating a recipe and counting its saves to saving a meal plan with an upsert and deleting old plans, and let the tests check every document afterward.
- [Exercise: Read the Logbook](https://www.ask-codey.com/lessons/exercise-bash-read-the-logbook) (Apprentice): Take over a lighthouse station by reading its notice, its long logbook and its supplies with cat, less and file, look up a new command in its manual page, and let a check script tell you which answers are right.
- [Exercise: Reading List](https://www.ask-codey.com/lessons/exercise-javascript-reading-list) (Journeyman): Make a reading-list page work, reading its add-book form, refusing a book with no title or 0 pages with a message next to the field, and saving the list in localStorage so it's still there tomorrow, with tests for the rules and a checklist for the page.
- [Exercise: Recipe Cards as Documents](https://www.ask-codey.com/lessons/exercise-mongodb-recipe-cards-as-documents) (Apprentice): Turn three of Sunday Kitchen's handwritten recipe cards into documents with the right types, arrays and nested documents, insert each with insertOne, and let the tests read them back and check every field and its type.
- [Exercise: Recipe Filters](https://www.ask-codey.com/lessons/exercise-javascript-recipe-filters) (Journeyman): Bring the Weeknight Recipes page to life, drawing its cards from data, filtering them with buttons, opening each card's steps with one delegated listener and closing them with Escape, and let the tests and a checklist confirm it works.
- [Exercise: Recipe Finder](https://www.ask-codey.com/lessons/exercise-mongodb-recipe-finder) (Apprentice): Write six mongosh queries for Sunday Kitchen's recipe pages, from quick dinners to the recipes nobody has rated yet, and let the tests run each one on the 40 recipes and check what it finds.
- [Exercise: Recipe Scaler](https://www.ask-codey.com/lessons/exercise-javascript-recipe-scaler) (Journeyman): Finish a recipe scaler split into modules, which converts cups to milliliters, scales a recipe from 4 servings to 10 and refuses bad servings with a ServingsError, and let the tests check each piece and each error.
- [Exercise: Redesign the Farmers Market Page](https://www.ask-codey.com/lessons/exercise-css-farmers-market-redesign) (Journeyman): Redesign the Saturday Farmers Market's cluttered event page with a type scale in rem, readable line lengths and line heights, a palette that passes 4.5 to 1 contrast, rem spacing and soft vendor cards, and let ten checks measure each part.
- [Exercise: Refactor the Library's Events Page](https://www.ask-codey.com/lessons/exercise-css-library-refactor-bem) (Freelancer): Rename a library events page's id selectors and long chains to flat BEM classes, move its helpers into a utilities layer, and keep the page looking exactly the same while six checks confirm it.
- [Exercise: Rename the Telemetry](https://www.ask-codey.com/lessons/exercise-powershell-rename-the-telemetry) (Apprentice): Write three small tools for Mission Control, a script that renames every .tmp file in a folder, one that pulls the warnings out of a flight log and a launch countdown, then run them on the real files while a Pester check tells you what's done.
- [Exercise: Rename the Telemetry](https://www.ask-codey.com/lessons/exercise-bash-rename-the-telemetry) (Apprentice): Write two small tools for Mission Control, a script that renames every .tmp file in a folder and one that pulls the warnings out of a flight log, then run them on the real files and let a check script tell you what's done.
- [Exercise: Report Card Merge](https://www.ask-codey.com/lessons/exercise-data-report-card-merge) (Journeyman): Write six functions that put a middle school's records together, stacking two terms of quiz scores, melting them long, joining the student list with a validated left join, averaging each homeroom, finding the students in no club, and pivoting the scores back to a table people can read, and let pytest check the table each one returns.
- [Exercise: Rewrite a DAO with Dapper](https://www.ask-codey.com/lessons/exercise-rewrite-a-dao-with-dapper) (Journeyman): Use Dapper to rewrite the BooksPlus DAOs from the Connecting an App exercise, add a rename and a lookup by a list of ids, and pass the same tests with a fraction of the code.
- [Exercise: Road Trip Planner](https://www.ask-codey.com/lessons/exercise-python-road-trip-planner) (Apprentice): Write the five functions behind a road trip planner, with lists, slices, tuples, unpacking and enumerate(), and let pytest's tests call each one to check what it returns.
- [Exercise: Road-Trip Playlist](https://www.ask-codey.com/lessons/exercise-javascript-road-trip-playlist) (Apprentice): Finish five functions that keep a road-trip playlist up to date, adding and removing songs, totaling the play time and checking for a song, and let the tests check each one.
- [Exercise: Running Club Log](https://www.ask-codey.com/lessons/exercise-python-running-club-log) (Journeyman): Write the five functions behind a running club's weekly log, reading its runs from a CSV file, totaling each runner's miles, writing a summary CSV and saving and loading goals as JSON, and let pytest's tests check each one in folders of their own.
- [Exercise: Sales by Category](https://www.ask-codey.com/lessons/exercise-mongodb-sales-by-category) (Journeyman): Write five aggregation pipelines for Riverbend Bike Shop's sales dashboard, from the revenue of each category to the three biggest orders, and let the tests run each one on a year of orders and check its rows.
- [Exercise: Secure the App](https://www.ask-codey.com/lessons/exercise-secure-the-app) (Journeyman): Give the products app users, both halves of it. The API registers and signs users in with JSON Web Tokens, and protects adding, changing and deleting; the Angular client signs in, sends the token, guards the add page and shows each user only what they may do. Twelve API tests and ten client tests check it.
- [Exercise: Share Your Module](https://www.ask-codey.com/lessons/exercise-powershell-share-your-module) (Journeyman): Get the RecipeBox module ready to share with a new version number, a README and the MIT License, publish it to a practice repository with Publish-PSResource, and a Pester check opens the package the way a friend would and makes sure it works.
- [Exercise: Shipping Cost Tests](https://www.ask-codey.com/lessons/exercise-python-shipping-cost-tests) (Journeyman): Write the pytest tests for Crafty Corner's working shipping rules, from its prices by weight and zone to free shipping, rush orders, errors and shipping labels, and prove they're good by catching three bugs the check plants in copies of the code.
- [Exercise: Shopping List and Calculator](https://www.ask-codey.com/lessons/exercise-shopping-list-and-calculator) (Apprentice): Bring a web page to life with JavaScript. Add items to a shopping list, cross them off and remove them, keep a live count, and build a calculator that shows its result or an error, all with event handlers and DOM changes, and no page reloads.
- [Exercise: Shopping List in Angular](https://www.ask-codey.com/lessons/exercise-shopping-list-in-angular) (Apprentice): Build the shopping list again, in Angular. Hold the items in a signal, work out the count with computed, bind the box with ngModel, draw the list with @for and @if, and let ten tests check it the way a person would use it.
- [Exercise: Shuttle Schedule API](https://www.ask-codey.com/lessons/exercise-fastapi-shuttle-schedule-api) (Journeyman): Get a campus shuttle's FastAPI app ready for real riders, with pydantic-settings that stop it at startup naming every missing setting, a request line for every request, a logging filter that hides passwords and tokens, a lifespan that runs the migrations, and a /health route that answers 200 or 503.
- [Exercise: Shuttle Schedule API](https://www.ask-codey.com/lessons/exercise-node-shuttle-schedule-api) (Journeyman): Get the campus shuttle's API ready for real riders, with settings checked by Zod at startup, a pino-http log line for every request with tokens and the database address redacted, a /health route that answers 200 or 503, and a graceful shutdown, and let the tests check each one.
- [Exercise: Snack Bar Receipt](https://www.ask-codey.com/lessons/exercise-python-snack-bar-receipt) (Novice): Finish a script that asks a cinema snack bar's customer for their order and prints the receipt, turning typed answers into numbers and showing the subtotal, the 7% tax and the total to the cent, while pytest types the answers in and checks every line.
- [Exercise: SnackShack](https://www.ask-codey.com/lessons/exercise-snackshack) (Journeyman): Answer a snack bar owner's questions with LINQ. What's cheap, what's in each category, what sells best, what never sells, how much came in each day, and one page of the menu at a time, each in one chain of methods.
- [Exercise: Sort the Downloads Folder](https://www.ask-codey.com/lessons/exercise-powershell-sort-the-downloads-folder) (Apprentice): Sort a messy downloads folder of eighteen made-up files into photos, receipts, school, documents and a backup with New-Item, Copy-Item, Move-Item, Rename-Item and wildcards, and let a Pester check tell you which tasks are done.
- [Exercise: Sort the Downloads Folder](https://www.ask-codey.com/lessons/exercise-bash-sort-the-downloads-folder) (Apprentice): Sort a messy Downloads folder of photos, songs, a lease, a resume and a year of receipts into folders with mkdir, mv and cp, wildcards and braces, without replacing a thing, and let a check script tell you what's done.
- [Exercise: Sort the Leaderboard](https://www.ask-codey.com/lessons/exercise-ds-sort-leaderboard) (Apprentice): A racing game's board of 10,000 players falls behind when every late score sorts it all again: slide each late score into place instead, write both of the chapter's sorts for a race's results, and let the tests check them, ties and a busy evening included.
- [Exercise: Sort the Music Library](https://www.ask-codey.com/lessons/exercise-ds-sort-music-library) (Journeyman): A music app's library view takes a minute to sort 50,000 imported songs, and tied songs swap places between refreshes: write the comparison, a hand-written sort that's fast and keeps ties in order, and the built-in sort to check it against, and let the tests check them, ties and the 50,000 songs included.
- [Exercise: Space Fleet](https://www.ask-codey.com/lessons/exercise-javascript-space-fleet) (Journeyman): Finish the classes behind a space shooter's fleet, a Ship with private shields, a Fighter that extends it and a Fleet that reports who can fly, and let the tests check each one.
- [Exercise: Spam or Not](https://www.ask-codey.com/lessons/exercise-ml-spam-or-not) (Journeyman): Write three functions that split Inbox Guard's 1,000 emails into training and test emails with the same share of spam in both, train a LogisticRegression on the training emails, and turn its chances of spam into labels at a threshold, and let pytest check the split, the model and the labels.
- [Exercise: Speed Up the Travel Blog](https://www.ask-codey.com/lessons/exercise-html-speed-up-the-travel-blog) (Journeyman): Make a slow travel blog fast and friendly to screen readers, with alt text by purpose, width and height, lazy loading, srcset, a picture element and a clickable trip map, and measure the difference.
- [Exercise: Step Counter Functions](https://www.ask-codey.com/lessons/exercise-python-step-counter) (Apprentice): Write the four functions behind a step-counter app's reports, with parameters, return values, a default and a keyword argument, and let pytest's tests call each one to check what it returns.
- [Exercise: Stop the Runaway](https://www.ask-codey.com/lessons/exercise-powershell-stop-the-runaway) (Journeyman): Find three practice programs left running with no window, stop the runaway by its Id after a -WhatIf rehearsal, then write two tools, stop-runaway.ps1, which stops processes by a word in their command line and supports -WhatIf, and start-export.ps1, which starts a long export with no window and saves its Id, and let a Pester check tell you what's done.
- [Exercise: Stop the Runaway](https://www.ask-codey.com/lessons/exercise-bash-stop-the-runaway) (Journeyman): Find and stop three misbehaving programs with ps, pgrep, kill and pkill, then write two small tools, one that stops any process the polite way before it uses force and one that starts a long export so it survives the terminal closing, and let a check script tell you what's done.
- [Exercise: Strings](https://www.ask-codey.com/lessons/exercise-strings) (Apprentice): Build HTML and XML from strings, format and rearrange people's names, and try seven bonus word problems, with tests that check each method.
- [Exercise: Study Group Sign-In](https://www.ask-codey.com/lessons/exercise-node-study-group-sign-in) (Journeyman): Finish the study group's sign-up, sign-in and /me routes, saving only bcrypt hashes, refusing an email that's taken with 409, answering every sign-in mistake with one 401 and handing back a JWT that lasts an hour, and let Supertest's tests check every answer against a throwaway MongoDB.
- [Exercise: Study Group Sign-In](https://www.ask-codey.com/lessons/exercise-fastapi-study-group-sign-in) (Journeyman): Give a study group's FastAPI app accounts it can trust, with passwords saved only as Argon2 hashes from pwdlib, a sign-up that answers 201 or 409 for a used email, a sign-in at POST /auth/token that hands out a PyJWT token good for an hour or one vague 401, and a /me route that reads the token, all tested on a throwaway SQLite database.
- [Exercise: Style a Playlist Without Adding Classes](https://www.ask-codey.com/lessons/exercise-css-playlist-without-classes) (Apprentice): Style the Road Trip Mix playlist with eight rules that reach every part through combinators, attribute selectors, pseudo-classes, pseudo-elements and :has(), without adding a single class, and let the checks confirm each one.
- [Exercise: Team Task Board](https://www.ask-codey.com/lessons/exercise-fastapi-team-task-board) (Journeyman): Finish Crew Board's FastAPI task board with a get_current_user dependency, a require_role dependency and an ownership check, so anyone signed in reads the board and adds tasks, members change only their own tasks and only an admin deletes, and let the tests check every rule as each kind of user.
- [Exercise: Team Task Board](https://www.ask-codey.com/lessons/exercise-node-team-task-board) (Journeyman): Finish Crew Board's task API with a requireUser and a requireRole middleware and an ownership check, so anyone signed in reads the board, members change only their own tasks and only an admin deletes, and let Supertest's tests check every rule as each kind of user.
- [Exercise: Test the Food Truck Report](https://www.ask-codey.com/lessons/exercise-data-test-food-truck-report) (Journeyman): Write the pytest tests for the Greenway Food Truck's working report functions, from the total of each sale and the week's numbers to the location table, the saved file and the chart, and prove they're good by catching four bugs the check plants in copies of the code.
- [Exercise: Test Your Tool](https://www.ask-codey.com/lessons/exercise-powershell-test-your-tool) (Freelancer): Give the RecipeBox module a manifest with New-ModuleManifest, then write five Pester tests that work on a copy of the recipes in TestDrive:, and a check proves they're good enough by breaking RecipeBox five ways and expecting a test to fail each time.
- [Exercise: The Adoption List, Restyled](https://www.ask-codey.com/lessons/exercise-css-adoption-list-restyled) (Apprentice): Turn every list on Paws & Whiskers' Meet the pets page into what it should look like, a menu of buttons in a row, the pets as cards, their tags as pills and the adoption steps as big red numbers, and wrap the introduction around a photo, while the tests check each list stays a list.
- [Exercise: The Archive Detective](https://www.ask-codey.com/lessons/exercise-powershell-the-archive-detective) (Apprentice): Solve the case of the archive's missing telescope with PowerShell's searches, a pattern through two weeks of door logs, the staff list, the lockers and the storage room, and let a Pester check tell you which answers are right.
- [Exercise: The Archive Detective](https://www.ask-codey.com/lessons/exercise-bash-the-archive-detective) (Apprentice): Solve a small mystery in the town archive by searching two weeks of door logs with grep and a regular expression, tracking down a locker, a hidden file and a big scan with find, and clearing out leftover files with find -exec, while a check script tells you which answers are right.
- [Exercise: The Bakery Menu Board](https://www.ask-codey.com/lessons/exercise-python-bakery-menu-board) (Novice): Finish Maple Street Bakery's menu board, a Python program that prints each item with print(), fixing a line with a missing quote, switching a sold-out item off with a comment and giving print() a number, then let pytest check every line and hand it in with Git.
- [Exercise: The Bakery Order Counter](https://www.ask-codey.com/lessons/exercise-dp-bakery-orders) (Journeyman): Take a ticket from Sunrise Bakery's owner: pies launch Monday and a second shop opens with its own tax rate. Change the working order code so new products are added from outside and each shop charges its own tax, with the tests green throughout.
- [Exercise: The Bakery's Orders](https://www.ask-codey.com/lessons/exercise-bash-the-bakerys-orders) (Apprentice): Answer a bakery owner's questions about a year of orders with pipelines, then rank the cities with tee, build a lowercase mailing list, keep separate logs of results and errors, and delete only the canceled receipts with xargs, while a check script tells you what's done.
- [Exercise: The Bakery's Wish List](https://www.ask-codey.com/lessons/exercise-dp-bakery-wish-list) (Journeyman): Take the owner's next ticket: the marketing team writes its own weekly deals and a delivery app wants to hear about every order. Change the working checkout and order desk so both plug in from outside, with the tests green throughout.
- [Exercise: The Bike Rental Desk](https://www.ask-codey.com/lessons/exercise-dp-bike-rental) (Apprentice): Take a ticket from Pedal & Go's manager: scooters this week, a partner shop's kayaks next month, and weekend discounts that marketing keeps changing. Change the working rental desk so new kinds of rental and new deals arrive from outside, with the tests green throughout.
- [Exercise: The Bike Shop's Monthly Report](https://www.ask-codey.com/lessons/exercise-powershell-the-bike-shops-monthly-report) (Journeyman): Turn Maple Street Bikes' messy October exports into the owner's monthly report, cleaning the sales and rentals CSV files, adding them up per product and per store, changing one setting in a JSON file and making a web page of the totals, while a Pester check tells you which steps are right.
- [Exercise: The Coffee Shop Order Line](https://www.ask-codey.com/lessons/exercise-ds-order-line) (Apprentice): The coffee shop's order screen freezes at rush hour: make its line of orders fast without changing what it does, build the pile of clean mugs behind the counter, and serve a 400,000-order rush in under 2 seconds, each order in the mug on top.
- [Exercise: The Company Org Chart](https://www.ask-codey.com/lessons/exercise-ds-org-chart) (Journeyman): The staff app's org chart page needs a head count for any manager, the people at the bottom of the chart, and the whole chart printed with each team indented, each from one visit per person: build all three, and the tests check them.
- [Exercise: The Contact List Tree](https://www.ask-codey.com/lessons/exercise-ds-contact-tree) (Journeyman): The sales team's 100,000 contacts need a find on every keystroke, adds all day, A to Z on demand, and removals: build the contact list, name each operation's growth rate, and pass a busy-day test that only a fast choice can.
- [Exercise: The Coupon Rules](https://www.ask-codey.com/lessons/exercise-dp-coupon-rules) (Freelancer): Take a ticket from Trailhead Outfitters' marketing team: they want to build their own coupon rules on an admin screen and read each rule in words. Change the working coupon code so any rule built from the screen's pieces can be checked and described, with the tests green throughout.
- [Exercise: The Daily Specials](https://www.ask-codey.com/lessons/exercise-javascript-daily-specials) (Novice): Print The Daily Grind's chalkboard of daily specials with console.log, fix a line with a mistake in it and switch a sold-out item off with a comment, and let the tests check every line.
- [Exercise: The Dispatch Board](https://www.ask-codey.com/lessons/exercise-dp-dispatch-board) (Journeyman): Take the dispatch desk's ticket: Undo and Redo buttons, and actions the planning team writes on its own. Change the working dispatch board so every action can be logged, undone and redone, with the tests green throughout.
- [Exercise: The Festival Lineup](https://www.ask-codey.com/lessons/exercise-css-festival-lineup) (Journeyman): Lay out the Summer Sound festival's home page with flexbox, a nav bar with the logo left and the links right, a welcome message centered both ways and a row of headliner cards that wraps to fit any screen, and let the tests check every part.
- [Exercise: The Food Truck Menu](https://www.ask-codey.com/lessons/exercise-dp-food-truck-menu) (Apprentice): Take Rosa's ticket: she wants to set the food truck's specials herself from the tablet, starting with taco Tuesday. Change the working menu code so a new special is a new piece of data, not an edit to the price code, with the tests green throughout.
- [Exercise: The Good-Morning Routine](https://www.ask-codey.com/lessons/exercise-dp-morning-routine) (Journeyman): Take the next ticket for the hub: new porch blinds must react whenever the front door locks or unlocks, and a vacation mode must add a check to every voice command. Change the working hub so both plug in from outside, without editing the front door for each new device or the voice handler for each new check, with the tests green throughout.
- [Exercise: The Greeting Card Maker](https://www.ask-codey.com/lessons/exercise-bash-the-greeting-card-maker) (Apprentice): Finish card.sh, a small application that takes a name as its argument, asks for a greeting and a signature, and saves a dated, numbered card, then fix its quoting bug and let a check script run it for real.
- [Exercise: The Health Check](https://www.ask-codey.com/lessons/exercise-bash-the-health-check) (Journeyman): Finish a health check script for a book club's home server: read the disk, memory, load and failed services, warn about each problem, and exit with a code that says whether all is well, while a check script runs it on a pretend computer, job by job.
- [Exercise: The Library Checkout](https://www.ask-codey.com/lessons/exercise-dp-library-checkout) (Journeyman): Take a ticket from Riverside Community Library: the board wants every late-fee rule tested, and the test team's tests hand the checkout service a clock they can set and loans kept in memory. Change the working service so it uses what it's handed, opens no database in tests, and still runs the real library, with the tests green throughout.
- [Exercise: The Lost and Found](https://www.ask-codey.com/lessons/exercise-ds-lost-and-found) (Novice): The lunch line at a school's lost-and-found doesn't move: change the desk so every request for one of 800 items is answered in 120 looks or fewer, and every tag number in one step. The tests check it with a full lunch line.
- [Exercise: The Moving-Day List](https://www.ask-codey.com/lessons/exercise-powershell-the-moving-day-list) (Apprentice): Clear the hallway of a new apartment with Remove-Item and -WhatIf, write and add to its lists with Set-Content, Add-Content, > and >>, fix a settings file with edit, and read the ends of two long files, while a Pester check tells you which jobs are done.
- [Exercise: The Moving-Day List](https://www.ask-codey.com/lessons/exercise-bash-the-moving-day-list) (Apprentice): Finish a new apartment's moving-day jobs in the terminal, deleting the trash safely, removing an empty box, writing a door sign and a to-do list, fixing a setting in nano and reading the ends of long files, then let a check script tell you what's done.
- [Exercise: The Nesting Dolls](https://www.ask-codey.com/lessons/exercise-ds-nesting-dolls) (Apprentice): A toy shop's product page needs three numbers from each set of nesting dolls: how many dolls, the color of the smallest, and how much shelf they take side by side. Work each one out without a loop, name where each one stops, and let the tests check your answers.
- [Exercise: The Package Tracker](https://www.ask-codey.com/lessons/exercise-dp-package-tracker) (Journeyman): Take the depot's ticket: packages that need a signature are now held at the depot, and released again. Add the new status to a working package whose every method checks its status, without re-checking the statuses that already work, with every arrow of the state diagram tested throughout.
- [Exercise: The PC Health Report](https://www.ask-codey.com/lessons/exercise-powershell-the-pc-health-report) (Journeyman): Finish a module that makes a one-page health report for a Windows PC, with its disks in gigabytes, its restarts in plain words and everything on one web page, gathered with Get-CimInstance and Get-WinEvent -FilterHashtable, while a Pester check tries it with stand-in objects instead of your real PC.
- [Exercise: The Playlist Shuffler](https://www.ask-codey.com/lessons/exercise-bash-the-playlist-shuffler) (Journeyman): Finish the Playlist Shuffler, an application in two files: write the functions in its library that load the playlist into arrays, count it, add it up, answer whether a mood is there, pick a song at random and total each mood's minutes, then let a check script run it for real.
- [Exercise: The Playlist Tools](https://www.ask-codey.com/lessons/exercise-powershell-the-playlist-tools) (Journeyman): Turn four rough functions for a homework playlist into tools that behave like PowerShell's own commands, with verb-noun names, objects for output, checked input, pipeline input, -WhatIf and help, while a Pester check tries each one on its own copy of the playlist.
- [Exercise: The Report Card Printer](https://www.ask-codey.com/lessons/exercise-dp-report-card) (Apprentice): Take the front office's ticket: some families want report cards by text message, the tests must stop going through the real email server, and one class is doing three people's jobs. Change the working report-card code so any sender can be handed in, with the tests green throughout.
- [Exercise: The Request Pipeline](https://www.ask-codey.com/lessons/exercise-dp-request-pipeline) (Journeyman): Take a ticket from Riverside Community Library's platform team: every request's checks are written out in one function, and two other teams need them as separate pieces. Build a tiny request pipeline with no framework, turn logging, the sign-in check and timing into middleware, and let the security team add their own check in the middle, with the tests green throughout.
- [Exercise: The Shipment Builder](https://www.ask-codey.com/lessons/exercise-dp-shipment-builder) (Journeyman): Take the operations desk's next ticket: a new checkout screen makes shipments one step at a time, and pallets are now stacked three deep. Change the working shipment and weight code so both work, with the tests green throughout.
- [Exercise: The Shipping Rate Calculator](https://www.ask-codey.com/lessons/exercise-dp-shipping-rates) (Journeyman): Take the operations manager's ticket: a fourth carrier, NightOwl, has written its own rules against the tracker's carrier promise. Change a working rate desk, whose carriers are tangled into one switch, so any carrier it's handed can be quoted, with the tests green throughout.
- [Exercise: The Smart Backup](https://www.ask-codey.com/lessons/exercise-bash-the-smart-backup) (Apprentice): Finish a backup script that copies a file only when it's needed, with a usage line, --help, --list and a --pick menu, checks for missing, empty and folder names, and a clear message when a copy fails, while a check script runs it job by job.
- [Exercise: The Smart Backup](https://www.ask-codey.com/lessons/exercise-powershell-the-smart-backup) (Apprentice): Finish a backup script that copies a file only when it's needed, with parameters, a usage line, -List and a -Menu, checks for missing, folder and empty names, and a switch that says what kind of file it copied, while a Pester check runs it job by job.
- [Exercise: The Smell Clinic](https://www.ask-codey.com/lessons/exercise-dp-smell-clinic) (Journeyman): Diagnose Summit Gym's booking code like a doctor: five smells, one from each family, each written up as symptom, cause and cure. Then cure the three that today's changes are waiting on, with the tests green throughout.
- [Exercise: The Snack Inventory](https://www.ask-codey.com/lessons/exercise-ds-snack-inventory) (Apprentice): Finish a snack stand's inventory code in your language: a Snack class's value method, then find a snack by name, add up the stock's value, and list what's running low, using loops, lists, classes and references.
- [Exercise: The Stadium Seat Map](https://www.ask-codey.com/lessons/exercise-dp-seat-map) (Freelancer): Take a ticket from Harbor Stadium's kiosk team: the festival's 200,000-place seat map has to fit in 10 MB on the gate tablets. Change the working seat map so seats of the same kind share their details, with the tests green throughout.
- [Exercise: The Taco Truck Menu](https://www.ask-codey.com/lessons/exercise-css-taco-truck-menu) (Novice): Give Sol Taco Truck's ready-made menu page its look (a color palette, a web font for the headings, readable body text, prices and labels that stand out, and a chalkboard behind the truck's name), and let the tests check each step.
- [Exercise: The Ten Biggest Files](https://www.ask-codey.com/lessons/exercise-powershell-the-ten-biggest-files) (Apprentice): Find out what's filling a full laptop's 24 made-up files with the pipeline (a count, the ten biggest, the big videos, the files of each type and a table of sizes in KB, each saved as a report) and rename its screenshots with ForEach-Object, while a Pester check tells you which answers are right.
- [Exercise: The Weather Station](https://www.ask-codey.com/lessons/exercise-dp-weather-station) (Journeyman): Take Maya's next ticket: SkyCast now bills every call, so the hub must ask it once and share the answer, and guests must stop changing the thermostat. Add both without touching SkyCast's client or the thermostats, with the tests green throughout.
- [Exercise: The Website Log Report](https://www.ask-codey.com/lessons/exercise-bash-the-website-log-report) (Journeyman): Change the bakery's phone number on every web page with sed, keeping a backup of each, save the five most visited pages with a pipeline, and answer five questions about a week of the website's log and orders with awk, then let a check script tell you what's done.
- [Exercise: The Word Counter](https://www.ask-codey.com/lessons/exercise-ds-word-counter) (Apprentice): A year of the gym's member comments, 300,000 words, and a report that has to finish in under 2 seconds: count every word, list the ten members use most, and find the words used only once. The tests check it on a short story and on a full year.
- [Exercise: The Workshop's Machines](https://www.ask-codey.com/lessons/exercise-powershell-the-workshops-machines) (Apprentice): Mind an inventor's workshop with variables, quotes, dates, arrays, hashtables and environment variables, from counting her machines to oiling the gears by name from your PATH, while a Pester check reads the eight results.
- [Exercise: The Workshop's Machines](https://www.ask-codey.com/lessons/exercise-bash-the-workshops-machines) (Apprentice): Get an inventor's machines running with ls -l and chmod, an environment variable and a folder added to PATH, keep the broken one switched off, answer seven questions about permissions, owners and commands, and let a check script tell you what's done.
- [Exercise: Themeable Buttons and Cards](https://www.ask-codey.com/lessons/exercise-css-themeable-components) (Journeyman): Rebuild The Daily Grind's buttons, menu card and sign-up field on design tokens defined on :root, then give them a dark theme that changes only the tokens, and let the tests check both themes.
- [Exercise: Three Brands, One Hub](https://www.ask-codey.com/lessons/exercise-dp-device-adapters) (Journeyman): Take the hub's next ticket: Maya's Bolt lock and Tuneo speaker must join the routines, a fourth brand's light must work without editing the hub, and the phone team's remote needs each brand's parts from one kit. Change the working hub and remote so all of it plugs in, with the tests green throughout.
- [Exercise: Three Things at Once](https://www.ask-codey.com/lessons/exercise-bash-three-things-at-once) (Freelancer): Write three tools for a day's work on Bluebird Bakery's website: three-panes.sh sets up the server, the tests rerunning in watch and a free terminal in one tmux session, wait-for-site.sh waits for the site and gives up at a time limit, and resize-all.sh resizes photos four at a time, while a check script tells you what's done.
- [Exercise: Ticket Booth Tests](https://www.ask-codey.com/lessons/exercise-javascript-ticket-booth-tests) (Freelancer): Write the Vitest tests for a movie theater's working ticket booth, from its prices and discounts to its page, and prove they're good by catching three bugs the check plants in the code.
- [Exercise: Tidy the Gym Memberships](https://www.ask-codey.com/lessons/exercise-python-tidy-gym-memberships) (Journeyman): Add type hints to a gym's working but messy membership code until mypy passes, fix the bug mypy finds for a plan that doesn't exist, and tidy the file until ruff check and ruff format have nothing left to change, while the tests prove every answer stays the same.
- [Exercise: Tidy the Shelter Intake Log](https://www.ask-codey.com/lessons/exercise-data-shelter-intake) (Apprentice): Write five cleaning functions for an animal shelter's messy intake log, reading hidden blanks as missing, turning weights and fees into numbers, filling missing ages honestly with a flag, and dropping double entries, and let pytest check the table each one returns.
- [Exercise: Today's Weather Report](https://www.ask-codey.com/lessons/exercise-powershell-todays-weather-report) (Journeyman): Answer a running club's three morning questions (will it rain, how warm will it be, when can we run dry) from saved copies of a real weather API's answers, with Invoke-RestMethod's objects, query parameters and the pipeline, saving each answer as a small report that a Pester check reads.
- [Exercise: Today's Weather Report](https://www.ask-codey.com/lessons/exercise-bash-todays-weather-report) (Journeyman): Write two small tools, a script that turns a saved weather forecast into a short daily report with jq and date, and one that downloads a fresh forecast with curl without ever losing the saved one, then let a check script tell you what's done.
- [Exercise: Trading Cards](https://www.ask-codey.com/lessons/exercise-css-trading-cards) (Apprentice): Turn three plain Forest Friends cards into real-looking trading cards with border-box, rem spacing, borders, rounded corners and auto margins, and let the tests check each part.
- [Exercise: Trail Conditions Online](https://www.ask-codey.com/lessons/exercise-fastapi-trail-conditions-online) (Journeyman): Get Willow Creek Parks' finished trails API ready for a host (a .python-version file, settings read from the environment, demo trails seeded at startup on an empty database, and a /health route), then put it online with Render's free web service and hand in a repository whose README links the live API.
- [Exercise: Trail Conditions Online](https://www.ask-codey.com/lessons/exercise-node-trail-conditions-online) (Journeyman): Get Willow Creek Parks' finished trails API ready for a host (settings read from the environment, a /health route, a start script with no .env file, and the secret kept out of Git), then put it online with a free Atlas cluster and Render, and hand in a repository whose README links the live API.
- [Exercise: Training Log](https://www.ask-codey.com/lessons/exercise-node-training-log) (Apprentice): Build the running club's training-log command, which reads a CSV file, prints one runner's week, saves it as JSON when asked, takes its data folder from an environment variable, and reports a missing file or an unknown runner with a clear message and exit code 1, while tests run it as its own program.
- [Exercise: Tribute Page and Flexbox](https://www.ask-codey.com/lessons/exercise-tribute-page-and-flexbox) (Apprentice): Build a three-page tribute website with semantic HTML and CSS, then practice layout in our games Flex Freight and Grid Town and use it on your site.
- [Exercise: Tune Up a Slow Page](https://www.ask-codey.com/lessons/exercise-html-tune-up-a-slow-page) (Journeyman): Fix the Movie Night Club page's HTML so it loads faster on a phone, and prove it with the Network panel, a Lighthouse report and the tests.
- [Exercise: Un-Pattern This](https://www.ask-codey.com/lessons/exercise-dp-un-pattern-this) (Journeyman): Take a corner of Summit Gym's code that a teammate made "flexible" for a future that never came, remove what doesn't earn its keep with every test green, and then add two features (a second gym and each instructor's own schedule) that are easy only once the code is simple.
- [Exercise: Variables and Data Types](https://www.ask-codey.com/lessons/exercise-variables-and-data-types) (Novice): Solve 28 small problems with variables, data types and expressions, and check every answer with tests.
- [Exercise: Views, Procedures and Functions](https://www.ask-codey.com/lessons/exercise-views-procedures-and-functions) (Journeyman): Ten problems that create views, stored procedures and functions in Northwind and then use them, each with the result to expect.
- [Exercise: Water Park Tickets](https://www.ask-codey.com/lessons/exercise-python-water-park-tickets) (Apprentice): Finish a water park's ticket script that checks the group's size with a while loop, prices each person's ticket by age and day with if, elif, else and and, and totals the group with a for loop over range, while pytest types the answers in and checks every line.
- [Exercise: Weather Station Cleanup](https://www.ask-codey.com/lessons/exercise-data-weather-station-cleanup) (Journeyman): Write a cleaning routine for a school weather station's messy year of readings, turning -999 into missing values, flagging and blanking readings that can't be true, checking the result with assert, cleaning in one function that leaves the raw table alone, and saving a clean file without touching the raw one, and let pytest check each step.
- [Exercise: What a File Knows](https://www.ask-codey.com/lessons/exercise-powershell-what-a-file-knows) (Apprentice): Answer a friend's questions about their trip photos by asking the objects themselves, with Get-Member, properties, methods and Select-Object, save a plain list and a table of sizes, and let a Pester check tell you what's done.
- [Exercise: When the Weather Service Is Down](https://www.ask-codey.com/lessons/exercise-dp-weather-outage) (Freelancer): Take Maya's ticket after a bad morning: the hub's briefing gives up on one missed call, keeps knocking on a weather service that's down for an hour, and crashes on a bedroom with no speaker. Make it try again politely, leave the service alone while it's down, and cope with the missing speaker, with the tests green throughout and a fake clock so no test ever waits.
- [Exercise: Why Won't It Change?](https://www.ask-codey.com/lessons/exercise-css-why-wont-it-change) (Apprentice): Find out why five of a bike shop's styles lose, fix each one without !important, and write one line saying why it lost, until every test passes.
- [Exercise: Workout Interval Timer](https://www.ask-codey.com/lessons/exercise-javascript-workout-interval-timer) (Journeyman): Build the engine of a workout interval timer, a plan of work and rest, a clock display and a countdown that runs on setInterval, and let tests with a pretend clock check it in a split second.
- [Exercise: Workout Log API](https://www.ask-codey.com/lessons/exercise-fastapi-workout-log-api) (Journeyman): Move a gym's in-memory FastAPI workouts API onto SQLite by writing its two migration scripts, a data module that holds every SQL statement, a get_db dependency that gives each request its own connection, and routes that call them, tested on a throwaway database through app.dependency_overrides.
- [Exercise: Workout Log API](https://www.ask-codey.com/lessons/exercise-node-workout-log-api) (Journeyman): Move Rep Counter's in-memory workouts API onto MongoDB by writing a repository module and wiring it into the routes with createApp(db), with 404s for bad and missing ids, and let Supertest tests on a throwaway MongoDB check every request.
- [Exercise: Writing Unit Tests](https://www.ask-codey.com/lessons/exercise-writing-unit-tests) (Apprentice): Three finished classes each hide one bug. Plan scenarios from their requirements, write MSTest tests that find the bugs, and fix the code.
- [Exercise: Your First Recipes](https://www.ask-codey.com/lessons/exercise-mongodb-your-first-recipes) (Novice): Add two of Sunday Kitchen's recipe cards with insertOne, find every recipe and one by its name with find, all as mongosh statements, then let the tests check each one and hand your work in with Git.
- [Exercise: Your First Web Page](https://www.ask-codey.com/lessons/exercise-html-your-first-web-page) (Novice): Make a web page announcing a neighborhood game night, watch it update in the browser as you save, and run the five checks that tell you it has everything a page needs.
- [Exercise: Your Practice Folder](https://www.ask-codey.com/lessons/exercise-bash-your-practice-folder) (Novice): Put this exercise in your practice folder, answer three questions about your own terminal, make a folder whose name has a space, and let bats check that your computer is ready for the course.
- [Exercise: Your Practice Folder](https://www.ask-codey.com/lessons/exercise-powershell-your-practice-folder) (Novice): Put your first exercise in your practice folder, ask PowerShell four questions about itself, write the answers in my-setup.txt, and install Pester to run your first check.
- [Exercise: Your Toolkit, Version 1](https://www.ask-codey.com/lessons/exercise-powershell-your-toolkit-v1) (Apprentice): Build the first version of your own PowerShell toolkit, a file with an alias, three small functions and a prompt in your colors, answer five questions about running scripts and installing tools, and let a Pester check try every shortcut for real.
- [Exercise: Your Toolkit, Version 1](https://www.ask-codey.com/lessons/exercise-bash-your-toolkit-v1) (Apprentice): Build the first version of your own toolkit, a file of aliases, two small functions and a prompt in your colors, answer four questions about startup files and installing tools, and let a check script try every shortcut for real.
- [Explaining a Result to Someone Who Isn't Technical](https://www.ask-codey.com/lessons/ml-explaining-to-a-person) (Journeyman): A plain-language explanation of a model's result says what it predicts, how far off it usually is in the reader's own units, the few things it leans on most, what it doesn't know and where it shouldn't be trusted, in words the reader uses, without the jargon of a too-technical draft, the emptiness of a too-vague one, or the false precision of a guess given to the cent.
- [Extract Transform Load](https://www.ask-codey.com/lessons/what-is-a-stream-extract-transform-load) (Apprentice): ETL (Extract, Transform, Load) takes data from a source, reshapes it in a series of small steps, and stores it at a destination.
- [Facade: One Button, Many Parts](https://www.ask-codey.com/lessons/dp-facade) (Apprentice): When every screen that takes an order has to run payment, stock, the receipt and the kitchen itself, in the right order, the steps get copied and one copy forgets a step; a facade puts one simple front on those parts, so every caller makes one call.
- [Factories the Modern Way: A Dictionary of Functions](https://www.ask-codey.com/lessons/dp-factories-modern) (Apprentice): A factory's if chain still grows by one line a month and gets edited by everyone; a dictionary from each product's name to a function that makes it lets a new product be added in one line, from anywhere, without touching the factory.
- [Factory Method](https://www.ask-codey.com/lessons/design-patterns-factory-method) (Journeyman): A factory method makes an object for you, so the code that uses it doesn't name the class it gets. A simple factory picks the class in one switch, instead of in every caller; the Gang of Four's Factory Method lets each subclass decide what to create. ASP.NET Core's registrations with a lambda are factories too.
- [Factory Method: Let Each Carrier Decide](https://www.ask-codey.com/lessons/dp-factory-method) (Journeyman): Pass 1's simple factory picked a class from a name; when shipping runs the same steps for every carrier and needs both a label and a pickup that must match, two simple factories with the same if chain drift apart, so each carrier's subclass decides what to create, with methods the shared steps call: the Factory Method pattern.
- [Fair Ties, Ready-Made: Priority Queues in Your Language](https://www.ask-codey.com/lessons/ds-priority-queues) (Journeyman): See the most urgent patient first and, of two equally urgent, the one who has waited longer, with the priority queue your language already has (PriorityQueue in C# and Java, heapq in Python) or a small one in JavaScript and TypeScript, which have none.
- [Fairness Trade-offs](https://www.ask-codey.com/lessons/ml-fairness-tradeoffs) (Freelancer): When two groups have different base rates, a useful screen can't give them equal selection rates and equal error rates at once, and one whose invitations mean the same in both groups can't have equal error rates either unless it makes no mistakes, as Barocas, Hardt and Narayanan, Chouldechova, and Kleinberg, Mullainathan and Raghavan show, so which goal matters is a choice for people, and sometimes the answer is no model.
- [Fast in the Demo, Slow for Users: Best, Worst and Average](https://www.ask-codey.com/lessons/big-o-best-worst-average) (Apprentice): Explain why a search that was instant in your demo is slow for users, name its best, worst and average cases, and see why Big-O usually promises the worst one.
- [Features and Labels](https://www.ask-codey.com/lessons/ml-features-and-labels) (Apprentice): Before a model can learn, its table is split in two, X (capital X, the features, the columns it looks at) and y (the label, the one column it learns to guess), with ID columns left out, and with rows that are enough of the right kind.
- [Fetch](https://www.ask-codey.com/lessons/calling-apis-from-javascript-fetch) (Apprentice): The browser's fetch function sends HTTP requests from JavaScript and returns a promise of the response. Chain .then to read the JSON, check response.ok before trusting it, and pass an options object to POST, PUT or DELETE.
- [Fetch](https://www.ask-codey.com/lessons/fetch-vs-axios-fetch) (Apprentice): Call a REST API from JavaScript with the built-in fetch function: GET, POST, PUT and DELETE, checking response.ok before using the result.
- [Field Rules: Lengths, Ranges and Choices](https://www.ask-codey.com/lessons/fastapi-pydantic-field-rules) (Journeyman): Field() puts rules on a model's fields, such as a name of 1 to 80 characters and an age of 18 or over, Literal allows only a fixed set of values, EmailStr checks the shape of an email address, and Query puts the same kind of rules on a query parameter.
- [Fields Inside Fields: Dot Notation](https://www.ask-codey.com/lessons/mongodb-dot-notation) (Apprentice): Dot notation names a field inside an embedded document, such as "nutrition.calories" in quotes, so a filter can test that one field instead of matching the whole embedded document.
- [Fields vs Properties](https://www.ask-codey.com/lessons/properties-in-csharp-fields-vs-properties) (Apprentice): A property looks like a field from outside but runs code inside, so a class can let others read and set a value while it checks every change.
- [Figures and Axes: How matplotlib Draws](https://www.ask-codey.com/lessons/data-matplotlib-figure-and-axes) (Apprentice): matplotlib draws every chart on a Figure, the sheet of paper that gets saved, inside an Axes, the one chart on that sheet, so a chart starts with fig, ax = plt.subplots(), draws with ax.plot, is labeled with set_title, set_xlabel and set_ylabel, and is saved with fig.savefig.
- [File Object Methods](https://www.ask-codey.com/lessons/working-with-the-file-object-file-object-methods) (Apprentice): The \`File\` methods that create, delete and check files and directories, and list what a directory holds.
- [File Uploads with Limits](https://www.ask-codey.com/lessons/node-uploads-with-multer) (Freelancer): A form with a file arrives as multipart/form-data, which multer reads in Express, saving the file under a name the server makes and refusing a file that's too big (413) or of the wrong type (400) before it fills the disk.
- [File, FileInfo and Path](https://www.ask-codey.com/lessons/working-with-files-in-csharp-file-fileinfo-and-path) (Apprentice): File and Directory check for, create, list, copy and delete files and folders. FileInfo describes one file. Path builds paths with Path.Combine and takes them apart, without touching the disk.
- [Files and Folders for a Website](https://www.ask-codey.com/lessons/html-files-and-folders-for-a-website) (Novice): A website is a folder of files, so give each site its own folder, name every file in lowercase with hyphens instead of spaces, make index.html the front page and keep pictures in an images folder.
- [FileStream Defaults](https://www.ask-codey.com/lessons/working-with-the-filestream-filestream-defaults) (Journeyman): Writing to a file with a \`PrintWriter\`, which by default replaces the file or creates a new one.
- [Filtering Rows with a Condition](https://www.ask-codey.com/lessons/pandas-filtering-rows) (Apprentice): A comparison such as products\["price"\] &lt; 100 gives a True or False answer for every row, called a mask; putting the mask in square brackets, products\[mask\], keeps only the rows where it is True; and sum() and mean() on the mask count the matching rows and give their share of the table.
- [Filtering: Where-Object and Comparisons](https://www.ask-codey.com/lessons/powershell-where-object) (Apprentice): Where-Object keeps only the objects that pass a test, such as every file over 1 MB or every song, and the test is written with comparisons read aloud as words, -eq "equals", -gt "greater than", -like "is like", with $\_ standing for this item.
- [Find and Replace in a Stream: sed](https://www.ask-codey.com/lessons/bash-sed) (Journeyman): sed changes text as it flows past, replacing words with s/old/new/g and deleting lines with d, and sed -i.bak changes the files themselves while keeping a backup of each one.
- [Find What Changes and Fence It Off](https://www.ask-codey.com/lessons/dp-encapsulate-what-varies) (Apprentice): When the part of a program that changes every week is mixed into the part that shouldn't change, every change risks the rest; finding what changes and giving it a home of its own, behind one wall, is the idea behind almost every design pattern, and it comes with two words worth knowing: coupling and cohesion.
- [Finding a Command: Get-Command](https://www.ask-codey.com/lessons/powershell-get-command) (Apprentice): Get-Command searches every command PowerShell knows, by its exact name, by its verb or noun, or by part of a name with the \* wildcard, and shows what kind of command each one is and which module it comes from, without running it.
- [Finding and Removing Duplicates](https://www.ask-codey.com/lessons/pandas-duplicates) (Apprentice): duplicated marks every row that repeats one before it, on every column or only on the columns named in subset, drop_duplicates removes those rows and keep says which copy stays, and choosing the columns is how a double entry is told apart from two real visits.
- [Finding Bugs with the Debugger](https://www.ask-codey.com/lessons/python-debugging-with-breakpoints) (Apprentice): When a program gives a wrong answer with no error to read, VS Code's debugger pauses it at a breakpoint and runs it one line at a time with Step Over and Step Into, while the Variables panel and Watch show every value change, until the line that goes wrong shows itself.
- [Finding Documents with Filters](https://www.ask-codey.com/lessons/node-mongodb-find-and-filters) (Apprentice): A filter object tells find and findOne which documents you want, with operators such as $gte and $in for comparisons, dot notation for a field inside a field, an ObjectId to find one document by its id, and a projection to send back only the fields you need.
- [Finding Documents with find and findOne](https://www.ask-codey.com/lessons/mongodb-find-and-findone) (Novice): A filter describes the documents you want, field by field; find gives back every document that matches, findOne the first one or null, and countDocuments how many there are.
- [Finding Files: find](https://www.ask-codey.com/lessons/bash-find) (Apprentice): find searches a folder and every folder inside it for files by name, type, size or age, and with -exec it runs a command on each file it finds, best tried with echo first so you see what would happen.
- [Finding Files: Get-ChildItem -Recurse](https://www.ask-codey.com/lessons/powershell-finding-files) (Apprentice): Get-ChildItem -Recurse looks in a folder and in every folder inside it, so -Filter finds a file by its name wherever it is, Where-Object finds files by size or date, and Select-String can then search the text inside them all.
- [Finding Maya's Coat Without a Ticket: Hash Tables](https://www.ask-codey.com/lessons/ds-hash-tables) (Apprentice): Find a coat by its owner's name in one step, at a coat check with 3,000 coats and no tickets: why a list, an A-to-Z rack and hooks by first letter all fall short, and the structure that fixes them, the hash table.
- [Finding Missing Values: NaN and isna](https://www.ask-codey.com/lessons/pandas-missing-values-finding) (Apprentice): pandas marks a missing value as NaN, isna().sum() counts the missing values in every column, na_values in read_csv turns hidden blanks such as 'unknown' and '-' into NaN, and count and mean quietly leave missing values out.
- [Finding Text: grep](https://www.ask-codey.com/lessons/bash-grep) (Apprentice): grep prints every line that contains a word or phrase, in one file, in many files or in a whole folder, and its options ignore capitals, number the lines, list only the files that match, count the matches or show the lines that don't match.
- [Finding Text: Select-String](https://www.ask-codey.com/lessons/powershell-select-string) (Apprentice): Select-String searches the text inside files for a word, in one file or in many at once, and shows each matching line with its file name and line number, as objects you can pick from like any other.
- [Finding Things in an Array](https://www.ask-codey.com/lessons/javascript-arrays-finding-items) (Apprentice): Ask an array questions instead of writing a loop for each one, with includes and indexOf for an exact value, and find, findIndex, some and every for any test you write.
- [Finding Your Way in the Terminal](https://www.ask-codey.com/lessons/python-terminal-basics) (Novice): The terminal is where you run Python programs, and four commands that work the same in PowerShell and zsh, pwd, ls, cd and mkdir, tell you which folder you're in, show what's there, move you to another folder and make a new one.
- [Finishing Touches: Rounded Corners, Shadows and Gradients](https://www.ask-codey.com/lessons/css-shadows-corners-gradients) (Apprentice): border-radius rounds corners, a soft layered box-shadow lifts a card off the page, linear-gradient() and radial-gradient() blend colors in a background, and opacity fades a whole element, and each looks best used sparingly.
- [First Come, First Served at Rush Hour: Queues](https://www.ask-codey.com/lessons/ds-queues) (Apprentice): At 8 a.m. the coffee shop's order screen freezes: serving each order from the front of a list moves every order behind it. Find a way to join at the back and serve from the front in one step each, and meet the structure built for it: the queue.
- [Fitting a Line](https://www.ask-codey.com/lessons/ml-fitting-a-line) (Apprentice): A straight line through a scatter plot of home sales turns a home's size into a price guess, the intercept plus the slope times the size, and least squares picks the best line, the one whose squared errors add up to the least, which Python's statistics.linear_regression finds for you.
- [Fixed](https://www.ask-codey.com/lessons/css-position-fixed) (Apprentice): Fixed positioning places an element relative to the browser window, so it stays on screen while the page scrolls.
- [Fixtures and Temporary Files](https://www.ask-codey.com/lessons/python-testing-fixtures-and-tmp-path) (Journeyman): A pytest fixture builds the setup several tests share and hands each test a fresh copy, tmp_path gives each test its own empty folder to write files in, and capsys lets a test read what a function printed.
- [Flexbox Alignment: justify-content and align-items](https://www.ask-codey.com/lessons/css-flexbox-alignment) (Apprentice): justify-content spaces flex items along the main axis, align-items and align-self line them up across it, the two together center anything both ways, and an auto margin pushes one item to the far end.
- [Flexbox or Grid? Choosing the Right Tool](https://www.ask-codey.com/lessons/css-flexbox-or-grid) (Journeyman): Flexbox lines things up in one direction and lets the content set the sizes, grid lays out rows and columns you plan first, and positioning lifts one thing on top, so three questions tell you which fits each part of a page.
- [Flexbox Sizing: flex-grow, flex-shrink and flex-basis](https://www.ask-codey.com/lessons/css-flexbox-sizing) (Journeyman): Each flex item starts from its flex-basis, flex-grow shares out the leftover space like splitting a bill, flex-shrink decides who gives up room when it's tight, flex: 1 sets all three at once, and min-width: 0 lets a long line of text shrink.
- [Flexbox Wrapping and gap](https://www.ask-codey.com/lessons/css-flexbox-wrapping) (Journeyman): flex-wrap lets flex items move onto a new line when they run out of room, gap puts even space between them, align-content places the lines, flex: 1 1 15rem makes a card row that fits any screen, and order changes what the eye sees but not what the keyboard follows.
- [FlexBox: an overview](https://www.ask-codey.com/lessons/flexbox-an-overview) (Apprentice): Setting display to flex on an element lines up its children side by side in a row, and flex-direction can turn that row into a column.
- [Flexbox: Lining Things Up in a Row or a Column](https://www.ask-codey.com/lessons/css-flexbox-basics) (Apprentice): One line of CSS, display: flex, lines up an element's children in a row, flex-direction turns the row into a column, and the main and cross axes name the two directions every other flexbox property works along.
- [Fluid Type and Spacing with clamp()](https://www.ask-codey.com/lessons/css-clamp-fluid-type) (Journeyman): clamp() keeps a size between a minimum and a maximum and lets it grow smoothly in between, so headings and spacing fit a phone and a wide screen without a single breakpoint, while still following the reader's zoom.
- [Flyweight: Share What's the Same](https://www.ask-codey.com/lessons/dp-flyweight) (Journeyman): When thousands of objects each carry their own copy of the same few details, memory grows with every object; the Flyweight pattern stores what's the same once per kind and shares it, so each object keeps only what's its own.
- [Following an Exception: Stack Traces and Catching Higher Up](https://www.ask-codey.com/lessons/exceptions-in-csharp-stack-traces-and-catching-higher-up) (Apprentice): Read a stack trace to find the line where an exception started and the calls that led there, catch it in the method that knows what to do, and wrap it with a clearer message and the facts the catcher needs.
- [Fonts and Text: Family, Size, Weight and Spacing](https://www.ask-codey.com/lessons/css-fonts-and-text) (Novice): A handful of text properties (font-family with web-safe fonts and fallbacks, font-size, font-weight, font-style, line-height, text-align, text-transform, letter-spacing, text-decoration, font-variant, text-indent and overflow-wrap) turn plain words into text people can read at a glance.
- [For Each Thing: \`foreach\`](https://www.ask-codey.com/lessons/powershell-foreach-loop) (Apprentice): The foreach statement runs the steps in its braces once for each item in a list, with a variable you name holding this item, so a script renames 30 files or 200 with one loop and can decide about each one with an if.
- [For Every File: for Loops](https://www.ask-codey.com/lessons/bash-for-loops) (Apprentice): A for loop runs the same commands once for every word, number or file in a list, so renaming 12 files or 200 takes one line, with ${f%.tmp} cutting the old ending off each name.
- [For Loop](https://www.ask-codey.com/lessons/looping-for-loop) (Novice): The for-i loop, often referred to simply as a for loop, is commonly used for iterating over a range of values, such as the elements in an array.
- [For Loop](https://www.ask-codey.com/lessons/looping-in-csharp-for-loop) (Novice): Count through a range of numbers, or through an array's indexes forward, backward or in steps, with C#'s for loop.
- [Foreach Loop](https://www.ask-codey.com/lessons/looping-in-csharp-foreach-loop) (Apprentice): Visit every element of an array without an index using C#'s foreach loop, and leave a loop early with break or skip ahead with continue.
- [For-Each Loop](https://www.ask-codey.com/lessons/looping-for-each-loop) (Apprentice): The for-each loop is a simplified version of the for loop that enables you to iterate over the elements of a collection or array without needing to manage an index variable.
- [Form Events](https://www.ask-codey.com/lessons/common-events-form-events) (Apprentice): Form controls send their own events, for the moments a visitor types, changes a value, moves between fields or sends the form, so you can pick the one that fires exactly when you need it.
- [Friendly Output: Colors and Progress](https://www.ask-codey.com/lessons/powershell-friendly-output) (Journeyman): Write-Progress shows a progress bar while a long job runs, so nobody wonders whether it's stuck, and $PSStyle colors make the important lines stand out on the screen, as long as the colors stay in what you show and never go into the objects a tool hands back.
- [Friendly Output: Columns and Colors](https://www.ask-codey.com/lessons/bash-friendly-output) (Journeyman): printf lines output up in columns, with a width for every blank it fills, and tput adds bold and color, but only when \[\[ -t 1 \]\] says the output is going to a terminal, so files and pipes get plain text.
- [From mongosh to the Driver: find, insertOne and toArray](https://www.ask-codey.com/lessons/mongodb-driver-from-mongosh-to-the-driver) (Journeyman): Every mongosh query has a twin in the Node.js driver, written with db.collection("pets"), await, a projection inside an options object, toArray() to read a cursor, and new ObjectId(id) imported from the driver, and insertOne gives back the new document's insertedId.
- [From Notebook Cells to Functions](https://www.ask-codey.com/lessons/data-cells-to-functions) (Journeyman): A notebook that answers this week's questions has to be edited by hand for next week's file, so the cells you run again and again become functions whose parameters are what changes, such as the file and how many top items to show, and which return their results instead of printing them.
- [From Text to Data: Lines, CSV and JSON Files](https://www.ask-codey.com/lessons/node-files-text-to-data) (Apprentice): A file arrives as one long string, so a Node program splits CSV text into lines and fields, turns numbers from text into numbers, skips blank lines and reports bad rows, and reads and writes JSON files with JSON.parse and JSON.stringify.
- [Full Example](https://www.ask-codey.com/lessons/querying-a-database-full-example) (Journeyman): A complete main method that connects to the northwind database, selects every product, and prints each product's id, name and price.
- [Full Example](https://www.ask-codey.com/lessons/querying-a-database-with-ado-net-full-example) (Journeyman): A complete console program that reads the connection string from appsettings.json, queries Northwind's categories, and prints a report.
- [Function Expressions and Arrow Functions](https://www.ask-codey.com/lessons/javascript-functions-arrow-functions) (Apprentice): A function can be stored in a variable like any other value, arrow functions (=>) write small functions in a line, and default values fill in the arguments a caller leaves out.
- [Functions as Values](https://www.ask-codey.com/lessons/dp-functions-as-values) (Apprentice): A weekend discount as a true/false flag means the total's code changes with every new deal; functions as values let the caller hand in the rule instead: a function stored in a variable, passed to another function, or made and returned by one, in C#, Java, Python, JavaScript and TypeScript.
- [Functions as Values: Callbacks](https://www.ask-codey.com/lessons/javascript-callbacks-functions-as-values) (Apprentice): In JavaScript a function is a value you can hand to another function, which calls it for you; that handed-over function is a callback, and it's how sorting, timers and buttons work.
- [Functions: Naming a Job](https://www.ask-codey.com/lessons/bash-functions) (Journeyman): A function keeps a few commands under one name, so a script says the job's name instead of repeating its lines: define it with name() { }, call it by its name like any command, and hand it arguments, which it reads as $1, $# and "$@".
- [Functions: Naming a Job](https://www.ask-codey.com/lessons/powershell-functions) (Journeyman): A function you share gets a cmdlet's kind of name, an approved verb from Get-Verb and a singular noun, takes its inputs in param() and outputs objects rather than sentences, so its results can be sorted, filtered and saved; a file of functions is loaded into your session with a dot.
- [Generalization vs Specialization](https://www.ask-codey.com/lessons/introduction-to-inheritance-generalization-vs-specialization) (Apprentice): Generalization moves what classes share into one parent class, and specialization keeps what makes each child class different.
- [Generalization vs Specialization](https://www.ask-codey.com/lessons/introduction-to-inheritance-in-csharp-generalization-vs-specialization) (Apprentice): Generalization moves what similar classes share into a base class; specialization keeps what makes each one different in its derived class.
- [Generators: Iterators the Modern Way](https://www.ask-codey.com/lessons/dp-generators) (Journeyman): A hand-written iterator is a bookmark and a page of bookkeeping; a generator writes the same iterator as an ordinary loop that hands out each item with yield, pausing until the next one is asked for, so stops can even be fetched from a server only when they're needed.
- [Generics: a Box for Any Type](https://www.ask-codey.com/lessons/ds-code-you-need-generics) (Apprentice): How C#, Java and TypeScript write one class that works for any type of item, read aloud as "a list of snacks", and why Python and JavaScript don't need the label.
- [GET](https://www.ask-codey.com/lessons/restful-web-apis-get) (Journeyman): Handle a GET request in Spring Boot with @GetMapping, return the categories as JSON, and check it from Insomnia.
- [GET](https://www.ask-codey.com/lessons/web-apis-with-controllers-get) (Journeyman): GET reads data. One \[HttpGet\] action returns the whole collection, and an \[HttpGet("{id}")\] action returns one item, its id taken from the address. ASP.NET Core sends what they return as JSON, with 200 OK.
- [GET and POST Actions](https://www.ask-codey.com/lessons/mvc-forms-get-and-post-actions) (Journeyman): A search form sends a GET request with a query string; a form that saves data sends a POST. Pair a GET action that shows the form with a POST action that saves it, redirect afterward, and protect it with an anti-forgery token.
- [Get the Exercise Code with Git](https://www.ask-codey.com/lessons/git-clone-exercise-code) (Novice): Copy an exercise's repository from GitHub into your course folder with git clone, open the folder it makes in VS Code, and see with git status and git remote -v that your copy remembers where it came from.
- [Getting an API Ready for a Host](https://www.ask-codey.com/lessons/fastapi-deploy-getting-ready) (Journeyman): A host is a computer that's always on at an address anyone can reach, and a FastAPI project is ready for one when its requirements.txt pins every package, a .python-version file names its Python, its start command runs uvicorn with --host 0.0.0.0 and --port $PORT, its settings come from environment variables, and a /health route says it's working.
- [Getting Data with fetch](https://www.ask-codey.com/lessons/javascript-fetch-getting-data) (Apprentice): fetch sends a request to a web API and gives back a promise of the response; await it, then await response.json() to turn the JSON answer into a JavaScript value your page can use.
- [Getting Data with requests](https://www.ask-codey.com/lessons/python-requests-getting-json) (Apprentice): The requests package sends a program's request to a web API with requests.get, a User-Agent header and a timeout, and gives back a response whose status_code says how it went and whose json() turns the answer into dictionaries and lists, which for the National Weather Service takes two steps, the point's forecast address and then the forecast.
- [Getting Help](https://www.ask-codey.com/lessons/bash-getting-help) (Apprentice): Every command can explain itself, with --help for a short list of its options and man for its full manual page, type and which tell you what kind of command a name is, and an error message says what went wrong when you read it one part at a time.
- [Git](https://www.ask-codey.com/lessons/os-and-terminal-tools-git) (Novice): Git tracks the changes to your code over time, and three commands, add, commit, and push, save your work and send it to GitHub.
- [Git](https://www.ask-codey.com/lessons/os-and-terminal-tools-windows-git) (Novice): Git keeps a history of your code, so you can go back to an earlier version, and on Windows it comes as Git for Windows, with Git Bash to type its commands in.
- [Git Hooks: Scripts Git Runs for You](https://www.ask-codey.com/lessons/bash-git-hooks) (Freelancer): A Git hook is a script Git runs at a set moment: a pre-commit hook in .git/hooks runs before every commit, and when it ends with an exit code other than 0, the commit is stopped, so test.sh and ShellCheck run without anyone having to remember them.
- [Git Workflow](https://www.ask-codey.com/lessons/working-with-git-git-workflow) (Apprentice): Create a repository on GitHub, clone it to your computer, and take each change from working to staged, committed and pushed, then pull to stay up to date.
- [GitHub](https://www.ask-codey.com/lessons/os-and-terminal-tools-windows-github) (Novice): GitHub keeps your Git repositories online, where you back up your work, get practice code and share it, and Git Credential Manager signs you in to it from Git Bash.
- [GitHub](https://www.ask-codey.com/lessons/os-and-terminal-tools-github) (Novice): GitHub keeps your Git repositories online, so you can back up your work, get exercise code, share it when you want help, and build a portfolio.
- [Graceful Shutdown and Health Checks](https://www.ask-codey.com/lessons/node-pro-graceful-shutdown-and-health) (Freelancer): A host stops your API with SIGTERM on every deploy, so a graceful shutdown stops taking new requests, lets the ones in progress finish with server.close, then closes MongoDB, and a /health route answers 200 or 503 so the host knows whether to send the API riders.
- [Grid](https://www.ask-codey.com/lessons/grid) (Journeyman): CSS Grid lays a container's children out in rows and columns at once, with column widths you set in fr, % or px, gaps between the cells, and items that can span more than one cell.
- [Grids That Fill the Space: repeat(), minmax() and auto-fit](https://www.ask-codey.com/lessons/css-grid-auto-fit-minmax) (Journeyman): One line of CSS, repeat(auto-fit, minmax(14rem, 1fr)), makes a gallery that shows one column on a phone, four on a laptop and more on a wide screen, with no media query at all.
- [Grouping Aggregations](https://www.ask-codey.com/lessons/aggregate-functions-grouping-aggregations) (Journeyman): How GROUP BY returns one aggregate row per group, and how HAVING filters those groups where WHERE filters rows.
- [Grouping Aggregations](https://www.ask-codey.com/lessons/aggregate-functions-in-t-sql-grouping-aggregations) (Journeyman): GROUP BY splits the rows into groups and runs the aggregates once per group. Every column in the SELECT that isn't aggregated must be in the GROUP BY.
- [Grouping with groupby](https://www.ask-codey.com/lessons/pandas-groupby) (Apprentice): groupby sorts a table's rows into groups that share a value, such as a neighborhood, works out one number for each group (a sum, a mean, a count) and hands back one row per group, which answers "which one sold the most?" in a line instead of a filter for every group.
- [Guessing from Examples](https://www.ask-codey.com/lessons/ml-guessing-from-examples) (Novice): A rule you write comes from memory, while a rule learned from past examples comes from the data, and that learned rule is a model; each example is a row, the features are the columns it looks at, and the label is the column it learns to guess.
- [Hand In Your Work with Git](https://www.ask-codey.com/lessons/git-hand-in-your-work) (Novice): Hand in an exercise by making a public repository of your own on GitHub, pointing your clone at it with git remote set-url, saving your work with git add and git commit, sending it with git push, and submitting the repository's address.
- [Handling Errors with try and except](https://www.ask-codey.com/lessons/python-exceptions-try-except) (Apprentice): An exception is Python's report of an error while a program runs, and try and except let a program catch the one it expects, such as the ValueError from turning "two" into a number, with else for what runs when nothing went wrong and finally for what runs every time.
- [Handling Errors with try, catch and finally](https://www.ask-codey.com/lessons/javascript-errors-try-catch-finally) (Apprentice): try runs code that might fail, catch takes over when it does and gets an error object with a name and a message, and finally runs either way, so one bad value doesn't stop your whole program.
- [Handling Global Exceptions](https://www.ask-codey.com/lessons/handling-global-exceptions) (Freelancer): Use a @RestControllerAdvice class with an @ExceptionHandler to send every error back in one format, 404 for a path that doesn't exist and 500 for anything else.
- [Handling Global Exceptions in ASP.NET Core](https://www.ask-codey.com/lessons/handling-global-exceptions-in-aspnet-core) (Freelancer): AddProblemDetails and UseExceptionHandler catch every exception an action doesn't, log it, and answer with a tidy 500 problem details response that never shows the stack trace. An IExceptionHandler can answer chosen exceptions with a better status, such as 409 Conflict.
- [Hashing and Encryption](https://www.ask-codey.com/lessons/security-basics-hashing-and-encryption) (Journeyman): Hashing is one-way, a fingerprint you can check but never undo, so it's for passwords. Encryption is two-way with a key, so it's for data you need back. A password hash needs a random salt and many rounds, which is what PBKDF2 and ASP.NET Core's PasswordHasher do for you.
- [HashSet](https://www.ask-codey.com/lessons/advanced-collections-in-csharp-hashset) (Journeyman): A HashSet&lt;T> holds each value once, answers "is it in here?" fast, and has no index or guaranteed order. Add tells you whether a value was new.
- [Have I Seen This Before? Sets](https://www.ask-codey.com/lessons/ds-sets) (Apprentice): Count the different members who came to the gym today, and know at each scan whether it's someone's first visit: why counting scans, a list and a dictionary of "true" each fall short, and how your language's set answers "have I seen this before?" in one step.
- [HAVING](https://www.ask-codey.com/lessons/aggregate-functions-in-t-sql-having) (Journeyman): WHERE filters rows before they're grouped; HAVING filters the groups afterward, by their aggregates. Know which to use, and the order a query's clauses run in.
- [Header, Nav, Main and Footer](https://www.ask-codey.com/lessons/html-header-nav-main-and-footer) (Apprentice): Mark up the four big parts of almost every web page (its top, its menu, its main content and its bottom) with header, nav, main and footer, so screen readers and search engines can find their way around it.
- [Headings and the Page Outline](https://www.ask-codey.com/lessons/html-headings-and-the-page-outline) (Novice): Headings from h1 to h6 give a page an outline, like a book's title, chapters and sections, so readers and screen readers can find their way around it.
- [Help for Your Tool](https://www.ask-codey.com/lessons/powershell-comment-based-help) (Journeyman): A comment block at the top of a function, with keywords such as .SYNOPSIS, .DESCRIPTION, .PARAMETER and .EXAMPLE, becomes the function's help page, so Get-Help, -Examples and -Parameter explain your tool the way they explain PowerShell's own commands.
- [Hierarchy, Alignment and Whitespace](https://www.ask-codey.com/lessons/css-design-hierarchy-alignment-whitespace) (Apprentice): A page looks designed when the most important thing is seen first, everything lines up on a few shared edges, and space groups the things that belong together, and CSS sets all three with size, weight, color, text-align, padding and margin.
- [Hints and Error Messages Everyone Can Use](https://www.ask-codey.com/lessons/html-forms-hints-and-error-messages) (Journeyman): Hints tied to their fields with aria-describedby, required fields marked in words, error messages that say how to fix the problem, and one column in a sensible order make a form everyone can finish.
- [Histograms: How Values Are Spread](https://www.ask-codey.com/lessons/data-histograms) (Journeyman): A histogram splits a column of numbers into ranges called bins and draws one bar for how many values fall in each, so ax.hist shows a column's shape, bins sets how many ranges (or exactly where they start and end), and the shape is described in plain words, such as most orders small and a few large.
- [History Tricks: !!, !$ and Ctrl+R](https://www.ask-codey.com/lessons/bash-history-tricks) (Journeyman): !! runs the last command again and !$ reuses its last argument, sudo !! repeats a command that needed sudo, Ctrl+R steps back through older matches, and four lines in ~/.bashrc keep a longer history that every terminal adds to.
- [Hoisting, var and the Temporal Dead Zone](https://www.ask-codey.com/lessons/javascript-scope-hoisting-and-var) (Journeyman): Before JavaScript runs a scope it notes every declaration in it, which is why a function can be called above the line that makes it, why var gives undefined there, and why let and const stop with an error instead.
- [Homebrew](https://www.ask-codey.com/lessons/os-and-terminal-tools-homebrew) (Novice): Homebrew, the package manager for macOS, installs and updates your developer tools with one typed command, as a formula for command-line tools or a cask for apps.
- [Honest Axes: Where the Scale Starts](https://www.ask-codey.com/lessons/data-honest-axes) (Journeyman): A bar's length is its value, so a bar chart's y-axis starts at zero with ax.set_ylim(bottom=0), because an axis that starts higher makes a small difference look several times bigger; a line chart may zoom in if its label says so, and side-by-side charts share one scale with sharey=True.
- [Hooks for CSS: the class and id Attributes](https://www.ask-codey.com/lessons/css-html-class-and-id) (Novice): The class attribute gives a label that many elements can share and the id attribute names one element, and together they are the hooks CSS uses to style exactly the parts you mean.
- [How a Browser Shows a Page](https://www.ask-codey.com/lessons/html-how-a-browser-shows-a-page) (Novice): When you type a web address, your browser sends a request to a web server, the server sends back the page's HTML in a response, and the browser draws it; View Source shows you that HTML.
- [How a Form Sends Data](https://www.ask-codey.com/lessons/html-forms-how-a-form-sends-data) (Apprentice): A form turns each answer into a name=value pair and sends the pairs to the address in its action, inside the address itself with GET or inside the request with POST.
- [How a Guess Changes with One Feature](https://www.ask-codey.com/lessons/ml-partial-dependence) (Freelancer): Changing one feature of a home while keeping the rest the same, and watching the model's guess, gives that home's individual line, and averaging every home's line gives the partial dependence, which PartialDependenceDisplay.from_estimator draws with kind='both', but it shows how the model behaves, not cause and effect, and it can't be trusted where the data is thin.
- [How a Page Loads](https://www.ask-codey.com/lessons/html-how-a-page-loads) (Journeyman): Watch the browser read a page from top to bottom and fetch every file it names, then measure the page's size and speed the way a visitor on a phone feels them.
- [How a Phone Suggests the Next Word: Tries](https://www.ask-codey.com/lessons/ds-tries) (Journeyman): Suggest words from a 100,000-word dictionary on every keypress, and learn new words as they're typed: why checking every word, a hash set and a sorted array each fall short, and the structure that fixes them, the trie.
- [How Big Is This Folder? Recursion](https://www.ask-codey.com/lessons/ds-recursion) (Apprentice): Work out how big a folder is when it holds folders, which hold more folders, as deep as anyone made them: why one loop, a loop in a loop and a loop per level all come up short, and the idea that fixes them, recursion.
- [How Frameworks Are Built from Patterns](https://www.ask-codey.com/lessons/dp-frameworks-from-patterns) (Journeyman): A framework you've never seen looks like hundreds of files and a lot of magic; follow one request through it and every step is a pattern this course has taught (a facade to start it, observers when it starts, a pipeline of middleware, a dictionary of routes, a container, a controller, a repository), and the framework calling your code, not the other way round, is what makes it a framework.
- [How k-means Works](https://www.ask-codey.com/lessons/ml-how-k-means-works) (Journeyman): k-means finds k groups with a short loop you can run by hand, place k centers, give each example to its nearest center, move each center to the mean of its examples, and repeat until nothing moves, and because it only ever improves from where it starts, different starting centers can end in different groups.
- [How Many Groups?](https://www.ask-codey.com/lessons/ml-choosing-k) (Freelancer): With no answer key, the number of groups k is chosen with evidence and judgment, inertia (the within-cluster sum of squares) keeps falling as k grows so you look for the bend where it stops falling fast, the silhouette score from −1 to 1 says how well each example sits in its group, and in the end what the groups are for decides.
- [How Many Steps Apart? Breadth-First Search](https://www.ask-codey.com/lessons/ds-bfs) (Journeyman): Find how many friendships apart two people are, the fewest, without listing every route or walking in circles: why both of those fail, and the search that fixes them, breadth-first search, with a queue and a visited set.
- [How Many Times Can You Halve a Million? O(log n)](https://www.ask-codey.com/lessons/big-o-logarithmic) (Novice): Find one song among a million sorted titles in about 20 looks instead of a million, and name the growth rate that makes it possible: O(log n), logarithmic time.
- [How Many, and Who Owns It: Multiplicity and the Two Diamonds](https://www.ask-codey.com/lessons/dp-multiplicity-and-diamonds) (Apprentice): An arrow says that a rental has a rentable, but not how many or who owns it; numbers on the line (1, 0..1, \* and 1..\*) say how many, and a hollow or filled diamond says whether the part can live without the whole.
- [How Slow Will It Get? Counting Steps](https://www.ask-codey.com/lessons/big-o-counting-steps) (Novice): Count the steps a loop takes instead of timing it in seconds, call the amount of data n, and watch a loop's steps grow right along with n.
- [How the Browser Parses HTML](https://www.ask-codey.com/lessons/html-how-the-browser-parses-html) (Freelancer): The browser reads your HTML file one character at a time, breaks it into tokens, builds a tree of nodes from them, and quietly repairs your mistakes along the way, so you can tell why a page shows what it shows.
- [How the Java Course Works](https://www.ask-codey.com/lessons/java-how-this-course-works) (Novice): How the Java Full-Stack Bootcamp works on ask-codey.com, from reading a lesson to mastering a skill, building module projects and passing assessments.
- [How the Layers Work Together](https://www.ask-codey.com/lessons/full-stack-how-the-layers-work-together) (Novice): Follow one pizza order from a tap on the screen, through the API and the database and back again, to see how the front end, the back end and the database work as one app.
- [How This Course Works](https://www.ask-codey.com/lessons/python-how-this-course-works) (Novice): How Python in Depth works on ask-codey.com, from reading a lesson and trying its Do It to exercises checked by pytest, chapter checks, module assessments and the projects you build.
- [How This Course Works](https://www.ask-codey.com/lessons/ds-how-this-course-works) (Novice): How Data Structures and Big-O, Demystified works on ask-codey.com, from choosing your language in the code tabs and running an exercise's tests to mastering a skill and passing a module assessment.
- [How This Course Works](https://www.ask-codey.com/lessons/fastapi-how-this-course-works) (Novice): How Python Web APIs works on ask-codey.com, from reading a lesson and trying its Do It to exercises checked by pytest and handed in with Git, chapter checks, module assessments and the APIs you build.
- [How This Course Works](https://www.ask-codey.com/lessons/css-how-this-course-works) (Novice): How CSS in Depth works on ask-codey.com, from reading a lesson and running its exercise checks to mastering a skill and passing a module assessment.
- [How This Course Works](https://www.ask-codey.com/lessons/javascript-how-this-course-works) (Novice): How JavaScript in Depth works on ask-codey.com, from reading a lesson and running its code to exercises, chapter checks, module assessments and the projects you build.
- [How This Course Works](https://www.ask-codey.com/lessons/bash-how-this-course-works) (Novice): How Bash in Depth works on ask-codey.com, from reading a lesson and playing its Terminal Quest goals to running an exercise's checks with bats, mastering a skill and passing a module assessment.
- [How This Course Works](https://www.ask-codey.com/lessons/ml-how-this-course-works) (Novice): How Machine Learning with Python works on ask-codey.com, from reading a lesson and trying its Do It to exercises with their own data, a notebook to explore and a module pytest checks, chapter checks, module assessments, the projects you build, and why every number in a lesson can be reproduced.
- [How This Course Works](https://www.ask-codey.com/lessons/mongodb-how-this-course-works) (Novice): How MongoDB in Depth works on ask-codey.com, from reading a lesson and running its queries in mongosh to exercises checked by tests, chapter checks, module assessments and the projects you build.
- [How This Course Works](https://www.ask-codey.com/lessons/dp-how-this-course-works) (Novice): How Design Patterns, Demystified works on ask-codey.com: the passes, the same shape every pattern lesson follows and its pattern card, the language tabs, exercises written as tickets with tests that say Keep this working and Not yet, and how chapter checks, module assessments, Covered and Mastered fit together.
- [How This Course Works](https://www.ask-codey.com/lessons/node-how-this-course-works) (Novice): How Node.js in Depth works on ask-codey.com, from reading a lesson and trying its Do It to exercises checked by tests, chapter checks, module assessments and the projects you build.
- [How This Course Works](https://www.ask-codey.com/lessons/powershell-how-this-course-works) (Novice): How PowerShell in Depth works on ask-codey.com, from reading a lesson and playing its terminal game to running exercise checks, mastering a skill and passing a module assessment.
- [How This Course Works](https://www.ask-codey.com/lessons/data-how-this-course-works) (Novice): How Python for Data Analysis works on ask-codey.com, from reading a lesson and trying its Do It to exercises with a notebook to explore and a module pytest checks, chapter checks, module assessments and the projects you build.
- [How to read a URL](https://www.ask-codey.com/lessons/network-communication-how-to-read-a-url) (Novice): A URL has five parts (protocol, domain name, port, path and query string), and each one tells the web server something about the request.
- [How to Tell When a Model Is Wrong](https://www.ask-codey.com/lessons/python-taste-ml-when-its-wrong) (Apprentice): Hold some examples back with train_test_split and a fixed random_state, measure the model's guesses on them with the mean absolute error, and see why a score on the training data misleads and when a model's guesses shouldn't be trusted at all.
- [How Two Columns Move Together](https://www.ask-codey.com/lessons/ml-stats-relationships) (Apprentice): A scatter plot shows whether two columns move together, and Pearson's correlation, read "r", puts it in one number from -1 to 1 (statistics.correlation for two lists, df.corr() for a whole table), but r only measures straight-line patterns, a weak r can hide a real effect, and moving together isn't causing.
- [HTML](https://www.ask-codey.com/lessons/html) (Novice): HTML builds a page from elements, each an opening tag, content and a closing tag, and whether an element is block, inline or inline-block decides how it takes up room on the page.
- [HTML](https://www.ask-codey.com/lessons/html-and-css-overview-html) (Novice): HTML is the structure of a web page and CSS is its finish, the way a house has framing and paint, and good CSS needs solid HTML underneath it.
- [HTTP in Plain Words: Requests and Responses](https://www.ask-codey.com/lessons/fastapi-http-requests-and-responses) (Apprentice): An app that asks an API for something sends an HTTP request with a method, a URL, headers and sometimes a body, and gets back a response with a status code, headers and usually a body, and Python's urllib.parse splits a URL into its path and its query values.
- [HTTP in Plain Words: Requests and Responses](https://www.ask-codey.com/lessons/node-http-requests-and-responses) (Apprentice): Every app that talks to a server sends an HTTP request (a method, an address, headers and sometimes a body) and gets a response back, and in Node you read a request's path and query values with URL and URLSearchParams.
- [HTTP Status Codes: an overview](https://www.ask-codey.com/lessons/http-status-codes-in-aspnet-core-an-overview) (Apprentice): Every response starts with a status code that says how the request went. By default an ASP.NET Core API answers 200 when an action returns, and 500 when it throws, so an action has to choose a better code, such as 404, on purpose.
- [HttpClient Basics](https://www.ask-codey.com/lessons/calling-apis-with-httpclient-httpclient-basics) (Journeyman): HttpClient sends HTTP requests from C#. Give it a base address, await GetAsync for a response, check its status code, and read its body. A failed status is an answer to handle; a server that can't be reached throws an HttpRequestException.
- [HttpClient in Angular](https://www.ask-codey.com/lessons/calling-apis-from-angular-httpclient-in-angular) (Journeyman): Call your Web API from a service with HttpClient's get, post, put and delete, each typed with the model it returns. Angular provides HttpClient on its own. While developing, a proxy sends the app's /api requests on to the API, so the browser sees one origin.
- [Hyperparameters: Settings You Choose](https://www.ask-codey.com/lessons/ml-hyperparameters) (Journeyman): A hyperparameter is a setting you choose before fit, such as a tree's max_depth, while fit learns the rest, such as the tree's questions; get_params and set_params read and change the settings, the defaults are only a starting point, and settings are chosen with cross-validation on the training rows, never with the test set.
- [Icons, Stylesheets and Resource Hints](https://www.ask-codey.com/lessons/html-head-icons-stylesheets-and-hints) (Journeyman): Use the head's link tags to give a page its tab icon and its stylesheet, and to tell the browser early about the few files it needs first.
- [If](https://www.ask-codey.com/lessons/conditional-logic-in-csharp-if) (Novice): Run code only when a condition is true, with if, if-else and else if, and write conditions with C#'s comparison operators.
- [If](https://www.ask-codey.com/lessons/conditional-logic-if) (Novice): Use if, if-else and if-else if-else to run a block of code only when a condition is true, or to pick one block out of several.
- [If This, Then That: \`if\`, \`elseif\` and \`else\`](https://www.ask-codey.com/lessons/powershell-if-statements) (Apprentice): if runs a block of commands only when its test is True, elseif adds another test, else catches everything left, -and, -or and -not join tests together, and exit stops a script early, so a backup copies only when something changed and explains itself when it can't.
- [If This, Then That: if and \[\[ \]\]](https://www.ask-codey.com/lessons/bash-if-statements) (Apprentice): if lets a script choose: the commands after then run only when a test passes, \[\[ \]\] compares text with == and whole numbers with -lt and its friends, and if can also ask whether any command worked.
- [If You Know SQL: One Store Designed Both Ways](https://www.ask-codey.com/lessons/mongodb-if-you-know-sql-one-store-both-ways) (Journeyman): Riverbend Bike Shop's store as SQL tables beside the same store as MongoDB documents, the words that carry over from one to the other, and the relational habits that don't.
- [If You Know SQL: Queries Side by Side](https://www.ask-codey.com/lessons/mongodb-if-you-know-sql-queries-side-by-side) (Apprentice): The SQL you already write beside its MongoDB twin, from SELECT with WHERE, ORDER BY and a row limit to INSERT, UPDATE and DELETE, with a first look at GROUP BY and JOIN in a pipeline.
- [Image Dimensions and Lazy Loading](https://www.ask-codey.com/lessons/html-images-dimensions-and-lazy-loading) (Journeyman): Stop a page from jumping while its pictures load with width and height, let pictures further down wait with loading="lazy", and give the first picture priority.
- [Image Formats and File Size](https://www.ask-codey.com/lessons/html-images-formats-and-file-size) (Apprentice): Learn why a photo straight from your phone is far bigger than a page needs, and which file format fits each picture, from JPEG and PNG to SVG, WebP and AVIF.
- [Imperative](https://www.ask-codey.com/lessons/responding-to-events-imperative) (Apprentice): In the imperative style, your JavaScript finds an element and attaches a handler to it with addEventListener, so the HTML holds no JavaScript at all.
- [import and the Standard Library](https://www.ask-codey.com/lessons/python-modules-import-and-standard-library) (Apprentice): Python comes with a standard library of ready-made modules for dice rolls, dates, averages and more, and an import line brings one into your program, whole, by its names, or under a shorter name.
- [In Your Textbook: Abstract Data Types](https://www.ask-codey.com/lessons/ds-abstract-data-types) (Journeyman): Textbooks separate what a structure does (an abstract data type, such as a stack) from how it's built (a data structure, such as an array or a linked list). In code, that line is an interface, and any class that keeps its promise can stand behind it.
- [In Your Textbook: Big-O, Big-Θ and Big-Ω](https://www.ask-codey.com/lessons/big-o-in-your-textbook) (Journeyman): What a Data Structures textbook means by Big-O, Big-Theta and Big-Omega, how to read each symbol aloud, and its formal definition of Big-O in everyday words, checked with a little code.
- [In Your Textbook: UML](https://www.ask-codey.com/lessons/dp-uml-in-your-textbook) (Journeyman): A college class or a textbook's pattern diagram uses UML's formal words and marks (realization, stereotypes, italics for abstract, # and ~, notes), and the original pattern book used an older style; this optional lesson maps them to this chapter, and says in a paragraph each what the other UML diagrams show.
- [Indexes and Text Search](https://www.ask-codey.com/lessons/node-mongodb-indexes-and-text-search) (Journeyman): An index lets MongoDB jump to the documents a query wants instead of reading every one, a unique index refuses a second document with the same value, and a text index lets $text search the words in a collection's text fields.
- [Indexes and Unique Values](https://www.ask-codey.com/lessons/fastapi-sql-indexes-and-unique) (Journeyman): An index lets the database find rows by a column without reading the whole table, the way a book's index finds a page, a UNIQUE index makes it refuse a second row with the same email, and the sqlite3.IntegrityError it raises becomes an exception of your own that the rest of the app can understand.
- [Inheritance and Composition: Is-a and Has-a](https://www.ask-codey.com/lessons/dp-inheritance-and-composition) (Apprentice): Two ways to build a class from another: inheritance, where an e-bike is a bike and overrides its price, and composition, where a bike has a lock it keeps as a field; saying the relationship aloud, is-a or has-a, tells you which one fits.
- [Inheritance and Constructors](https://www.ask-codey.com/lessons/introduction-to-inheritance-inheritance-and-constructors) (Journeyman): When a parent class has only constructors with parameters, the child class's constructor must call super(...) with those values as its first line.
- [Inheritance and Constructors](https://www.ask-codey.com/lessons/introduction-to-inheritance-in-csharp-inheritance-and-constructors) (Journeyman): When a base class has a constructor with parameters, every derived class must call it with base(...). The base class's constructor always runs first.
- [Inheritance in C#](https://www.ask-codey.com/lessons/introduction-to-inheritance-in-csharp-inheritance-in-csharp) (Apprentice): A derived class names its base class after a colon. It inherits every member of the base class, but its code can use only the public and protected ones, never the private ones; and every class inherits from object in the end.
- [Inheritance in Java](https://www.ask-codey.com/lessons/introduction-to-inheritance-inheritance-in-java) (Apprentice): In Java, a child class inherits from a parent class with the extends keyword and then adds its own variables and methods.
- [Inheritance Review](https://www.ask-codey.com/lessons/abstraction-in-oop-inheritance-review) (Apprentice): A quick review of inheritance, using the Character and Archer classes, before we make a parent class abstract.
- [Inheritance Review](https://www.ask-codey.com/lessons/abstraction-in-csharp-inheritance-review) (Apprentice): A quick look back at inheritance in C#. A derived class names its base class after a colon, inherits its members, adds its own, and overrides the base class's virtual methods.
- [Inheritance with extends and super](https://www.ask-codey.com/lessons/javascript-classes-extends-and-super) (Journeyman): A class that extends another starts with everything the parent has, calls super to let the parent set up its part, and can add methods or override the parent's with its own version.
- [Inheritance: One Class Built on Another](https://www.ask-codey.com/lessons/python-classes-inheritance) (Journeyman): A subclass such as class Cactus(Plant) gets every attribute and method of the class it's built on, sets itself up with super().\_\_init\_\_(), replaces only the methods that work differently, and isinstance() tells which kind an object is.
- [Inheritance: What Children Get from Their Parents](https://www.ask-codey.com/lessons/css-inheritance) (Apprentice): Some properties, mostly text ones such as color and font, pass from an element to everything inside it, while box properties such as border and padding stay put, and a few keywords let you choose.
- [INNER JOIN](https://www.ask-codey.com/lessons/joining-tables-in-t-sql-inner-join) (Journeyman): INNER JOIN combines two tables on a matching column, keeping only rows that match. Table aliases keep it short, and the joined columns can be filtered, grouped and sorted like any others.
- [INNER JOIN](https://www.ask-codey.com/lessons/joining-tables-inner-join) (Journeyman): How an INNER JOIN combines two tables and returns only the rows that have a match in both.
- [Inner, Left, Right and Outer Joins](https://www.ask-codey.com/lessons/pandas-join-types) (Journeyman): A join has to decide what happens to rows that find no match, and merge's how= says which ones to keep (inner only the matches, left every row of the left table, right every row of the right one, outer every row of both), while indicator=True and a row count before and after show what the join did.
- [Input Types for Email, Numbers, Dates and More](https://www.ask-codey.com/lessons/html-forms-input-types) (Apprentice): One attribute, type, tells the browser what kind of answer an input is for, so a phone shows the right keyboard and the browser checks some answers for you.
- [Inserting Data](https://www.ask-codey.com/lessons/modifying-data-in-t-sql-inserting-data) (Apprentice): Add rows to a table with INSERT INTO, name the columns you fill, let identity columns number new rows, and respect the table's keys.
- [Inserting Data](https://www.ask-codey.com/lessons/modifying-data-inserting-data) (Apprentice): Add rows to a table with INSERT, for every column or only some, one row or several at once, without breaking a foreign key.
- [Insomnia: DELETE](https://www.ask-codey.com/lessons/restful-web-apis-insomnia-delete) (Journeyman): Before you write the DELETE method, save the request that deletes a category in Insomnia, with no body, decide what it should answer, and plan how to prove the category is gone.
- [Insomnia: DELETE](https://www.ask-codey.com/lessons/web-apis-with-controllers-insomnia-delete) (Journeyman): Before you build the DELETE action, write the requests that delete a category in Insomnia, with no body, and decide what each should answer, including a second send of the same request and a category the database won't let go.
- [Insomnia: GET](https://www.ask-codey.com/lessons/web-apis-with-controllers-insomnia-get) (Journeyman): Before you build the next GET actions, write the requests you want them to answer in an Insomnia collection, with your API's address in an environment, send them, and read what comes back.
- [Insomnia: GET](https://www.ask-codey.com/lessons/restful-web-apis-insomnia-get) (Journeyman): Before you write the GET method, save the request you want it to answer in an Insomnia collection, with your API's address in an environment, send it, and read what comes back.
- [Insomnia: POST](https://www.ask-codey.com/lessons/web-apis-with-controllers-insomnia-post) (Journeyman): Before you build the POST action, write the requests that add a category in Insomnia, each with a JSON body, send them, and learn why the answer today is 405 Method Not Allowed instead of 404.
- [Insomnia: POST](https://www.ask-codey.com/lessons/restful-web-apis-insomnia-post) (Journeyman): Before you write the POST method, save the request that adds a category in Insomnia, with a JSON body, send it, and learn why the answer today is 405 Method Not Allowed instead of 404.
- [Insomnia: PUT](https://www.ask-codey.com/lessons/restful-web-apis-insomnia-put) (Journeyman): Before you write the PUT method, save the request that changes a category in Insomnia, with the id in the address and the whole changed category in the body, and decide what it should answer.
- [Insomnia: PUT](https://www.ask-codey.com/lessons/web-apis-with-controllers-insomnia-put) (Journeyman): Before you build the PUT action, write the requests that change a category in Insomnia, with the id in the address and the whole changed category in the body, and decide what each one should answer.
- [Insomnia: Signing In and Sending a Token](https://www.ask-codey.com/lessons/securing-the-web-api-insomnia-sign-in-and-tokens) (Journeyman): Before you secure the categories API, save the requests a signed-in client sends in Insomnia, register, log in, and send the token from the login's answer as a Bearer token, and see that today the API lets anyone in.
- [Installing Apps and Modules: winget and the PowerShell Gallery](https://www.ask-codey.com/lessons/powershell-installing-tools) (Apprentice): winget finds, installs and updates Windows apps by name, and the PowerShell Gallery does the same for modules, PowerShell's add-on commands, with Find-PSResource and Install-PSResource; because anyone can publish a module, check who made one before you install it.
- [Installing the Angular CLI](https://www.ask-codey.com/lessons/creating-an-angular-app-installing-the-angular-cli) (Novice): Install the Angular CLI once with npm install -g @angular/cli, create an app with ng new, and run it with ng serve, which rebuilds and reloads the browser whenever you save. Add packages such as Bootstrap with npm install.
- [Installing the Machine Learning Toolkit](https://www.ask-codey.com/lessons/ml-installing-the-toolkit) (Apprentice): Machine learning in Python needs five packages that don't come with Python, NumPy, pandas, scikit-learn, matplotlib and ipykernel, installed into a project's virtual environment from a requirements.txt that pins each exact version, checked with sklearn.show_versions(), and used from a notebook to explore and a .py file for the code pytest checks.
- [Installing Tools: Homebrew and apt](https://www.ask-codey.com/lessons/bash-installing-tools) (Apprentice): A package manager is an app store you type to; on Ubuntu it's apt, which needs sudo to install, and on a Mac it's Homebrew's brew, which doesn't, and both search, install, update and remove tools by name.
- [IntelliJ IDEA](https://www.ask-codey.com/lessons/development-tools-intellij) (Novice): Find your way around IntelliJ IDEA 2026.2, from a project's folders to running a Java program and stepping through it with the debugger.
- [Interface Definition](https://www.ask-codey.com/lessons/what-is-an-interface-interface-definition) (Apprentice): The word "interface" is both a noun and a verb, and software uses both meanings.
- [Interface Segregation: Small Promises](https://www.ask-codey.com/lessons/dp-interface-segregation) (Journeyman): When one big promise makes every course answer for attendance, labs and a final exam, a course with no labs has to fake its answers, and the fakes end up on the lab report; the interface segregation principle says to make small promises, so each class keeps only what it can and each piece of code asks only for what it uses.
- [Interfaces: A Promise Any Class Can Keep](https://www.ask-codey.com/lessons/dp-interfaces) (Apprentice): When code is written for one class, every new kind of thing means a copy of that code; an interface writes down a promise (a name and a price for some hours) that any class can keep, so the code asks for the promise instead of the class, in C#, Java and TypeScript, with an abstract base class in Python and duck typing in JavaScript.
- [Interpreter: A Little Language for Rules](https://www.ask-codey.com/lessons/dp-interpreter) (Freelancer): When business rules change every week and live in code as one if per rule, every new rule waits for a developer; the Interpreter pattern turns each rule into a tree of small pieces (a check, an and, an or, a not) that each answer one question, so a new rule is data, not code.
- [Introducing the DOM: an overview](https://www.ask-codey.com/lessons/introducing-the-dom-an-overview) (Novice): When the browser loads a page, it turns the HTML into the DOM, a tree of objects with one for each element, and JavaScript reads and changes the page through that tree.
- [Introduction to ArrayList: an overview](https://www.ask-codey.com/lessons/introduction-to-arraylist-an-overview) (Apprentice): An ArrayList is a list that grows and shrinks for you, doing the copying and shifting you'd otherwise do by hand with an array.
- [Introduction to Arrays](https://www.ask-codey.com/lessons/arrays-introduction-to-arrays) (Novice): An array keeps several values of the same type together in one fixed-size container, like eggs in a carton.
- [Introduction to Arrays](https://www.ask-codey.com/lessons/arrays-in-csharp-introduction-to-arrays) (Novice): An array keeps many values of the same type together in one fixed-size container, like eggs in a carton.
- [Introduction to Functions: an overview](https://www.ask-codey.com/lessons/introduction-to-functions-an-overview) (Novice): When you keep repeating the same lines of code, you can turn them into a function, one reusable block you call by name.
- [Introduction to Inheritance in C#: an overview](https://www.ask-codey.com/lessons/introduction-to-inheritance-in-csharp-an-overview) (Apprentice): Inheritance lets one class build on another. An archer is a character, so Archer inherits everything Character has, and adds what only archers have.
- [Introduction to Inheritance: an overview](https://www.ask-codey.com/lessons/introduction-to-inheritance-an-overview) (Apprentice): Inheritance is an is-a relationship, where a child class such as Archer gets all the variables and methods of its parent class, Character, and adds its own.
- [Introduction to List&lt;T>](https://www.ask-codey.com/lessons/lists-in-csharp-introduction-to-list-t) (Apprentice): A List&lt;T> holds values of one type and grows and shrinks for you; the T says which type, like int or string.
- [Introduction to Methods: an overview](https://www.ask-codey.com/lessons/introduction-to-methods-an-overview) (Novice): A method is a named block of reusable code; you've been calling them since your first program.
- [IP Addresses and Ports](https://www.ask-codey.com/lessons/network-communication-in-csharp-ip-addresses-and-ports) (Novice): An IP address finds the computer, and a port finds the program on it. Meet localhost, the ports the web uses, and the ports your own apps listen on.
- [Is Adding a Song Slow? Amortized Cost](https://www.ask-codey.com/lessons/ds-amortized-cost) (Journeyman): One add to a growing playlist just copied 1,024 songs. Work out what adding really costs over a long run of adds, why doubling beats growing a little at a time, and what "amortized O(1)" promises.
- [Is It Healthy? Memory, Load and Uptime](https://www.ask-codey.com/lessons/bash-system-health) (Journeyman): uptime says how long a computer has been running and how busy it is, which you compare with the number of CPUs nproc prints; free -h says how much memory is still available and df -h how much disk is left; and a short script puts them all on one screen.
- [Is It Really Slow? Measure Your Own Code](https://www.ask-codey.com/lessons/big-o-measure-your-code) (Apprentice): Time real code with your language's stopwatch at growing sizes, run it several times and keep the fastest, then read the growth rate from how the times change when the data doubles.
- [Is It the Network? ping, curl -I and Ports](https://www.ask-codey.com/lessons/bash-network-checks) (Journeyman): When a website or server doesn't answer, four quick checks find the broken link: ping asks whether the computer answers, curl -I whether the website does, ss or lsof which program is listening on a port, and dig which address a name points to.
- [Is It the Network? Test-Connection and Friends](https://www.ask-codey.com/lessons/powershell-network-checks) (Journeyman): When one computer can't reach another, four questions in order find where it breaks, each with its own command, Get-NetIPAddress for whether this PC has an address, Resolve-DnsName for whether the name turns into an address, Test-Connection for whether the computer answers, and Test-NetConnection -Port for whether the program's door is open.
- [Is It There? Test-Path](https://www.ask-codey.com/lessons/powershell-test-path) (Apprentice): Test-Path answers one question, is this file or folder there, with True or False, and it can also say whether a path is a file or a folder and whether any file matches a wildcard, so you can check before you act.
- [Is That Song in My Library? Linear Search](https://www.ask-codey.com/lessons/ds-linear-search) (Apprentice): Answer "is this song in my library, and where?" for a list kept in the order the songs were added: the search every list supports, what it costs, and the size at which it stops being fast enough.
- [Iterator](https://www.ask-codey.com/lessons/design-patterns-iterator) (Journeyman): The Iterator pattern lets code walk through a collection without knowing how it's stored. In C#, foreach works on anything that implements IEnumerable&lt;T>, which hands out an IEnumerator&lt;T> with MoveNext and Current. Write one by hand to see how it works, then let yield return write it for you.
- [Iterator: Next Stop, Please](https://www.ask-codey.com/lessons/dp-iterator) (Journeyman): When every piece of code that walks a route has its own loop over how the route is stored, changing the storage breaks all of them; an iterator hands out the stops one at a time, so callers ask for the next stop and never learn whether it came from a list, zones or a server.
- [Java Array Basics](https://www.ask-codey.com/lessons/arrays-java-array-basics) (Novice): Create a Java array, fill it with values, and read each value by its index, which starts at 0.
- [Java Maven Project](https://www.ask-codey.com/lessons/java-projects-java-maven-project) (Novice): Create a Maven project in IntelliJ IDEA, find your way around its folders, and write and run your first Java class.
- [Java vs JavaScript: an overview](https://www.ask-codey.com/lessons/java-vs-javascript-an-overview) (Novice): Where JavaScript came from, why it is not a lighter Java, and why its versions are named after ECMAScript, such as ES6.
- [JavaScript on a Web Page](https://www.ask-codey.com/lessons/javascript-first-programs-on-a-web-page) (Novice): Load a JavaScript file into a ready-made web page with a script tag, open the page with Live Preview, and use the browser's Console to see what the script prints, read its errors and try a line of JavaScript.
- [JDBC Objects](https://www.ask-codey.com/lessons/querying-a-database-jdbc-objects) (Journeyman): Meet the three objects that query MySQL from Java: a BasicDataSource to connect, a JdbcTemplate to run SQL, and a SqlRowSet to read the rows that come back.
- [Joining Multiple Tables](https://www.ask-codey.com/lessons/joining-tables-in-t-sql-joining-multiple-tables) (Journeyman): Joins chain: each JOIN adds one more table, linked by its key to a table already in the query. A many-to-many link goes through its associative table, and a table can even join to itself.
- [Joining Multiple Tables](https://www.ask-codey.com/lessons/joining-multiple-tables) (Journeyman): How to join three or more tables in one query by following the keys that link them, from customers to the categories of the products they ordered.
- [Joining Tables](https://www.ask-codey.com/lessons/fastapi-sql-joins) (Journeyman): A JOIN puts two related tables back together in one query, matching each product to its vendor with ON and naming columns from both tables through short aliases, and a LEFT JOIN keeps the vendors that have no products yet, with None where a product would be.
- [Joining Tables in T-SQL: an overview](https://www.ask-codey.com/lessons/joining-tables-in-t-sql-an-overview) (Apprentice): A join puts related rows from two tables side by side, matched on their key columns. An inner join keeps only matches; an outer join also keeps the rows with no match.
- [Joining Tables with merge](https://www.ask-codey.com/lessons/pandas-merge) (Apprentice): merge lines up the rows of two tables by a key column they share, the job a spreadsheet's VLOOKUP does, with on= when the key has the same name in both, left_on and right_on when it doesn't, and suffixes to tell apart other columns the two tables share.
- [Joining Tables: an overview](https://www.ask-codey.com/lessons/joining-tables-an-overview) (Apprentice): The two kinds of join, inner and outer, and the small chores database (person and task) used to compare them.
- [JSON Files: Saving Your Data](https://www.ask-codey.com/lessons/python-files-json) (Apprentice): JSON is a text format for data that json.dump and json.load turn Python's dictionaries and lists into and back from, through a file, while json.dumps and json.loads do the same with a string, which is how web APIs send their answers.
- [JSON Web Tokens](https://www.ask-codey.com/lessons/security-basics-json-web-tokens) (Journeyman): A JSON Web Token is a signed note an API gives you at sign-in: header, payload and signature, joined with dots. Anyone can read the payload, but nobody can change it without the key, so the API can trust the claims in it, such as who you are and your role, until it expires.
- [JSON with jq](https://www.ask-codey.com/lessons/bash-jq) (Journeyman): jq reads JSON, the labeled data that web APIs and cloud tools answer with: dots follow the labels in, .\[\] goes through every item in a list, select keeps the items you want, and -r prints plain lines a bash loop can read.
- [JSON: ConvertFrom-Json and ConvertTo-Json](https://www.ask-codey.com/lessons/powershell-json) (Journeyman): JSON is the text format most apps keep their settings in and most websites send their data in, and PowerShell reads it into an object with ConvertFrom-Json, lets you change a value with a dot and an equals sign, and writes it back with ConvertTo-Json, whose -Depth says how many levels of boxes inside boxes it keeps.
- [JSON: Data You Can Save and Send](https://www.ask-codey.com/lessons/javascript-json-stringify-and-parse) (Apprentice): JSON is the text format the web uses to save and send data, and JSON.stringify and JSON.parse turn your objects and arrays into JSON text and back, as long as the text follows JSON's strict rules.
- [Jump to Song 500: Arrays](https://www.ask-codey.com/lessons/ds-arrays) (Apprentice): Find out why a music app jumps to song 500 in one step however long the playlist is, while adding a song at the top gets slower as the playlist grows, and meet the structure behind both: the array.
- [Jumping Around: cd -, pushd and \*\*](https://www.ask-codey.com/lessons/bash-jumping-around) (Journeyman): cd - switches between two folders, pushd and popd keep a stack of folders to come back to, \*\* reaches into every folder below once globstar is on, and CDPATH lets cd find a project's folders from anywhere.
- [JUnit Testing Framework](https://www.ask-codey.com/lessons/unit-testing-junit-testing-framework) (Apprentice): JUnit gives you a ready-made test runner, and you write one test class for each class you want to test.
- [Justify Content](https://www.ask-codey.com/lessons/flexbox-justify-content) (Apprentice): The justify-content property on a flex container decides where the extra space goes, so its items can sit at the start, the end, the center or spread out.
- [Keeping Database Code in One Place](https://www.ask-codey.com/lessons/node-mongodb-repository-module) (Journeyman): A repository module is the one file in an API that talks to MongoDB, with functions such as create and get that give back plain objects whose id is text, so the routes never need to know how the data is stored.
- [Keeping Documents Small: the Subset and Computed Patterns](https://www.ask-codey.com/lessons/mongodb-subset-and-computed-patterns) (Journeyman): A product page shows its five newest reviews from a short copy kept in the product (the subset pattern), and its average rating from a count and a total that each new review adds to with $inc (the computed pattern), so the page never reads or recounts every review.
- [Keeping Pages Safe: XSS and innerHTML](https://www.ask-codey.com/lessons/javascript-security-xss-and-innerhtml) (Journeyman): When a page puts someone else's text into innerHTML, that text can become code that runs in every visitor's browser, so you show it with textContent and createElement instead, and you keep secrets off the front end altogether.
- [Keeping Secrets Out of Your Code](https://www.ask-codey.com/lessons/fastapi-security-secrets) (Journeyman): A secret typed into the code goes wherever the code goes, GitHub included, so an API reads its secrets from environment variables, keeps them in a .env file that .gitignore leaves out, commits a .env.example instead, stops at startup when one is missing, and rotates any secret that was ever pushed.
- [Keeping Secrets Out of Your Code](https://www.ask-codey.com/lessons/node-security-secrets) (Journeyman): An API's secrets, such as the key that signs its tokens and its database password, live in environment variables loaded from a .env file that Git never sees, with a committed .env.example naming them, a check at startup that each one is set, and a new secret at once if one ever reaches GitHub.
- [Keeping the Data Code in One Place](https://www.ask-codey.com/lessons/fastapi-data-module) (Journeyman): A data module is the one file in an API that holds every SQL statement, with functions that take a connection and give back plain values (an id, a dictionary, a list, or None for a row that isn't there), so the routes call it and never write SQL themselves.
- [Keeping Up with HTML](https://www.ask-codey.com/lessons/html-keeping-up-with-html) (Journeyman): HTML grows a little every few months, so learn where its rules are written, how MDN and Baseline tell you whether a feature works in every browser, and how to use a new feature without leaving anyone behind.
- [Keyboard Shortcuts at the Prompt](https://www.ask-codey.com/lessons/bash-keyboard-shortcuts) (Apprentice): Ctrl+A and Ctrl+E jump to the start and end of the command line, Alt+B and Alt+F move a word at a time, Ctrl+W and Ctrl+U delete a word or the line, and Alt+. brings back the last command's last argument.
- [Keyboard Shortcuts at the Prompt](https://www.ask-codey.com/lessons/powershell-keyboard-shortcuts) (Apprentice): Home and End jump to either end of the command line, Ctrl+Left and Ctrl+Right move a word at a time, Ctrl+Backspace deletes a word, Ctrl+Z undoes an edit, Esc clears the line, and Ctrl+Space shows every choice that fits where you're typing.
- [Keyboard Use and Focus](https://www.ask-codey.com/lessons/html-accessibility-keyboard-and-focus) (Journeyman): Everything on a page should work with the keyboard alone, and it does when you use real links, buttons and form fields in a sensible order, add a skip link, and keep the focus ring visible.
- [Keyboard Users and Accessible Controls](https://www.ask-codey.com/lessons/javascript-events-keyboard-and-accessibility) (Journeyman): Build controls that work for people who use a keyboard or a screen reader, with real buttons, aria-pressed and aria-expanded that match what the page shows, and an Escape key that closes what's open and puts focus back.
- [Keyframe Animations](https://www.ask-codey.com/lessons/css-keyframe-animations) (Journeyman): A keyframe animation describes motion as a few key moments in a @keyframes rule and plays it with the animation property, so a spinner turns, a title slides in and a Start button pulses with no reader action needed.
- [Kinds of Machine Learning](https://www.ask-codey.com/lessons/ml-kinds-of-machine-learning) (Apprentice): Supervised learning learns from examples that come with answers, regression when the answer is a number and classification when it's a category, while unsupervised learning finds groups in examples with no answers, and reinforcement learning, learning by trial and reward, is outside this course.
- [k-means with scikit-learn](https://www.ask-codey.com/lessons/ml-k-means-with-scikit-learn) (Journeyman): scikit-learn's KMeans runs the whole k-means loop, with fit_predict giving each example a group number and cluster_centers\_ holding the centers, but its distances weigh features by their units, so the features are scaled first in a pipeline, several starts are run (n_init) with a fixed random_state, and the result suits round groups of similar spread.
- [Lambda Expressions](https://www.ask-codey.com/lessons/linq-lambda-expressions) (Apprentice): A lambda expression is a small method with no name, written where it's used, such as name => name.Length > 4. Pass one to a method like FindAll, RemoveAll or Sort, and that method runs it on each item.
- [Layers: Models, Services, Controllers](https://www.ask-codey.com/lessons/dependency-injection-layers-models-services-controllers) (Journeyman): Apps are split into layers (controllers, services, data access and models), each with one job, each handed the layer below it through its constructor.
- [Layouts and \_ViewStart](https://www.ask-codey.com/lessons/razor-views-layouts-and-viewstart) (Apprentice): A layout holds the frame every page shares (the head, the menu, the footer) and @RenderBody() marks where each view goes. \_ViewStart picks the layout, and \_ViewImports holds what every view needs.
- [Leaks in Preparing the Data](https://www.ask-codey.com/lessons/ml-leakage-in-preprocessing) (Freelancer): A preparation step fit on the whole table before the split, a scaler, an imputer or a step that chooses columns, learns from the rows it will be tested on, which barely moved StreamBox's score for a scaler but turned a worse model into one that looked better when columns were chosen against the label, and putting every step that learns in a pipeline that cross-validation fits inside each fold closes the leak.
- [Leaky Features and Duplicate Rows](https://www.ask-codey.com/lessons/ml-leaky-features-and-duplicates) (Freelancer): Asking "when is this known?" of every column finds the ones filled in only after the outcome, and a table that lists the same subscriber twice puts them on both sides of a row-by-row split, where a tree recognized them and scored 0.843 instead of an honest 0.814, so leaky columns are dropped and the rows are split by subscriber with GroupKFold or GroupShuffleSplit.
- [Learning Without Labels](https://www.ask-codey.com/lessons/ml-unsupervised-learning) (Apprentice): When the data has no answer column to learn from, a model can still find groups of examples that are more like each other than like the rest, which is called clustering, a kind of unsupervised learning, and a cluster is a pattern in the numbers you chose, not a fact about the people behind them.
- [Lessons, Check Yourself, Exercises and Quizzes](https://www.ask-codey.com/lessons/how-this-course-works) (Novice): How a self-study course on ask-codey.com works, from reading a lesson to mastering a skill and passing a module assessment.
- [Let the Shell Type for You: Tab](https://www.ask-codey.com/lessons/bash-tab-completion) (Novice): Press Tab and the shell finishes a file or folder name for you, press it twice to see every name that fits, and let it type the backslashes that a name with spaces needs.
- [Light and Dark Themes with prefers-color-scheme](https://www.ask-codey.com/lessons/css-dark-mode) (Journeyman): A dark theme is the same page with new token values: you redefine the color tokens in a prefers-color-scheme media query, set color-scheme, and every component follows the reader's light or dark setting.
- [Line by Line: while read](https://www.ask-codey.com/lessons/bash-while-read) (Journeyman): while IFS= read -r line reads a file one whole line at a time, spaces and backslashes kept, and while and until repeat commands for as long as a condition is true, or until it becomes true.
- [Line Charts: Change Over Time](https://www.ask-codey.com/lessons/data-line-charts) (Apprentice): A line chart shows how a value changed over time, so dates go along the x-axis, a marker shows each measurement, fig.autofmt_xdate() keeps the dates readable, and two lines on one Axes, each with a label= and ax.legend(), compare two groups over the same months.
- [Link Previews with Open Graph](https://www.ask-codey.com/lessons/html-metadata-link-previews) (Journeyman): Open Graph tags in a page's head decide the card a chat app or social site shows when someone pastes your link, with its title, description and picture.
- [Linking to Other Pages](https://www.ask-codey.com/lessons/basic-routing-in-angular-linking-to-other-pages) (Apprentice): A plain href makes the browser reload the whole app. routerLink lets the router change the page instead, routerLinkActive marks the link of the page you're on, and Router's navigate goes to another page from code, such as after saving.
- [Links Between Your Own Pages](https://www.ask-codey.com/lessons/html-links-between-your-own-pages) (Apprentice): A relative path gives directions from the page you are on to another page of your own site, into a folder or back up with ../, so your links keep working wherever the site lives.
- [Links to Other Sites](https://www.ask-codey.com/lessons/html-links-to-other-sites) (Novice): The a element with an href attribute turns words into a link to any page on the web, and good link text tells people where the link goes before they follow it.
- [Links Within a Page, Email and Phone Links](https://www.ask-codey.com/lessons/html-links-within-a-page) (Apprentice): An id marks a spot on a page and a link to the hash sign and that id jumps straight to it, while mailto and tel links start an email or a phone call.
- [Linting and Formatting with Ruff](https://www.ask-codey.com/lessons/python-ruff-lint-and-format) (Journeyman): Ruff is a linter and a formatter in one tool. ruff check finds likely mistakes such as unused imports and misspelled names before the code runs, and ruff format lays out every file the same way, with its settings in pyproject.toml and its checks in VS Code as you type.
- [Liskov Substitution: No Surprises from a Stand-In](https://www.ask-codey.com/lessons/dp-liskov-substitution) (Journeyman): When a pass/fail course is written as a kind of course and then throws when asked for a letter grade, every report card with art on it stops; the Liskov substitution principle says a subclass must keep every promise its parent makes, so it can stand in anywhere the parent is expected, with no surprises.
- [Lists](https://www.ask-codey.com/lessons/types-of-collections-lists) (Apprentice): Lists keep items in order. An ArrayList is fast at reading by position, and a LinkedList is fast at adding and inserting.
- [Lists and Lookups: Arrays and Hashtables](https://www.ask-codey.com/lessons/powershell-arrays-and-hashtables) (Journeyman): An array keeps several values in order, made with commas or @( ) and read by position from \[0\], and a hashtable, made with @{ }, keeps values under names so you can look one up by its name, the way you'd find a word in a dictionary.
- [Lists as Containers: Strip the Defaults, Style the Items](https://www.ask-codey.com/lessons/css-lists-as-containers) (Apprentice): Many lists shouldn't look like lists at all, so you strip one list's bullets, indent and margins with three declarations on its class, then style each li as a box, such as a card or a menu row with a link that fills it.
- [Lists Hold Collections: ul, ol and What the Browser Adds](https://www.ask-codey.com/lessons/css-lists-hold-collections) (Apprentice): Menus, pet cards, tags and steps are collections of similar things, and writing them as a ul or an ol tells a screen reader how many there are, while the browser adds bullets, an indent and margins you can find in the developer tools.
- [Lists Side by Side, by Hand](https://www.ask-codey.com/lessons/css-lists-side-by-side) (Apprentice): A menu across the top of a page and a row of tag pills are lists whose items sit side by side, and display inline-block does it by hand, with the gap the HTML's spaces add, vertical-align and text-align to line the row up, and wrapping that comes free.
- [Lists: Keeping Things in Order](https://www.ask-codey.com/lessons/python-lists) (Novice): A list keeps many values in order under one name, so you can read any item by its index, counting from 0 at the front or from -1 at the back, add, insert and remove items, and check whether a value is there with in.
- [Loading a CSV File](https://www.ask-codey.com/lessons/pandas-read-csv) (Apprentice): pd.read_csv loads a CSV file into a DataFrame, usecols and nrows load only the columns and rows you need, sep reads a file whose values are split by semicolons, and a FileNotFoundError means the path doesn't lead from the folder the notebook runs in to the file.
- [Loading an Excel Workbook](https://www.ask-codey.com/lessons/pandas-read-excel) (Apprentice): pd.read_excel loads a sheet of an Excel workbook into a DataFrame with openpyxl doing the reading, sheet_name picks the sheet by its name, skiprows steps over title rows above the table, and sheet_name=None loads every sheet at once as a dictionary of DataFrames.
- [Loading JSON, Flat and Nested](https://www.ask-codey.com/lessons/pandas-read-json) (Apprentice): pd.read_json loads a JSON list of records into a DataFrame, lines=True reads JSON Lines with one record on each line, and pd.json_normalize with record_path and meta turns a nested list, such as each vendor's reviews, into one row for each item.
- [Loading Scripts: defer, async and Modules](https://www.ask-codey.com/lessons/html-loading-scripts-defer-and-async) (Journeyman): Load a script without holding up the page, and choose defer, async or type="module" by what the script needs.
- [Loading, Empty and Error States](https://www.ask-codey.com/lessons/javascript-fetch-loading-and-error-states) (Journeyman): A page that loads data has four states, loading, success, empty and error, and it should say which one it's in, so people never stare at a blank screen or a page that quietly broke.
- [Local Variables and Getting a Value Back](https://www.ask-codey.com/lessons/bash-function-return-values) (Journeyman): local keeps a function's variables to itself, so it can't change the script's by accident; a function hands back a result by printing it with echo, which the caller catches with $( ), and answers yes or no with return, which if can test.
- [Locating DOM elements](https://www.ask-codey.com/lessons/introducing-the-dom-locating-dom-elements) (Apprentice): Most searches start at the document, the whole page, where getElementById finds an element by its id, querySelector finds the first match for a CSS selector, and querySelectorAll finds every match.
- [Logging an API](https://www.ask-codey.com/lessons/fastapi-pro-logging) (Journeyman): A server's code reports what it does through Python's logging module instead of print, with a logger per module, levels from DEBUG to ERROR, a format with the time and level, one line for every request written by a middleware, and a logging.Filter that keeps passwords and tokens out of every line.
- [Logging Exceptions in C#: an overview](https://www.ask-codey.com/lessons/logging-exceptions-in-csharp-an-overview) (Journeyman): A log is a file of time-stamped lines recording what an app did and what went wrong, so you can find out later. Apps log to plain text files because they're fast, simple, and keep working when everything else fails.
- [Logging Exceptions: an overview](https://www.ask-codey.com/lessons/logging-exceptions-an-overview) (Journeyman): Why applications usually write logs to text files rather than a database, before we build a simple logger.
- [Logging In to Another Computer: ssh](https://www.ask-codey.com/lessons/bash-ssh) (Journeyman): ssh user@host opens a shell on another computer right in your own terminal, asks the first time whether that computer is really the one you meant by showing its fingerprint, and exit brings you home; you can practice for free on your own computer with ssh localhost.
- [Logging with pino](https://www.ask-codey.com/lessons/node-pro-logging-with-pino) (Journeyman): A server's logs are how you find out what happened after it happened, so pino writes each event as one JSON line with a level, pino-http adds a line for every request, redact hides tokens and passwords, and pino-pretty makes the lines readable while you develop.
- [Login and Register in Angular](https://www.ask-codey.com/lessons/security-in-angular-login-and-register-in-angular) (Journeyman): An Auth service sends the credentials to the API, keeps the signed-in user in a signal and the token in localStorage, and signs out by forgetting both. Sign-in and register pages show the API's errors, and the header shows who's signed in. Hiding buttons is for convenience; the API is what keeps data safe.
- [Logistic Regression](https://www.ask-codey.com/lessons/ml-logistic-regression) (Journeyman): Logistic regression adds up a weighted score for each example, as a linear regression does, then bends it with an S-shaped curve into a probability between 0 and 1, which makes it a classifier despite its name, with C setting how simple scikit-learn keeps it and max_iter how long it may search.
- [Long to Wide with pivot](https://www.ask-codey.com/lessons/pandas-pivot) (Journeyman): pivot turns a long table back into a wide one, with index naming the rows, columns naming the column headers and values filling the cells, stops with an error when two rows would land in the same cell, and pivot_table, which combines those rows instead, is the right choice only when combining them is what you meant.
- [Look Inside Any Page with Developer Tools](https://www.ask-codey.com/lessons/css-developer-tools) (Novice): Open the browser's developer tools on any page, find every CSS rule applied to an element, read what a crossed-out line means, and try a change live before you copy it into your stylesheet.
- [Look-Alikes: Strategy, State and Command](https://www.ask-codey.com/lessons/dp-strategy-state-command) (Journeyman): Strategy, State and Command have the same class diagram: a promise, a few classes that keep it, and an object that holds one; what tells them apart is who picks the object, whether it changes itself, and whether it can be stored and undone, and picking the wrong one puts a decision in the wrong place.
- [Looking Around in Compass](https://www.ask-codey.com/lessons/mongodb-looking-around-in-compass) (Novice): Connect Compass to mongodb://localhost:27017, find the sunday_kitchen database and its recipes in the sidebar, see the documents as a list, as JSON and as a table, filter them, fix a typo in one, and choose between Compass and mongosh.
- [Looking Around: Get-ChildItem](https://www.ask-codey.com/lessons/powershell-looking-around) (Novice): Get-ChildItem lists what's inside a folder, with a row for each folder and file that shows what kind of thing it is, when it last changed, its size and its name, and -Force shows the hidden ones too.
- [Looking Around: ls](https://www.ask-codey.com/lessons/bash-looking-around) (Novice): ls lists what's in a folder, ls -a adds the hidden names that start with a dot, and ls -l shows each one's details, such as whether it's a folder, its size and when it last changed.
- [Looping Through a List](https://www.ask-codey.com/lessons/python-lists-looping-and-built-ins) (Apprentice): A for loop runs the same lines once for each item in a list, enumerate() numbers the items as it goes, sum(), min() and max() total and compare a list's numbers, and sorted() hands back a sorted copy while .sort() sorts the list itself.
- [Looping Through an Array](https://www.ask-codey.com/lessons/javascript-arrays-looping) (Apprentice): Visit every item of an array with a for loop, a for...of loop or forEach, and use a loop to add up or count things, such as a playlist's total play time.
- [Looping Through Dictionaries and Nested Data](https://www.ask-codey.com/lessons/python-dictionaries-nested-data) (Apprentice): A for loop goes through a dictionary's keys, items(), keys() and values() give its pairs, its keys or its values, and lists of dictionaries and dictionaries of lists hold whole tables of data, the shape CSV files and web APIs give you.
- [Loops and Methods, Five Ways](https://www.ask-codey.com/lessons/ds-code-you-need-loops-and-methods) (Novice): A quick review of the loops and methods this course uses, in all five languages, with a snack stand as the example: a for loop, a while loop, a for-each loop, and a method that takes values and returns one.
- [Losing this, and How Arrow Functions Help](https://www.ask-codey.com/lessons/javascript-this-arrow-functions-and-this) (Journeyman): When you hand a method to other code as a callback, it loses the object before the dot and this goes missing, and an arrow function or bind gives it back.
- [Making Categories Match: replace and map](https://www.ask-codey.com/lessons/pandas-making-categories-match) (Apprentice): value_counts shows every spelling a column holds, replace with a dictionary fixes the few misspellings you name and leaves every other value alone, map turns every spelling into one standard value and leaves missing whatever it doesn't know, which you count before moving on, and the category type stores a column with a fixed list of values.
- [Making Decisions with if and else](https://www.ask-codey.com/lessons/javascript-conditions-if-and-else) (Novice): An if statement runs a block of code only when its condition is true, else gives the other path, and else if chooses between several, so your program can react to what's going on.
- [Making Decisions with if, elif and else](https://www.ask-codey.com/lessons/python-if-elif-else) (Novice): An if statement runs its indented block only when its condition is True, elif tries the next condition when the ones above it were False, and else catches every case that's left, so a program takes the right path for each situation.
- [Making Folders and Files: mkdir and touch](https://www.ask-codey.com/lessons/bash-making-folders-and-files) (Novice): mkdir makes folders, several at once or a whole path of them with -p, and touch makes an empty file, so one line sets up a tidy place for your files.
- [Making Folders and Files: New-Item](https://www.ask-codey.com/lessons/powershell-new-item) (Novice): New-Item makes new folders and files where you say, several at once or a whole path of folders in one go, -Value puts text into a new file, and -Force means "it's fine if it's already there" for a folder but "replace it" for a file.
- [Manipulating the DOM Structure](https://www.ask-codey.com/lessons/working-with-elements-manipulating-the-dom-structure) (Apprentice): createElement makes a new element, appendChild puts it inside a parent so it shows on the page, and remove takes an element off the page.
- [Many Choices: \`switch\`](https://www.ask-codey.com/lessons/powershell-switch) (Apprentice): switch compares one value with a list of choices and runs the block of each one that matches, with default for anything else; -Wildcard and -Regex match patterns instead of exact text, and a switch on a Read-Host answer makes a simple menu.
- [Many Files as One: Compress-Archive and Expand-Archive](https://www.ask-codey.com/lessons/powershell-zip-files) (Apprentice): Compress-Archive packs a folder or a few files into one zip file you can send or keep, and Expand-Archive unpacks a zip into a folder, replacing nothing that's already there unless you ask it to.
- [Many Files as One: tar and zip](https://www.ask-codey.com/lessons/bash-archives) (Apprentice): An archive packs a whole folder into one file you can send, back up or download; tar -czf makes a .tar.gz, tar -tzf lists one, tar -xzf unpacks it, and zip makes the .zip files any computer opens.
- [Many-to-Many](https://www.ask-codey.com/lessons/database-relationships-many-to-many) (Journeyman): Why two tables can't link many-to-many directly, and how an associative (junction) table between them turns it into two one-to-many relationships.
- [map and filter](https://www.ask-codey.com/lessons/javascript-array-methods-map-and-filter) (Apprentice): map turns every item of an array into something new, filter keeps only the items that pass a test, and chained together they turn raw data into exactly the list a screen needs.
- [Mapping Data to Models](https://www.ask-codey.com/lessons/mapping-data-to-models) (Journeyman): Turn each row of a query result into a Category object and collect them in an ArrayList.
- [Mapping Data to Models: an overview](https://www.ask-codey.com/lessons/mapping-data-to-models-in-csharp-an-overview) (Journeyman): Instead of using each row the moment it's read, copy it into a model object, so the program can keep and reuse the data after the reader is gone.
- [Mapping Data to Models: an overview](https://www.ask-codey.com/lessons/mapping-data-to-models-an-overview) (Journeyman): Storing query results in model objects lets your program reuse the data without querying the database again.
- [Mapping Rows to Models](https://www.ask-codey.com/lessons/mapping-data-to-models-in-csharp-mapping-rows-to-models) (Journeyman): Read each row of a query into a new model object, handle NULL columns, and collect the objects in a List&lt;T>.
- [Maps](https://www.ask-codey.com/lessons/types-of-collections-maps) (Apprentice): Maps store values under unique keys. HashMap is fastest, LinkedHashMap keeps the order you added entries, and TreeMap sorts by key.
- [Margin, Padding and Border in Practice](https://www.ask-codey.com/lessons/css-margin-padding-border) (Apprentice): Write padding and margin in one line with the clockwise shorthands, frame a box with border and border-radius, center it with auto margins, and know why two margins can turn into one.
- [Measuring Results Group by Group](https://www.ask-codey.com/lessons/ml-fairness-by-group) (Freelancer): One score for everyone hides how a model treats each group, so you split the test rows by group, count each group's own confusion matrix, and compare three rates, the selection rate, the true positive rate and the false positive rate, whose gaps are what Fairlearn's demographic parity and equalized odds ask to be zero.
- [Media Queries and Breakpoints](https://www.ask-codey.com/lessons/css-media-queries) (Journeyman): A media query applies CSS only when a condition is true, such as a screen at least 40rem wide, a dark theme or a mouse that can hover, and breakpoints go where your content needs them.
- [Mediator: The Hub in the Middle](https://www.ask-codey.com/lessons/dp-mediator) (Journeyman): When the front door has to turn off the alarm, turn on the hallway light and stop the music itself, every device knows several others and every new rule means opening a device's class; a Mediator lets each device tell the hub what happened, and only the hub knows who reacts.
- [Meet pandas: A Table You Can Program](https://www.ask-codey.com/lessons/pandas-meet-pandas) (Apprentice): pandas is the Python library for tables, imported as pd, and pd.DataFrame turns a list of dictionaries or a dictionary of lists into a DataFrame, so a question such as sales by store takes one line instead of a loop.
- [Meet the Bakery App: Plan It, Build It](https://www.ask-codey.com/lessons/dp-bakery-version-1) (Apprentice): The first pass starts with a small app that works: a neighborhood bakery's ordering app, planned as a class diagram, built as version 1 in five languages, and then asked the question every pass starts with: what's likely to change?
- [Meet the Library API: Plan It, Build It](https://www.ask-codey.com/lessons/dp-library-version-1) (Journeyman): The fourth pass starts with a community library's checkout service, planned as a class diagram and built as version 1 in five languages, and then asked the question every pass starts with: what's likely to change? The answer shows why a class that builds its own storage and reads the real clock will hurt.
- [Meet the Package Tracker: Plan It, Build It](https://www.ask-codey.com/lessons/dp-tracker-version-1) (Apprentice): The second pass starts with Lakeside Parcel's package tracker: what it does, its class diagram and the sequence diagram of its main call, version 1 in five languages, and the list of what's likely to change, which turns into this pass's problems.
- [Meet the Smart-Home Hub: Plan It, Build It](https://www.ask-codey.com/lessons/dp-hub-version-1) (Journeyman): The third pass starts with a smart-home hub that works with one brand of light, behind one front door the phone app and the wall panel call; then two more brands arrive whose code is shaped nothing like the first, and the plan has to keep other companies' code at the edge.
- [Memento: Movie Night, Then Back to Normal](https://www.ask-codey.com/lessons/dp-memento) (Journeyman): When movie night saves each light's brightness itself, by reading the light's fields, then puts them back, it breaks the day the lights gain a color setting; a Memento lets each light make a snapshot of its own state and restore from it, while movie night only holds the snapshots.
- [Menus and Choices: case and select](https://www.ask-codey.com/lessons/bash-case-and-select) (Apprentice): case matches one value against a list of patterns and runs the lines for the first match, which suits a script's options and yes-or-no answers, and select turns a list of words into a numbered menu.
- [Methods and this](https://www.ask-codey.com/lessons/javascript-this-methods-and-this) (Apprentice): A method is a function that belongs to an object, and inside it the word this means the object before the dot, so one method can work on whichever object calls it.
- [Methods on a Class](https://www.ask-codey.com/lessons/properties-in-csharp-methods-on-a-class) (Apprentice): Write instance methods that use and change an object's state safely, keep its rules inside the class, and know when a method should be static.
- [Methods That Take Any Number of Values: params](https://www.ask-codey.com/lessons/params-in-csharp) (Apprentice): Write a method that takes any number of values with params, and call it with several values, with none, or with an array you already have.
- [Middleware: Code That Runs on Every Request](https://www.ask-codey.com/lessons/node-express-middleware) (Journeyman): Middleware is a function with (req, res, next) that Express runs on a request before the routes, in the order you add it, so a log line, a timer or a body reader is written once instead of in every route.
- [Middleware: The Airport Checkpoints](https://www.ask-codey.com/lessons/dp-middleware) (Journeyman): When every endpoint starts by copying the same checks (log the request, make sure someone's signed in), one endpoint forgets one, and every new check is an edit to all of them; middleware gives each check its own small step in a line every request passes through, so each step handles the request or passes it on, which is Pass 3's Chain of Responsibility at work in every web framework.
- [Missing Fields, null and $exists](https://www.ask-codey.com/lessons/mongodb-missing-fields-null-and-exists) (Apprentice): Documents in one collection don't all have the same fields; a filter for null matches a missing field too, $exists asks whether the field is there at all, and $type finds values stored as the wrong kind.
- [Missing Values in a Model](https://www.ask-codey.com/lessons/ml-missing-values-in-a-model) (Journeyman): Most scikit-learn models stop with an error when a feature holds NaN, and dropping those rows throws away examples and leaves a new pet with a blank unscorable, so SimpleImputer fills each blank with a value learned from the training data (the median for numbers, the most frequent value for categories), and add_indicator=True keeps a column saying which values were missing.
- [Missing Values: null, undefined, ?. and ??](https://www.ask-codey.com/lessons/javascript-tricky-values-null-and-undefined) (Apprentice): Real data has holes, so learn the difference between undefined and null, read a property that might be missing with ?., and give a missing value a default with ?? instead of ||.
- [Mobile First: Start Small, Then Add Room](https://www.ask-codey.com/lessons/css-mobile-first) (Journeyman): Mobile-first CSS writes the phone layout as the base styles and uses min-width media queries to add columns as the screen grows, which takes less CSS than shrinking a desktop layout down.
- [Mobile-First Layouts with Bootstrap](https://www.ask-codey.com/lessons/partial-views-in-mvc-mobile-first-layouts-with-bootstrap) (Journeyman): Build pages that work on a phone first, then widen. Bootstrap's row-cols classes, cards, a collapsing navbar and pagination turn a Razor loop into a responsive product grid.
- [Model Binding a Form](https://www.ask-codey.com/lessons/mvc-forms-model-binding-a-form) (Journeyman): ASP.NET Core fills an action's parameters, even a whole Product, from the request by matching names. asp-for writes inputs whose names match the model, and ModelState says when a value didn't fit.
- [Model Binding and Validation: an overview](https://www.ask-codey.com/lessons/model-binding-and-validation-an-overview) (Apprentice): Never trust what a form sends. Validate on the server every time, and in the browser too for quick feedback; ASP.NET Core does both from one set of rules on the model.
- [Model Cards](https://www.ask-codey.com/lessons/ml-model-cards) (Journeyman): A model card is a short document that travels with a trained model and says what it's for, what it must not be used for, what data it learned from, how well it does overall and for each group, its limits, and when it was trained, as Mitchell and colleagues proposed in Model Cards for Model Reporting (2019).
- [Model for the Questions Your App Asks](https://www.ask-codey.com/lessons/mongodb-model-for-your-queries) (Apprentice): Before deciding what goes in each document, list the app's screens and the question each one asks the database, then shape the documents so each common question is one short query.
- [Model Review](https://www.ask-codey.com/lessons/mapping-data-to-models-model-review) (Journeyman): A Category model class has a private field, a getter and a setter for each column of the categories table.
- [Model Review](https://www.ask-codey.com/lessons/mapping-data-to-models-in-csharp-model-review) (Journeyman): Write a model class with one property for each column, choosing C# types that match the SQL types, and nullable types for columns that allow NULL.
- [Modern Selectors: :is(), :where() and :has()](https://www.ask-codey.com/lessons/css-is-where-has) (Journeyman): The :is() and :where() pseudo-classes shorten long selector lists, :where() with no specificity at all, and :has() styles an element by what it contains, so a page can react to a click with no JavaScript.
- [Modules: import and export](https://www.ask-codey.com/lessons/javascript-modules-import-and-export) (Apprentice): A module is a file that shares only what it exports; another file imports it by name (a named export) or under a name it picks (the default export), and a package.json in Node or type="module" on a page makes it run.
- [Mongoose: Schemas, Models and When Projects Use It](https://www.ask-codey.com/lessons/node-mongoose-schemas-and-models) (Journeyman): Mongoose is a library built on the MongoDB driver that adds a schema, a model with create, find and findById, and validation before every save, and a project's package.json and model files tell you whether it uses Mongoose or the driver, which is what this course's own code uses.
- [Mongoose: What It Adds and What It Hides](https://www.ask-codey.com/lessons/mongodb-mongoose-what-it-adds) (Journeyman): Mongoose is a Node.js library on top of the MongoDB driver that adds schemas, models, checks before every save, defaults and populate, and it also changes your data and runs queries without saying so, so this lesson shows both sides.
- [More MySQL Functions](https://www.ask-codey.com/lessons/more-mysql-functions) (Apprentice): The MySQL functions a developer reaches for every week, grouped by job. Clean up and take apart text, round numbers, work with dates, and handle NULL and empty text.
- [More Than One Feature](https://www.ask-codey.com/lessons/ml-several-features) (Journeyman): A linear regression with several features learns one coefficient for each, read as the change in the guess for one more unit of that feature with the others held the same; a coefficient's size isn't its importance when the units differ, and features that move together, such as bedrooms and size, share the credit.
- [More T-SQL Functions](https://www.ask-codey.com/lessons/more-t-sql-functions) (Apprentice): The T-SQL functions a developer reaches for every week, grouped by job. Clean up and take apart text, round numbers, move and format dates, and keep NULL from surprising you.
- [More Update Operators: $inc, $push, $pull and $addToSet](https://www.ask-codey.com/lessons/mongodb-update-operators) (Apprentice): $inc lets the database do the counting so no count is lost, $currentDate stamps when a change happened, $push and $pull add to and remove from a list, and $addToSet adds an item only when it isn't there yet.
- [Most Played, Then A to Z: Stable and Built-In Sorts](https://www.ask-codey.com/lessons/ds-built-in-sort) (Journeyman): List songs by artist, then by title, with your language's built-in sort, and keep songs that tie in the order the user chose: why sorting twice scrambles them in C#, and the promise a sort has to make to keep that order, stability.
- [Motion That Respects the Reader: prefers-reduced-motion](https://www.ask-codey.com/lessons/css-reduced-motion) (Journeyman): Motion can make some people dizzy or sick, so a prefers-reduced-motion media query stops the loops and calms the movement for every reader who asks for less, while keeping the motion that helps.
- [Moving Around: cd, .. and ~](https://www.ask-codey.com/lessons/bash-moving-around) (Novice): cd moves the terminal into another folder, by a folder's name, up one level with .., home with ~ or anywhere with a full path, and cd - takes you back to where you just were.
- [Moving Around: Set-Location, .. and Tab](https://www.ask-codey.com/lessons/powershell-moving-around) (Novice): Set-Location moves PowerShell into another folder, by a relative path from where you are or an absolute one from the drive, and .., ~ and Tab completion make every move shorter.
- [Moving the Threshold](https://www.ask-codey.com/lessons/ml-thresholds-and-tradeoffs) (Freelancer): Lowering a classifier's threshold below 0.5 flags more payments, so recall goes up and precision usually goes down, precision_recall_curve and PrecisionRecallDisplay show the whole trade, and you choose the threshold from what each mistake costs, on validation data set aside for choosing, then score the test data once.
- [Multiple Conditions](https://www.ask-codey.com/lessons/conditional-logic-in-csharp-multiple-conditions) (Apprentice): Combine conditions with && (and), || (or) and ! (not), and group them with parentheses so they mean what you intend.
- [Multiple Conditions](https://www.ask-codey.com/lessons/conditional-logic-multiple-conditions) (Apprentice): Combine conditions with && (and) and || (or), and use parentheses to group them so the if means what you intend.
- [MVC Partials with fetch: an overview](https://www.ask-codey.com/lessons/mvc-partials-with-fetch-an-overview) (Journeyman): An MVC page can reload just one part of itself. JavaScript fetches the new part's HTML from an action that returns a partial view, and swaps it in. That's the MVC way to do what an API and JSON do for a JavaScript-built page.
- [MVC: Model, View, Controller](https://www.ask-codey.com/lessons/dp-mvc) (Journeyman): When one function reads the library's data, applies its rules and draws the page, every new screen copies all three jobs and the copies drift apart; MVC splits them into a model (the data and the rules), views (how it's shown) and a controller (what a request does), so a new screen is a new view and a rule lives in one place.
- [MVVM and Components](https://www.ask-codey.com/lessons/dp-mvvm-and-components) (Journeyman): When a screen's code has to update every label by hand after each change, one change sooner or later forgets one and the screen shows something untrue; MVVM puts the screen's state and rules in a view model that tells the view when it changes, so the view, bound to it, redraws itself, and a component in Angular or React bundles a view with its view model.
- [MySQL Workbench](https://www.ask-codey.com/lessons/using-mysql-mysql-workbench) (Novice): Connect to your local MySQL server with MySQL Workbench, load the northwind, sakila and world sample databases, and browse their tables.
- [Naming Things: BEM and Component Classes](https://www.ask-codey.com/lessons/css-bem-naming) (Journeyman): BEM names every class after the component it belongs to, as block\_\_element--modifier, so selectors stay flat and low-scoring and anyone on a team can find, change and reuse a component's styles.
- [Nearest Neighbors](https://www.ask-codey.com/lessons/ml-nearest-neighbors) (Journeyman): A nearest neighbors classifier guesses a new example's class by finding the k training examples closest to it and letting them vote, with KNeighborsClassifier(n_neighbors=5) storing the training rows instead of learning a rule, a small k following every quirk, a large k blurring the classes together, and a tied vote, which in the lesson's run went to the class listed first.
- [Network Communication in C#: an overview](https://www.ask-codey.com/lessons/network-communication-in-csharp-an-overview) (Novice): Programs talk to each other by sending messages over a network, even when both run on the same computer. Your C# app already does this with SQL Server; a browser does it with a web app.
- [New Columns from Old: Math, np.where and cut](https://www.ask-codey.com/lessons/pandas-calculated-columns) (Journeyman): Math between columns makes a new column for every row at once, np.where picks one of two values for each row from a True or False column, pd.cut sorts numbers into labeled bands such as budget, mid and premium, and apply runs a function of your own on every value, more slowly than whole-column math.
- [Node's Built-In Modules, and the require You'll Still See](https://www.ask-codey.com/lessons/node-modules-built-in-and-commonjs) (Apprentice): Node comes with built-in modules for files, file names, the computer and everyday helpers, imported with node in front of their names, and older code shares modules with require and module.exports, which you can read and rewrite as import and export.
- [Non-Form Events](https://www.ask-codey.com/lessons/common-events-non-form-events) (Apprentice): Any element on a page can respond to the mouse, such as a click or a press of a mouse button, so even a plain div or table row can react to the user.
- [Normal Flow and the display Property](https://www.ask-codey.com/lessons/css-normal-flow-and-display) (Apprentice): Before you move anything, the browser already lays out every page by the same rules, blocks stacking like bricks and inline boxes flowing like words, and the display and overflow properties let you change how a box takes part.
- [Normalization](https://www.ask-codey.com/lessons/foundations-of-database-design-normalization) (Journeyman): Normalization splits data into tables so each fact is stored once. Spot the problems repeated data causes, and apply the first three normal forms.
- [Notebooks: Code, Results and Notes Together](https://www.ask-codey.com/lessons/data-notebooks-what-and-why) (Novice): A notebook is a file of cells, code cells and Markdown cells, that keeps each cell's result saved under it, like a scientist's lab notebook; an .ipynb file holds all of it as JSON, notebooks suit exploring and showing data, and a .py file suits code you reuse and test.
- [npm and Packages](https://www.ask-codey.com/lessons/javascript-tooling-npm-and-packages) (Journeyman): npm is an app store for code that comes with Node.js; you'll describe a project in package.json, install packages into node_modules, tell dependencies from devDependencies, and run the project's commands as npm scripts.
- [Null Object: A Safe Stand-In for Nothing](https://www.ask-codey.com/lessons/dp-null-object) (Journeyman): When a room has no speaker, every routine that plays something has to check for null first, and the one that forgets crashes the morning; a Null Object gives the room a speaker that safely does nothing, so the routines need no checks at all.
- [Nullable Reference Types](https://www.ask-codey.com/lessons/nullable-types-in-csharp-nullable-reference-types) (Apprentice): Mark the strings, arrays and objects that may be null as string? or Player?, read the compiler's null warnings as crashes it sees coming, and answer each with a null check, a default, ?. or ??, keeping ! for the rare last resort.
- [Nullable Value Types](https://www.ask-codey.com/lessons/nullable-types-in-csharp-nullable-value-types) (Apprentice): Store "no value yet" in an int?, decimal? or bool?, check it with HasValue or null before you read it, and write an optional parameter that a call can leave out.
- [Numbers and Math](https://www.ask-codey.com/lessons/python-numbers-and-math) (Novice): Python has whole numbers (int) and decimal numbers (float), seven math operators that follow the order of operations, and round() for the tiny errors decimals carry, which is how a program gets money right to the cent.
- [Numbers and Math](https://www.ask-codey.com/lessons/javascript-numbers-and-math) (Novice): Work out totals, remainders and powers with JavaScript's arithmetic operators, in the order JavaScript does, and round money so it shows as dollars and cents.
- [Numbers, Dates and Types](https://www.ask-codey.com/lessons/powershell-types) (Apprentice): Every value in PowerShell has a type, such as a whole number, text or a date; \[int\], \[decimal\] and \[datetime\] turn text into the type you need, and subtracting dates, AddDays and Get-Date -Format answer questions such as how many days are left until a trip.
- [NumPy: The Engine Under pandas](https://www.ask-codey.com/lessons/data-numpy-under-pandas) (Journeyman): NumPy's array holds many values of one type and does math on all of them at once, a vectorized operation that a Python list can't do; every pandas column keeps its values in an array (to_numpy hands it over), np.mean gives NaN when a value is missing where pandas skips it, and one type per column is what makes the math fast.
- [Object Diagrams: A Snapshot of Real Objects](https://www.ask-codey.com/lessons/dp-object-diagrams) (Apprentice): A class diagram says what can exist; an object diagram shows what does exist at one moment, such as this Saturday's three rentals with their real values, so you can see links the class diagram only allows and catch the ones it forbids.
- [Object Pool and Lazy Loading: Make It Once, Share It, or Make It Late](https://www.ask-codey.com/lessons/dp-object-pool-and-lazy-loading) (Journeyman): When something slow to make is made for every request, or something big is made at the start and hardly used, the app slows down or runs out; an object pool makes a few and lends them out and back, and lazy loading makes a thing the first time it's needed, then keeps it.
- [Objects from a Database: an overview](https://www.ask-codey.com/lessons/objects-from-a-database-an-overview) (Journeyman): Most Java applications work with data from a database, so many of their classes model a table, with one object for each row.
- [Objects of Your Own: \`\[PSCustomObject\]\`](https://www.ask-codey.com/lessons/powershell-custom-objects) (Journeyman): \[PSCustomObject\]@{ } builds an object of your own with named properties, so a tool you write hands back results that Sort-Object, Where-Object and Export-Csv can work with, the way they work with PowerShell's own commands, instead of lines of text.
- [Observables and RxJS Basics](https://www.ask-codey.com/lessons/calling-apis-from-angular-observables-and-rxjs-basics) (Journeyman): An observable is a stream of values that arrive over time. Nothing happens until you subscribe, with handlers for the values, an error and the end. HttpClient's observables send one value, the response, then complete. RxJS operators in pipe, such as map, transform the values.
- [Observer the Modern Way: Events and Listeners](https://www.ask-codey.com/lessons/dp-observer-modern) (Journeyman): When every device writes Pass 1's listener list again by hand, and a closed phone screen keeps hearing every change because nothing takes it off the list, it's time for each language's own tools: C#'s event, JavaScript's EventTarget, and a subscribe that hands back a way to unsubscribe.
- [Observer: Tell Whoever's Listening](https://www.ask-codey.com/lessons/dp-observer) (Apprentice): When the code that places an order has to call the kitchen screen, the customer's text and next month the delivery app by name, it grows with every new listener; the Observer pattern lets the order keep a list of whoever wants to know, and tell each of them, without knowing who they are.
- [One Error Shape for the Whole API](https://www.ask-codey.com/lessons/fastapi-errors-one-shape) (Journeyman): Every error an API sends can have one JSON shape, modeled on RFC 9457's problem details (a status, a title, a detail sentence and, on a 422, a list of field problems), built by one problem() function and sent by an exception handler for each kind of error, FastAPI's own 404 and 422 included, with a catch-all that answers a crash with a calm 500 and never a traceback.
- [One New Score on a Sorted Leaderboard: Insertion Sort](https://www.ask-codey.com/lessons/ds-insertion-sort) (Apprentice): Keep a 10,000-player leaderboard in order as a new score arrives every few seconds, without sorting it all again: why re-sorting falls short, and the sort built on one slide, insertion sort, which is also fast on any list that's almost in order.
- [One Row in a Billion: B-Trees and Database Indexes](https://www.ask-codey.com/lessons/ds-b-trees) (Freelancer): Find one customer by email among a billion rows in a few disk reads, not minutes: why reading every row and a binary search tree are both too slow on disk, and the structure inside nearly every database index, the B-tree.
- [One Script, Several Files: source](https://www.ask-codey.com/lessons/bash-script-libraries) (Journeyman): A library is a file of functions that several scripts share: each script loads it with source, and finds it from any folder with here=$(dirname "${BASH_SOURCE\[0\]}"), the folder the script itself is saved in.
- [One Song in a Million, in 20 Looks: Binary Search](https://www.ask-codey.com/lessons/ds-binary-search) (Apprentice): Find one song among a million in about 20 looks, on every keystroke: why checking every song, jumping to the first letter and skipping ahead by 1,000 all fall short, and the search that fixes them, binary search, written so it's right at the edges.
- [One-to-Many](https://www.ask-codey.com/lessons/database-relationships-one-to-many) (Apprentice): How a one-to-many relationship links many child rows to one parent row through a foreign key, like a customer and their orders.
- [One-to-One](https://www.ask-codey.com/lessons/database-relationships-one-to-one) (Apprentice): How a one-to-one relationship uses the child table's primary key as its foreign key, and why you would move rarely used data into its own table.
- [Open/Closed: Add, Don't Edit](https://www.ask-codey.com/lessons/dp-open-closed) (Apprentice): When every new grading scale means editing the grade function that the whole school trusts, each new scale risks breaking the old ones; the open/closed principle says to leave working code closed to edits and open to additions, so a new scale is a new class that keeps a promise, and the grade code never changes.
- [Options and Flags: getopts and --help](https://www.ask-codey.com/lessons/bash-options-with-getopts) (Journeyman): getopts reads a script's one-letter options in any order, flags and options with a value alike, and a real tool also answers --help with a help page and --version with its version number.
- [Ordered and Unordered Lists](https://www.ask-codey.com/lessons/html-ordered-and-unordered-lists) (Novice): HTML has two everyday lists, an unordered list for items whose order doesn't matter and an ordered list for steps and rankings, with each item in its own list item.
- [Organizing code into functions](https://www.ask-codey.com/lessons/introduction-to-functions-organizing-code-into-functions) (Apprentice): Learn the four parts of a function (name, parameters, return type and body), and how to call one and keep the value it returns.
- [Organizing Code into Methods](https://www.ask-codey.com/lessons/introduction-to-methods-organizing-code-into-methods) (Apprentice): Write your own C# methods with parameters and return values, call them with arguments, and keep each one to a single job.
- [Organizing Routes with APIRouter](https://www.ask-codey.com/lessons/fastapi-routers) (Journeyman): APIRouter moves each resource's routes into its own file in a routers package, with a prefix that starts every path and a tag that groups them on the docs page, and app.include_router wires each one in, so main.py only puts the app together.
- [Organizing Routes with express.Router](https://www.ask-codey.com/lessons/node-express-routers) (Journeyman): An express.Router holds one resource's routes in a file of its own, app.use("/games", gamesRouter) puts them under their path, and app.js exports the app while server.js starts it, so tests can use the app without a port.
- [OS and Terminal Tools (macOS): an overview](https://www.ask-codey.com/lessons/os-and-terminal-tools-an-overview) (Novice): Meet the two Mac tools you will use every day to work with files, Finder and the Terminal, and the nine Setup exercises that install your tools.
- [OS and Terminal Tools (Windows): an overview](https://www.ask-codey.com/lessons/os-and-terminal-tools-windows-an-overview) (Novice): Meet the Windows tools you will use every day as a developer: File Explorer, Windows Terminal, Git Bash, and winget.
- [OUTER JOIN](https://www.ask-codey.com/lessons/joining-tables-in-t-sql-outer-join) (Journeyman): LEFT JOIN keeps every row of the first table, matched or not; RIGHT JOIN keeps every row of the second; FULL OUTER JOIN keeps both. Rows with no match get NULL, which also lets you find what's missing.
- [OUTER JOIN](https://www.ask-codey.com/lessons/joining-tables-outer-join) (Journeyman): How LEFT, RIGHT and FULL outer joins keep unmatched rows from one or both tables, and how to get a full join in MySQL, which has no FULL OUTER JOIN.
- [Overfitting and Underfitting](https://www.ask-codey.com/lessons/ml-overfitting-and-underfitting) (Journeyman): A model that memorizes its training rows scores almost perfectly on them and much worse on rows it never saw (overfitting), a model too simple for the pattern scores low on both (underfitting), and putting the training score beside the test score is how you tell them apart.
- [Overriding Methods](https://www.ask-codey.com/lessons/introduction-to-inheritance-in-csharp-overriding-methods) (Journeyman): A base class marks a method virtual so derived classes may change it; a derived class replaces it with override, and can still run the base version with base.MethodName().
- [Overriding Methods](https://www.ask-codey.com/lessons/introduction-to-inheritance-overriding-methods) (Journeyman): Override an inherited method with @Override and call super to keep the parent's logic while adding your own.
- [Package Versions, npm ci and npm audit](https://www.ask-codey.com/lessons/node-npm-versions-and-lock-file) (Apprentice): A version range in package.json says which versions a project accepts, package-lock.json pins the exact ones installed, npm ci installs exactly those, and npm outdated, npm audit and npx check a project for updates, check it for security problems and run a package's command.
- [Pages and Downloads: \`Invoke-WebRequest\`](https://www.ask-codey.com/lessons/powershell-invoke-webrequest) (Journeyman): Invoke-WebRequest gives you the whole answer from a web address, not only its data, so you can read the status code that says whether a page is there, read the headers that describe it, and save what it sends as a file with -OutFile.
- [Paragraphs, Line Breaks and Special Characters](https://www.ask-codey.com/lessons/html-paragraphs-and-special-characters) (Novice): Paragraphs hold a page's words, the browser squeezes extra spaces and line breaks into one space, and character references let you show characters that HTML would otherwise misread.
- [Parameters and Mapping to Models](https://www.ask-codey.com/lessons/dapper-parameters-and-mapping-to-models) (Journeyman): Pass parameters as an anonymous object or a model, with property names that match the @ names; lists become IN lists. Columns map to properties by name, so alias any column that doesn't match.
- [Parameters and Return Values](https://www.ask-codey.com/lessons/javascript-functions-parameters-and-return) (Novice): Parameters let a function take in different values each time you call it, and return hands a result back to the code that called it.
- [Parameters and Return Values](https://www.ask-codey.com/lessons/python-functions-parameters-and-return) (Novice): Parameters let a function work on whatever values each call hands it, and return hands a result back to the code that called it, which is different from printing it and gives None when a function returns nothing.
- [Parameters, Values and Switches](https://www.ask-codey.com/lessons/powershell-parameters) (Novice): A parameter tells a command more about what you want, written as a dash and a name with a value after it, or as a switch with no value, and Tab and Ctrl+Space show you every parameter a command has.
- [Parameters: \`param()\`](https://www.ask-codey.com/lessons/powershell-param) (Apprentice): A param() block at the top of a script names its inputs, so one script works on any folder; each parameter can have a type, a default value or be a \[switch\], Mandatory makes PowerShell ask for a missing one, and Tab completes their names.
- [Parsing Dates with to_datetime](https://www.ask-codey.com/lessons/pandas-to-datetime) (Apprentice): Dates read from a file are text that sorts and compares wrongly, so pd.to_datetime turns them into real dates, format= says how they were written instead of letting pandas guess, '03/04/2026' is March 4 or April 3 depending on dayfirst, errors='coerce' turns a date that can't exist into NaT for you to list, and parse_dates= does it while loading.
- [Partial Views](https://www.ask-codey.com/lessons/partial-views-in-mvc-partial-views) (Journeyman): A partial view is a piece of a page in its own .cshtml file, named with an underscore and shared by many views. Render it with the partial tag helper, passing it a model.
- [Parts of a Date: .dt](https://www.ask-codey.com/lessons/pandas-dt-accessor) (Apprentice): Once a column holds dates, .dt gives its parts for every row at once, such as year, month, day_name(), hour and date, so you can count by weekday or hour, and subtracting two dates gives a Timedelta, the gap between them, whose .dt.days counts whole days.
- [Passing a Model to a View](https://www.ask-codey.com/lessons/razor-views-passing-a-model-to-a-view) (Journeyman): An action hands its view a model with View(model); the view names the model's type with @model and reads it through Model. ViewData carries small extras, such as the page title.
- [Passing Data with input()](https://www.ask-codey.com/lessons/component-communication-in-angular-passing-data-with-input) (Apprentice): A component declares what it can be given with input(), or input.required() for what it must be given. A parent passes the data with a property binding on the component's tag, and the child reads it like a signal.
- [Passing Values to a Method: by Value and by Reference](https://www.ask-codey.com/lessons/introduction-to-methods-passing-by-value-and-by-reference) (Apprentice): Learn what a method can and can't change in the code that calls it, passing by value, with ref and out, and passing an array.
- [Path Parameters and Their Types](https://www.ask-codey.com/lessons/fastapi-path-parameters) (Apprentice): A path parameter such as {game_id} lets one FastAPI route answer every address of its shape, its type hint turns the text from the address into a number, FastAPI answers 422 when it can't, and a fixed path such as /games/today goes above the path parameter that would catch it.
- [PATH: How a Command Is Found](https://www.ask-codey.com/lessons/bash-path) (Apprentice): When you type a command's name, the shell looks for a program file of that name in each folder of PATH, in order, so "command not found" means none of them has it, and adding a folder to PATH lets you run its programs by name from anywhere.
- [Paths and Folders](https://www.ask-codey.com/lessons/node-files-paths-and-folders) (Apprentice): A relative path starts from the terminal's folder, not the script's, so a Node program finds its own files with path.join and import.meta.dirname, and lists and makes folders with readdir and mkdir.
- [Paths and Folders with pathlib](https://www.ask-codey.com/lessons/python-automation-paths-with-pathlib) (Apprentice): A Path from Python's pathlib module holds a file's or folder's address in parts, so a script can join paths with /, read a file's name and extension, list and find the files in a folder, and make folders, the same way on Windows and on a Mac.
- [Pattern Fever: When a Pattern Makes Code Worse](https://www.ask-codey.com/lessons/dp-pattern-fever) (Journeyman): A pattern is a fix for a problem, so a pattern with no problem to fix (a factory for a factory, a strategy with one choice, an interface with one class that will never have another) is pure cost: more classes and more jumps for no change made easier; the cure is the simplest thing that works, and the pattern comes back when its problem does.
- [Patterns in Code Reviews and Interviews](https://www.ask-codey.com/lessons/dp-patterns-in-reviews-and-interviews) (Journeyman): Naming a pattern in a code review helps only when it comes with the problem and is said kindly, and naming one in an interview counts only when it comes with a real story; this lesson shows how to do both, so the names you've learned make you easier to work with.
- [Patterns: Regular Expressions for grep](https://www.ask-codey.com/lessons/bash-regular-expressions) (Journeyman): A regular expression describes the shape of the text you want instead of the exact words, so grep can find every phone number or every date in a file; this lesson builds patterns from . and \[ \], ^ and $, \* and, with grep -E, + and |.
- [Patterns: Regular Expressions with -match](https://www.ask-codey.com/lessons/powershell-regular-expressions) (Journeyman): A regular expression describes the shape of the text you want, such as two letters, a dash and some digits, and -match tests text against it, $Matches holds what it found, and Select-String uses the same patterns across many files.
- [Performance Basics: Measure First](https://www.ask-codey.com/lessons/node-pro-performance-basics) (Freelancer): Before making an API faster, measure it, with a timing middleware for one request and autocannon for many at once, because the usual causes of a slow route are CPU work that blocks the event loop, a query with no index, or a list with no paging, and only numbers show which one it is.
- [Permissions: Read, Write and Run](https://www.ask-codey.com/lessons/bash-permissions) (Apprentice): Every file says who may read it, change it and run it, for its owner, its group and everyone else; ls -l shows it as letters such as rwxr-xr-x, chmod +x lets a program run, and chmod 644 or 600 sets all nine at once with numbers.
- [Permutation Importance](https://www.ask-codey.com/lessons/ml-permutation-importance) (Freelancer): To see which features any fitted model leans on, shuffle one column of held-out data so its link to the label is broken, score the model again, and take the difference, which scikit-learn's permutation_importance repeats n_repeats times with a random_state, giving a fairer answer than a tree's built-in feature_importances\_, though features that move together can each look less important than they are.
- [Picking Columns: Select-Object](https://www.ask-codey.com/lessons/powershell-select-object) (Apprentice): Select-Object keeps only the properties you name with -Property, only the first or last few objects with -First and -Last, and with -ExpandProperty hands you one property's plain values, ready to save as a list.
- [Picking Rows and Columns: loc and iloc](https://www.ask-codey.com/lessons/pandas-loc-and-iloc) (Apprentice): Square brackets pick columns by name, set_index makes a column such as sku the row labels, loc picks rows and columns by those labels (a label slice includes its end), and iloc picks them by position, counting from 0 (a position slice stops before its end).
- [Pictures from CSS: Background Images](https://www.ask-codey.com/lessons/css-background-images) (Novice): background-image puts a decorative picture behind an element's content, on top of its background-color, and background-repeat, background-size and background-position decide whether it tiles, how big it is and where it sits.
- [Pin It Down: Tests for Code You Didn't Write](https://www.ask-codey.com/lessons/dp-characterization-tests) (Journeyman): Before changing old code that has no tests, write tests that record what it does today, right or wrong, so any change that alters its behavior shows up at once; these characterization tests pin the code down, surprises included, and the surprises become questions for the people who know the business.
- [Pipelines: Every Step, Every Time](https://www.ask-codey.com/lessons/ml-pipelines) (Journeyman): A pipeline chains the preparation steps and the model into one object, so make_pipeline(SimpleImputer(), StandardScaler(), LogisticRegression()) fits every step on the data it's given with one fit, repeats the same steps with one predict, names each step for named_steps, and refits every step inside each fold when it's handed to cross_val_score.
- [Pipes: |](https://www.ask-codey.com/lessons/bash-pipes) (Apprentice): The pipe, |, hands everything one command prints to the next command as its input, so small commands that each do one job join into a pipeline that answers a question none of them can answer alone.
- [Pivot Tables and crosstab](https://www.ask-codey.com/lessons/pandas-pivot-table) (Journeyman): pivot_table turns a summary of two columns into a grid, one value down the side (index) and one across the top (columns), with the cells worked out from values by aggfunc; fill_value puts 0 in an empty cell, margins adds the totals, and crosstab counts every combination of two columns, as row percentages with normalize='index'.
- [Placeholders, and Why SQL Is Never Built from Strings](https://www.ask-codey.com/lessons/fastapi-sql-placeholders-and-injection) (Journeyman): SQL built with an f-string lets whatever a person types become part of the query, so a name such as x' OR '1'='1 turns one search into "every row", which is SQL injection, and ? or :name placeholders stop it by sending each value separately from the SQL.
- [Placing Items: Lines, Spans and Named Areas](https://www.ask-codey.com/lessons/css-grid-placement-and-areas) (Journeyman): Put any grid item exactly where you want it, by the numbered lines around its cells or by drawing the whole page as named areas, so a featured photo can fill four cells and a sidebar can sit beside the main content.
- [Planning Unit Tests](https://www.ask-codey.com/lessons/unit-testing-with-mstest-planning-unit-tests) (Apprentice): Plan tests from the requirements, as a table of scenarios. Each scenario changes one thing, and the edges (at a limit, just inside it, just past it) find the most bugs.
- [Planning Unit Tests](https://www.ask-codey.com/lessons/unit-testing-planning-unit-tests) (Apprentice): Plan unit tests from the requirements as a list of scenarios, each with its pre-conditions, inputs, expected output and expected property values.
- [Polymorphism in C#: an overview](https://www.ask-codey.com/lessons/polymorphism-in-csharp-an-overview) (Apprentice): Polymorphism means "many forms". An object can be seen in more than one way, and code can work with whichever way it needs.
- [Polymorphism with Base Classes](https://www.ask-codey.com/lessons/polymorphism-in-csharp-polymorphism-with-base-classes) (Journeyman): A base class variable or list can hold any derived object, and calling a virtual method runs each object's own override. Use is to reach a derived class's own members.
- [Polymorphism with Interfaces](https://www.ask-codey.com/lessons/interfaces-in-csharp-polymorphism-with-interfaces) (Freelancer): An interface can be a variable's, parameter's or list's type, so it can hold objects of unrelated classes that keep the same contract. Depending on an interface, such as IClock, lets a test pass any fake that implements it.
- [Polymorphism with Interfaces](https://www.ask-codey.com/lessons/what-is-polymorphism-polymorphism-with-interfaces) (Freelancer): Using an interface as a variable's type lets you treat an object as just one of its roles, such as treating a Teenager as a Student or a team as a list of Athletes.
- [Polymorphism: One Call, Many Behaviors](https://www.ask-codey.com/lessons/dp-polymorphism) (Apprentice): When the desk checks what kind of vehicle it has before it can price it, every new vehicle means another check, and a forgotten one prices it at $0; polymorphism moves each price into its own class, so one call, rental.price(hours), does the right thing for a bike, an e-bike and a scooter.
- [Popovers and Dialogs](https://www.ask-codey.com/lessons/html-popovers-and-dialogs) (Journeyman): A popover is a note that pops up over the page from a button and closes with Esc or a click outside, and a modal dialog is a box that blocks the page until the visitor closes it, both with no JavaScript.
- [Positioning: fixed and sticky](https://www.ask-codey.com/lessons/css-position-fixed-and-sticky) (Apprentice): Keep a "chat with us" button on screen with position fixed, keep a header or a table's headings in reach with position sticky, and choose the right one of the five position values for any part of a page.
- [Positioning: relative and absolute](https://www.ask-codey.com/lessons/css-position-relative-and-absolute) (Apprentice): Nudge an element from its normal place with position relative, and pin one to a corner of its parent with position absolute, the pattern behind every badge, close button and photo caption on the web.
- [POST](https://www.ask-codey.com/lessons/restful-web-apis-post) (Journeyman): Handle a POST request with @PostMapping and @RequestBody, insert the new category with a JdbcTemplate and return it with its generated id and a 201 status.
- [POST](https://www.ask-codey.com/lessons/web-apis-with-controllers-post) (Journeyman): POST creates a new item from the JSON in the request body. The DAO inserts it and returns it with its new id, and the action answers 201 Created with CreatedAtAction, which also says where the new item lives. Invalid bodies get 400 automatically.
- [PowerShell Remoting: Invoke-Command and Enter-PSSession](https://www.ask-codey.com/lessons/powershell-remoting) (Freelancer): Invoke-Command carries a script block to one computer or many at once and brings each answer back with a PSComputerName, Enter-PSSession moves your prompt onto another computer until Exit-PSSession, and both travel over WinRM between Windows PCs at work, or over SSH with -HostName at home and on a Mac or Linux.
- [PowerShell, Windows PowerShell and the Terminal](https://www.ask-codey.com/lessons/powershell-shell-terminal-prompt) (Novice): The terminal is the window, the shell is the program that runs your commands, and the prompt is where it waits for you; Windows has two PowerShells, and $PSVersionTable tells you which one you're in.
- [Practice: Creating Functions](https://www.ask-codey.com/lessons/introduction-to-functions-practice-creating-functions) (Apprentice): Replace the copied team-score code with one displayTeamScores function that takes each team's rank, name and scores as parameters.
- [Practice: Creating Methods](https://www.ask-codey.com/lessons/introduction-to-methods-practice-creating-methods) (Apprentice): Replace the football program's copied blocks with one method that takes each team's scores as parameters.
- [Practice: The need for functions](https://www.ask-codey.com/lessons/introduction-to-functions-practice-the-need-for-functions) (Novice): Print the scores of five football teams by copying and pasting the same code, and see why repeated code is a problem.
- [Practice: The Need for Methods](https://www.ask-codey.com/lessons/introduction-to-methods-practice-the-need-for-methods) (Novice): Plan a program that prints college football scores in pseudo-code, extend it by copying and pasting its code, and see the problems copying causes.
- [Precision and Recall](https://www.ask-codey.com/lessons/ml-precision-and-recall) (Journeyman): Precision asks how many of the payments a fraud check flagged were really fraud, TP divided by TP plus FP, and recall asks how much of the fraud it caught, TP divided by TP plus FN, and which one matters more depends on what each kind of mistake costs, worked out by hand or with precision_score and recall_score.
- [Predictions and History, Fully Used](https://www.ask-codey.com/lessons/powershell-predictions) (Journeyman): Set-PSReadLineOption makes the prediction list your standard view and lets PSReadLine remember 10000 commands instead of 4096, # and Tab bring back a command from this window by a word or its number, and Select-String finds every match in the saved history file at once.
- [Prefer Composition to Inheritance](https://www.ask-codey.com/lessons/dp-prefer-composition) (Apprentice): When every combination of options becomes its own subclass, the classes multiply until a burrito with extra cheese and no onion needs a class of its own; building an item from parts it holds (composition) instead of from a family tree of subclasses (inheritance) turns each new option into one new part.
- [Print the Chart, Count the Teams: Walking a Tree in the Right Order](https://www.ask-codey.com/lessons/ds-tree-traversals) (Journeyman): Show one org chart three ways (printed with each team indented, with each manager's head count, and one level at a time) by visiting every person in the order each job needs: the four traversals, and which job each one is for.
- [Private Fields, Getters and Setters](https://www.ask-codey.com/lessons/javascript-classes-private-fields-getters-setters) (Journeyman): A private field keeps an object's data out of reach of other code, a getter lets that code read it, a setter checks a new value before storing it, and static members belong to the class itself.
- [Probabilities and the 0.5 Line](https://www.ask-codey.com/lessons/ml-predicted-probabilities) (Journeyman): predict_proba gives each example one probability per class, in the order of classes\_, predict picks the class with the highest one, which for two classes is a line at 0.5, and the probability is the model's confidence, not a guarantee, so you can draw the line somewhere else when the job needs it.
- [Program to an Interface, Not a Class](https://www.ask-codey.com/lessons/dp-program-to-an-interface) (Apprentice): When checkout asks for a card reader by name, every new way to pay means editing checkout; asking instead for "something that can take a payment", a promise any class can keep, lets a gift card, or anything else, plug in without checkout changing at all.
- [Project Structure](https://www.ask-codey.com/lessons/creating-an-angular-app-project-structure) (Novice): An Angular project starts at src/main.ts, which starts the App component with the settings in app.config.ts. index.html holds the &lt;app-root> tag that App fills. Your code lives in src/app; angular.json and package.json configure the build.
- [Promises: then, catch and finally](https://www.ask-codey.com/lessons/javascript-promises-what-is-a-promise) (Journeyman): A promise is a value that arrives later, like the buzzer a pizza shop hands you, and then, catch and finally say what to do when it works, when it fails, and either way.
- [Properties and Methods](https://www.ask-codey.com/lessons/powershell-properties-and-methods) (Apprentice): A dot after an object reads one of its properties, such as a file's Length or LastWriteTime, and a dot with parentheses runs one of its methods, something the object can do, such as ToUpper() or AddDays(-7).
- [Property Binding](https://www.ask-codey.com/lessons/binding-and-events-in-angular-property-binding) (Apprentice): Square brackets bind an element's property to the component's data, such as \[src\]="imageUrl" or \[disabled\]="soldOut". \[class.name\] turns a CSS class on and off, and \[style.prop\] sets one style, all kept up to date by Angular.
- [Prototype: Duplicate, Then Change](https://www.ask-codey.com/lessons/dp-prototype) (Apprentice): When "the same as last week, new address" is made by copying a shipment field by field, the copying code forgets whatever was added since; letting the shipment copy itself fixes that, as long as the copy doesn't share its list of boxes with the original, the bug that shallow and deep copies are about.
- [Prototypes: What Classes Are Made Of](https://www.ask-codey.com/lessons/javascript-classes-prototypes) (Freelancer): Underneath every class, each object is linked to a prototype object that holds the shared methods, and JavaScript finds a property by walking that chain of links until it finds it or runs out.
- [Providing the Router](https://www.ask-codey.com/lessons/basic-routing-in-angular-providing-the-router) (Apprentice): An Angular app is a single page that shows different components for different addresses. The router reads the URL and shows the matching page component in &lt;router-outlet>, without the browser loading a new page. ng new sets it all up for you.
- [Proxy: The Stand-In at the Door](https://www.ask-codey.com/lessons/dp-proxy) (Journeyman): When every screen that can unlock the front door has to check for a guest itself, the one that forgets lets a guest in; a proxy is a stand-in that keeps the lock's own interface and controls the way in, so every caller gets the check without writing it. The same shape also delays slow work until it's needed and stands in for a service far away.
- [Pseudo-Classes: :hover, :focus-visible, :nth-child() and More](https://www.ask-codey.com/lessons/css-pseudo-classes) (Apprentice): Pseudo-classes select elements by their state, such as hovered, focused, checked or disabled, or by their position, such as first, last or every other, :not() leaves some out, and link states go in the order :link, :visited, :hover, :focus, :active.
- [Pseudo-Elements: ::before, ::after and ::marker](https://www.ask-codey.com/lessons/css-pseudo-elements) (Apprentice): Pseudo-elements style a part of an element, or add decoration before or after it, such as a play icon, a quote mark, a list's numbers, a text box's placeholder or highlighted text, without changing the HTML.
- [PSScriptAnalyzer: A Second Pair of Eyes](https://www.ask-codey.com/lessons/powershell-script-analyzer) (Journeyman): Invoke-ScriptAnalyzer reads a script or a whole module without running it and lists every likely problem with its rule, severity, line and message; the rules worth knowing ask for full command names, approved verbs, singular nouns, -WhatIf on commands that change things, results instead of Write-Host and no unused variables, and a settings file or SuppressMessageAttribute sets one aside on purpose.
- [Publish/Subscribe: Observer Across the Network](https://www.ask-codey.com/lessons/dp-publish-subscribe) (Freelancer): When the front door has to tell Maya's phone, which is on another network and sometimes offline, Observer's list breaks down: the door must know the phone, wait for it, and loses the message when it's away; publish/subscribe puts a message board with topics in the middle, so senders post, readers subscribe, and neither knows the other.
- [PUT](https://www.ask-codey.com/lessons/restful-web-apis-put) (Journeyman): Handle a PUT request with @PutMapping, taking the category's id from the URL and its new values from the body, update it with a JdbcTemplate and return the updated category with a 200 status.
- [PUT](https://www.ask-codey.com/lessons/web-apis-with-controllers-put) (Journeyman): PUT replaces an item with the one in the request body, its id taken from the address. The DAO updates the row and hands back the category as it was saved, and the action answers 200 OK with it, or 404 Not Found when there's no such item.
- [Put Your API Online with Render](https://www.ask-codey.com/lessons/fastapi-deploy-render) (Journeyman): Render's free web service builds a FastAPI app from its GitHub repository with pip install -r requirements.txt, starts it with uvicorn main:app --host 0.0.0.0 --port $PORT, keeps its secrets in environment variables and checks /health before sending anyone to a deploy, and then every push deploys again, while a rollback puts an earlier deploy back.
- [Put Your API Online with Render](https://www.ask-codey.com/lessons/node-deploy-render) (Journeyman): Render's free web service runs your API from its GitHub repository at a link anyone can open, once the API takes its port from PORT, starts without a .env file and answers /health; then every push deploys again, and a rollback undoes a bad one.
- [Put Your App Online with GitHub Pages](https://www.ask-codey.com/lessons/javascript-shipping-github-pages) (Journeyman): Build your Vite app into a dist folder, upload what's inside it to a GitHub repository through the website, switch on GitHub Pages, and check the live link, so anyone can use your app from an address you can share.
- [Put Your Code on GitHub](https://www.ask-codey.com/lessons/javascript-put-your-code-on-github) (Novice): Hand in an exercise as a link, with no Git needed, by making a free GitHub account and a public repository and uploading your files in the browser, everything but node_modules.
- [Put Your Page Online for Free](https://www.ask-codey.com/lessons/css-share-your-page-online) (Novice): Put your page on the web for free with GitHub Pages, uploading its files in the browser with no Git needed, so anyone you send the link to can see it.
- [Put Your Site Online for Free](https://www.ask-codey.com/lessons/html-put-your-site-online) (Apprentice): GitHub Pages puts a folder of web pages online for free, at an address anyone can open, and you can do it all by uploading files on github.com.
- [Put Your Work on GitHub](https://www.ask-codey.com/lessons/html-put-your-work-on-github) (Novice): Hand in an exercise as a link, with no Git needed, by making a free GitHub account and a public repository and uploading your files in the browser, everything but node_modules.
- [Putting the Leaderboard in Order: Selection Sort](https://www.ask-codey.com/lessons/ds-selection-sort) (Apprentice): Put a time trial's leaderboard in order, fastest first, the way you'd do it by hand on a whiteboard, and count what that costs as the board grows: selection sort, and why it pays the same price even for a list that's already in order.
- [Query and QuerySingle](https://www.ask-codey.com/lessons/dapper-query-and-querysingle) (Journeyman): Query&lt;T> reads many rows into objects; QuerySingle, QuerySingleOrDefault, QueryFirst and QueryFirstOrDefault read one; ExecuteScalar&lt;T> reads one value. Pick by how many rows you expect.
- [Query Parameters in Angular: an overview](https://www.ask-codey.com/lessons/query-parameters-in-angular-an-overview) (Journeyman): Values that are optional, such as a filter, a search or a page number, go in the query string: /products?categoryId=2&page=3. They need no route of their own, and the page shows with or without them. A route parameter says which item; a query parameter says how to show the page.
- [Query Parameters: Filters and Options](https://www.ask-codey.com/lessons/fastapi-query-parameters) (Apprentice): A FastAPI function parameter that isn't in the route's path is read from the query string, so a default of None makes an optional filter, a bool reads yes-or-no values such as true and 0, and several filters combine in one request.
- [Query Syntax vs Method Syntax](https://www.ask-codey.com/lessons/linq-query-syntax-vs-method-syntax) (Journeyman): LINQ can also be written in query syntax, from ... where ... orderby ... select, which reads like SQL. The compiler turns it into the same method calls. Method syntax is more common, and some methods, such as Count and First, have no query keyword.
- [Querying a Database with ADO.NET: an overview](https://www.ask-codey.com/lessons/querying-a-database-with-ado-net-an-overview) (Journeyman): Every database query from C# takes three steps, connect, run the SQL, read the results, and each step has its own ADO.NET object.
- [Querying a Database: an overview](https://www.ask-codey.com/lessons/querying-a-database-an-overview) (Journeyman): Reading data from a database in Java takes three steps: connect to the database, run an SQL query, and read the results.
- [Querying and Saving with EF Core](https://www.ask-codey.com/lessons/entity-framework-core-querying-and-saving-with-ef-core) (Journeyman): Query a DbSet with LINQ, finished by an async method such as ToListAsync, and EF Core runs it as SQL. Add, change or remove entities, then call SaveChangesAsync, and EF Core writes the INSERT, UPDATE or DELETE for you.
- [Querying Arrays: One Value, $all and $size](https://www.ask-codey.com/lessons/mongodb-querying-arrays) (Apprentice): A filter on an array field matches when any item fits, $in matches when any item is one of a list, $all asks for every value in a list, and $size counts the items; an exact array match is rarely what you want.
- [Queues](https://www.ask-codey.com/lessons/types-of-collections-queues) (Journeyman): A queue is a collection that allows you to access the elements in the order in which they were added instead of by ordinal position.
- [Queues](https://www.ask-codey.com/lessons/advanced-collections-in-csharp-queues) (Journeyman): A Queue&lt;T> hands values back in the order they arrived, first in, first out. Enqueue adds to the back of the line, Dequeue takes from the front, and Peek looks without taking.
- [Quotes, Dates, Code and More](https://www.ask-codey.com/lessons/html-quotes-dates-code-and-more) (Apprentice): HTML has small elements that say what a piece of text is, such as a quote, a date, an abbreviation, a key to press or a price that changed, so browsers, search engines and screen readers can treat it right.
- [Quotes: Double, Single and None](https://www.ask-codey.com/lessons/bash-quoting) (Journeyman): Without quotes, the shell splits a variable's value at its spaces and turns a \* into file names, the number-one bash bug; "$name" in double quotes keeps the value exactly as it is, and single quotes keep everything as typed.
- [R Squared: Better Than Guessing the Average?](https://www.ask-codey.com/lessons/ml-r-squared) (Journeyman): R squared compares a model's squared errors with those of always guessing the average of the values being scored, so 1 is perfect, 0 is no better than the average, and below 0 is worse, which can happen on test data; scikit-learn's r2_score computes it, and on its own it can't say whether the misses are small enough to use.
- [Raising Your Own Exceptions](https://www.ask-codey.com/lessons/python-exceptions-raising-your-own) (Journeyman): A function that's handed a value that makes no sense should refuse it with raise and a message that says what was wrong, can name its own kind of error with a small exception class, and raises rather than returning None when carrying on would give a wrong answer.
- [Raising Your Own Exceptions in an API](https://www.ask-codey.com/lessons/fastapi-errors-your-own-exceptions) (Journeyman): An API's own rules raise exception classes named for each problem, such as TicketNotFound and StatusChangeNotAllowed, from plain functions that know nothing about HTTP, and @app.exception_handler turns each one into a status code and a JSON body, such as 404 or 409.
- [Random Forests](https://www.ask-codey.com/lessons/ml-random-forests) (Journeyman): A random forest trains many decision trees, each on a bootstrap sample of the training rows and choosing among a random few features at each split, then averages their predicted probabilities, so it changes less with the rows it was given than one tree does; RandomForestClassifier(n_estimators=200, random_state=0) builds one, it's harder to read than a single tree, and gradient boosting is the next model to learn.
- [Rate Limits and Security Headers](https://www.ask-codey.com/lessons/fastapi-security-rate-limits-and-headers) (Journeyman): A sign-in route that answers every guess lets a script try thousands of passwords, so a rate limit counts each address's tries in a window of time and answers 429 with Retry-After, slowapi puts one on a FastAPI route, and a small middleware adds security headers to every answer.
- [Razor Syntax and Tag Helpers](https://www.ask-codey.com/lessons/razor-views-razor-syntax-and-tag-helpers) (Journeyman): Mix C# into HTML with Razor's @ expressions, code blocks, if and foreach, and let tag helpers such as asp-action and asp-route-id write your links.
- [Reaching the Last Song, and Going Back One: Doubly Linked Lists](https://www.ask-codey.com/lessons/ds-linked-list-operations) (Apprentice): A linked list knows its first song, but "Add to queue" needs the last one and the Previous button needs the one before. Make both one step, and add and remove anywhere you already are by changing a couple of references.
- [Reading a Decision Tree](https://www.ask-codey.com/lessons/ml-reading-a-decision-tree) (Journeyman): A decision tree's rules can be printed with export_text or drawn with plot_tree, one fruit's guess can be said as a sentence by following its path from the top question to a leaf, and the leaf's mix of training fruits is the probability the tree gives, but a deep tree's rules stop being readable and every rule describes the training data, not the world.
- [Reading a File](https://www.ask-codey.com/lessons/reading-a-file) (Apprentice): How to read a CSV file line by line with a \`Scanner\` and turn each line into an object in a list.
- [Reading a File in C#](https://www.ask-codey.com/lessons/reading-a-file-in-csharp) (Apprentice): Read a text file like a tiny database. Open it, go through it line by line with File.ReadLines or a StreamReader, split each CSV line into an object, and close it with using, all inside a try and catch.
- [Reading and Writing Files](https://www.ask-codey.com/lessons/node-files-read-and-write) (Apprentice): Node's fs/promises module reads a whole text file with readFile, saves one with writeFile, adds to one with appendFile, and reports a missing file with the error code ENOENT, which your code can catch and explain.
- [Reading and Writing Text Files](https://www.ask-codey.com/lessons/python-files-reading-and-writing) (Apprentice): open() in a with block writes text to a file and reads it back, the mode says whether to write ("w"), add to the end ("a") or read ("r"), encoding="utf-8" keeps every letter intact, and a FileNotFoundError means the name or the folder is wrong.
- [Reading Coefficients and Trees](https://www.ask-codey.com/lessons/ml-reading-coefficients-and-trees) (Journeyman): A linear regression trained on standardized features gives coefficients you can compare, each the change in the guess for one standard deviation more of its feature with the others held the same, but features that move together share and swap credit, a small tree's top splits show the questions it asks first, and neither a coefficient nor a split is a cause.
- [Reading Errors, and \`-ErrorAction\`](https://www.ask-codey.com/lessons/powershell-errors) (Apprentice): PowerShell's red text names the command that failed, what went wrong and, in a script, the file and line; some errors stop a command and some let it carry on, -ErrorAction decides what happens next, and $Error keeps a list of them.
- [Reading explain(): COLLSCAN or IXSCAN](https://www.ask-codey.com/lessons/mongodb-reading-explain) (Journeyman): explain with "executionStats" is MongoDB's report on how it ran a query, where the winning plan's stages say whether it read every document (COLLSCAN) or used an index (IXSCAN, then FETCH), and totalDocsExamined against nReturned says how much work each result cost.
- [Reading FastAPI's 422 Validation Errors](https://www.ask-codey.com/lessons/fastapi-validation-error-responses) (Apprentice): When a request breaks a model's rules, FastAPI answers 422 with a detail list that has one entry per problem, whose loc says where the problem is, msg what's wrong, type what kind of problem it is and input what was sent, so an app can show each message beside its own box.
- [Reading Files: cat and less](https://www.ask-codey.com/lessons/bash-reading-files) (Novice): cat prints a short file on the screen, less shows a long one a screen at a time with keys to move and search, and file tells you what kind of file something is before you open it.
- [Reading Files: Get-Content](https://www.ask-codey.com/lessons/powershell-reading-files) (Novice): Get-Content prints a text file's lines right in PowerShell, by its name or its path, more shows a long file one screen at a time, and edit opens a file you want to change.
- [Reading Help: Get-Help](https://www.ask-codey.com/lessons/powershell-get-help) (Apprentice): Get-Help shows a command's help page once Update-Help has downloaded it, and its examples, its syntax lines and the about\_ topics let you work out a command you've never seen before you run it.
- [Reading JSON into Models](https://www.ask-codey.com/lessons/calling-apis-with-httpclient-reading-json-into-models) (Journeyman): GetFromJsonAsync and ReadFromJsonAsync turn an API's JSON into your own model objects, matching names whatever their capitals. PostAsJsonAsync and PutAsJsonAsync send objects as JSON. Check the answer's status, and read the saved item from a 201 or a PUT's 200.
- [Reading Query Parameters](https://www.ask-codey.com/lessons/query-parameters-in-angular-reading-query-parameters) (Journeyman): Input binding hands query parameters to the page as inputs too, or undefined when they're missing, so give each a default with ?? in a computed. Link with routerLink and \[queryParams\], and change them from code with navigate and queryParamsHandling 'merge'.
- [Reading Rows: SELECT, WHERE and ORDER BY](https://www.ask-codey.com/lessons/fastapi-sql-select) (Apprentice): SELECT asks a table for the columns you name, WHERE keeps only the rows that pass its test (with AND, OR and LIKE), ORDER BY sorts them and LIMIT caps how many come back, and in Python fetchone and fetchall read the answer, with sqlite3.Row giving rows you read by column name.
- [Reading System Logs](https://www.ask-codey.com/lessons/bash-system-logs) (Journeyman): Programs on a Linux computer write down what happens in logs, the files in /var/log and systemd's journal; journalctl -u shows one service's lines, -f watches new ones arrive, and on a Mac log show and the Console app do the same job.
- [Reading the Route Parameter](https://www.ask-codey.com/lessons/route-parameters-in-angular-reading-the-route-parameter) (Journeyman): With withComponentInputBinding, the router hands a route's parameters to the page component as inputs, so categoryId is an input like any other, turned into a number with numberAttribute. Load the data in an effect, because Angular reuses the page when only the id changes.
- [Reading What People Type](https://www.ask-codey.com/lessons/javascript-forms-reading-values) (Apprentice): Read what a visitor typed, ticked and chose in a form with value and checked, turn text into numbers, and collect a whole form at once with form.elements or FormData.
- [Records: Small Data Types with Value Equality and with](https://www.ask-codey.com/lessons/records-in-csharp) (Apprentice): Write a small data type in one line with a positional record, which compares and prints by its values and makes changed copies with a with expression.
- [Redo, the Back Button and Matching Brackets: Stacks at Work](https://www.ask-codey.com/lessons/ds-stacks-at-work) (Apprentice): Three everyday features need the most recent thing first: redo, a browser's back and forward buttons, and checking that brackets match. See why throwing things away, searching and counting fall short, and solve all three with stacks.
- [reduce](https://www.ask-codey.com/lessons/javascript-array-methods-reduce) (Journeyman): reduce walks through an array carrying a running total, so a whole list of scores, prices or plays boils down to one answer, such as a total, a count or a best score.
- [Refactoring Toward a Pattern, One Small Step at a Time](https://www.ask-codey.com/lessons/dp-refactoring-toward-a-pattern) (Journeyman): With old code pinned down by tests, you can reshape it toward a pattern in steps so small that each one keeps every test green, running the tests after every step and undoing any step that turns one red; the gym's plan if chain becomes a dictionary of pricing rules, and a new family plan becomes one line.
- [References: Two Names, One Object](https://www.ask-codey.com/lessons/ds-code-you-need-references) (Apprentice): Why copying a variable that holds an object copies only the note that says where it is, so two names can change one object; how to make a real copy; and null, None and undefined, the note that points at nothing.
- [Referencing: Linking Documents by \_id](https://www.ask-codey.com/lessons/mongodb-referencing-documents) (Apprentice): Referencing links two documents by storing one's \_id in the other, like a customerId in each order, so shared or changing data lives in one place, at the cost of a second query to follow the link.
- [Registering Services](https://www.ask-codey.com/lessons/dependency-injection-in-aspnet-core-registering-services) (Journeyman): Register your classes with ASP.NET Core's service container in Program.cs - as singleton, scoped or transient - and it creates them and hands them to every controller that asks in its constructor.
- [Regression Trees](https://www.ask-codey.com/lessons/ml-regression-trees) (Journeyman): A regression tree guesses a number by asking yes-or-no questions about the features and answering with the average label of the training rows that end in the same leaf, so its guesses are steps, never outside the range of the training labels, and a tree with no depth limit memorizes its training rows.
- [Related Tables and Foreign Keys](https://www.ask-codey.com/lessons/fastapi-sql-foreign-keys) (Journeyman): One vendor sells many products, so the products go in a table of their own and each product row holds its vendor's id in a foreign key column that REFERENCES the vendors table, a link SQLite checks only once PRAGMA foreign_keys = ON is sent on the connection.
- [Relative](https://www.ask-codey.com/lessons/css-position-relative) (Apprentice): Relative positioning moves an element away from its own normal place, and keeps the space it would have used.
- [Remembering Data with localStorage](https://www.ask-codey.com/lessons/javascript-storage-local-and-session) (Apprentice): Make a page remember things between visits with localStorage, save whole lists with JSON, start cleanly when nothing is saved yet, and know what sessionStorage and cookies are for and what must never be stored in the browser.
- [Renaming: Rename-Item](https://www.ask-codey.com/lessons/powershell-rename-item) (Novice): Rename-Item gives a file or folder a new name in the folder it's already in; the new name is only a name, so renaming and moving in one step is Move-Item's job, and Rename-Item never replaces a file that already has the new name.
- [Repeating with while](https://www.ask-codey.com/lessons/javascript-loops-while) (Novice): A while loop repeats a block of code for as long as its condition stays true, which fits any job where you can't know in advance how many times it will take, as long as something inside the loop lets it end.
- [Repeating with while](https://www.ask-codey.com/lessons/python-while-loops) (Novice): A while loop runs its indented block again and again as long as its condition stays True, so a program can count, keep going until a job is done, or keep asking until an answer makes sense.
- [Reports by Day and Month: Dates in a Pipeline](https://www.ask-codey.com/lessons/mongodb-aggregation-reports-by-month) (Journeyman): Dates stored as real dates can be matched by range and grouped by month or day with $year, $month and $dateToString, and the timezone option counts each order in the month it was where the shop is.
- [Reports: ConvertTo-Html and Out-GridView](https://www.ask-codey.com/lessons/powershell-reports) (Journeyman): ConvertTo-Html turns objects into a web page with a table, which a little CSS makes clear to read and anyone can open in a browser, and Out-GridView shows objects in a window you can filter, sort and click, where -PassThru sends the rows you pick on down the pipe.
- [Repository: Ask for the Book, Not the Shelf](https://www.ask-codey.com/lessons/dp-repository) (Journeyman): When the checkout service talks to the database in the database's own words (tables, rows, columns, dates stored as text), every class that needs loans copies that code, tests need a database, and a new database means editing them all; a repository puts loans behind one interface in the app's own words, so a class asks for a loan and never learns where it's kept.
- [Request / Response](https://www.ask-codey.com/lessons/network-communication-request-response) (Apprentice): The browser sends a request and the server sends back one response, and the server does not remember earlier requests.
- [Request Models with Pydantic](https://www.ask-codey.com/lessons/fastapi-pydantic-request-models) (Apprentice): A Pydantic model replaces checks written by hand with a class that names each field of a request body and its type, with defaults for fields that may be left out, None for optional ones, and models inside models, and FastAPI checks every request against it before the route runs.
- [Requiring a Signed-In User](https://www.ask-codey.com/lessons/node-auth-require-user-middleware) (Journeyman): A requireUser middleware checks the token in a request's Authorization header before the route runs, puts the signed-in user in req.user, and answers 401 when the token is missing, made up or expired.
- [Requiring a Signed-In User](https://www.ask-codey.com/lessons/fastapi-auth-current-user-dependency) (Journeyman): A get_current_user dependency reads the token from the Authorization header with OAuth2PasswordBearer, decodes it with PyJWT and loads the user from the database, so a route that asks for it serves only signed-in users and answers everyone else 401 with a WWW-Authenticate header.
- [Responding to Clicks with addEventListener](https://www.ask-codey.com/lessons/javascript-events-add-event-listener) (Apprentice): An event is something that happens on the page, such as a click, and addEventListener tells the browser which of your functions to run each time it happens.
- [Responding to Events: an overview](https://www.ask-codey.com/lessons/responding-to-events-an-overview) (Apprentice): An event is something that happens on a page, such as a click, and your code responds to it by giving the browser a function to run each time it happens.
- [Response Models: Choosing What Goes Out](https://www.ask-codey.com/lessons/fastapi-pydantic-response-models) (Journeyman): A response model says exactly which fields a route sends back, set by the route's return type or by response_model=, so separate models for what comes in and what goes out keep fields such as staff notes and password hashes inside the API.
- [Responsive Design and the Viewport](https://www.ask-codey.com/lessons/css-responsive-design-and-viewport) (Apprentice): A responsive page fits whatever screen it's on, and it starts with one line in the head, the viewport line, plus knowing what breaks on a phone and how to see it with device mode.
- [Responsive Images with srcset and sizes](https://www.ask-codey.com/lessons/html-images-srcset-and-sizes) (Journeyman): Offer the same photo in several widths with srcset, tell the browser how wide it will be shown with sizes, and let each phone, laptop and sharp screen download the file it needs.
- [Responsive Images: max-width, object-fit and srcset](https://www.ask-codey.com/lessons/css-responsive-images) (Journeyman): Make pictures fit any screen with max-width, aspect-ratio and object-fit in CSS, and send each screen a picture of the right size and crop with srcset, sizes, picture and lazy loading in the HTML.
- [REST: Resources, Endpoints and Methods](https://www.ask-codey.com/lessons/fastapi-rest-resources-and-endpoints) (Apprentice): A REST API names each kind of thing it holds with a plural noun, such as /plots for every plot and /plots/7 for one, lets the HTTP method be the verb, answers each action with the status code that fits it, and never changes anything on a GET.
- [RESTful Web APIs: an overview](https://www.ask-codey.com/lessons/restful-web-apis-an-overview) (Apprentice): REST is the standard most web APIs follow, with one HTTP verb (GET, POST, PUT, DELETE) for each CRUD operation.
- [Retry: Try Again, a Little Later](https://www.ask-codey.com/lessons/dp-retry) (Journeyman): When a far-away weather service misses one call in a hundred, showing "unavailable" for a hiccup that a second try would fix lets the user down; Retry tries again a few times, waiting longer each time with a little randomness, and only for calls that are safe to repeat.
- [Returning a Partial View from an Action](https://www.ask-codey.com/lessons/mvc-partials-with-fetch-returning-a-partial-view-from-an-action) (Journeyman): Move the part of the page that changes into a partial view, render it on the full page with the partial tag helper, and add an action that returns just that partial with PartialView, so a request gets only its HTML, without the layout.
- [Returning ActionResult&lt;T>](https://www.ask-codey.com/lessons/web-apis-with-controllers-returning-actionresult-t) (Journeyman): ActionResult&lt;T> lets an action return either its data or a status code result, such as NotFound(). Return the item to answer 200 with it, or a helper such as NotFound(), BadRequest() or Conflict() to answer with that status instead.
- [Returning HTTP Status Codes: an overview](https://www.ask-codey.com/lessons/returning-http-status-codes-an-overview) (Apprentice): Why the default status codes (200 on success, 500 on any error) aren't enough, shown by a request for a category that doesn't exist and still gets 200.
- [Returning ResponseEntity&lt;T>](https://www.ask-codey.com/lessons/returning-http-status-codes-returning-responseentity-t) (Journeyman): Return a ResponseEntity from a controller method to choose the status code, for example 404 when a category isn't found and 500 when something fails.
- [Role Diagrams: How This Course Draws a Pattern](https://www.ask-codey.com/lessons/dp-role-diagrams) (Apprentice): A pattern's class diagram gives every box the same weight and hides which part changes and what calls what, so this course draws each pattern as a role diagram too: plain-word roles, numbered calls, and a dashed fence around the part that varies.
- [Roles and Ownership: 401 or 403](https://www.ask-codey.com/lessons/node-auth-roles-and-ownership) (Journeyman): Signed in isn't the same as allowed, so a requireRole middleware lets only the right role through, an ownership check compares a record's owner with req.user.id, and both refuse with 403, while 401 stays for a request with no valid token.
- [Roles and Ownership: 401 or 403](https://www.ask-codey.com/lessons/fastapi-auth-roles-and-ownership) (Journeyman): Signed in isn't the same as allowed, so a require_role dependency lets only the right role through, an ownership check compares a record's owner with the signed-in user's id, and both answer 403 Forbidden, while 401 stays for a request with no valid token.
- [Route and Query Parameters](https://www.ask-codey.com/lessons/node-express-route-and-query-parameters) (Apprentice): A route parameter such as /games/:id lets one route answer every game, read from req.params, and query parameters such as ?players=4 arrive in req.query, both always as text that you turn into numbers before you compare them.
- [Route Guards and HTTP Interceptors](https://www.ask-codey.com/lessons/security-in-angular-route-guards-and-http-interceptors) (Freelancer): A route guard decides whether a page may open, and sends visitors who aren't signed in to the sign-in page and back again afterwards. An HTTP interceptor sees every request, so one adds the token to every call to your API, and signs the user out when the API answers 401.
- [Route Parameters in Angular: an overview](https://www.ask-codey.com/lessons/route-parameters-in-angular-an-overview) (Journeyman): An address can carry a value: /categories/3 means category 3. One route with a parameter, categories/:categoryId, serves every category, like {id} in an ASP.NET Core route. It takes three steps: the route, the component that reads the value, and the links that put it in.
- [Route Values and the Query String](https://www.ask-codey.com/lessons/routing-in-aspnet-core-route-values-and-the-query-string) (Journeyman): Values reach an action from the route (/products/7) or the query string (?page=2). Choose which with the address's meaning, give optional values defaults, and use \[FromRoute\] and \[FromQuery\] to be explicit.
- [Routing by Hand, and Why Frameworks Exist](https://www.ask-codey.com/lessons/node-http-why-frameworks) (Apprentice): A node:http server routes each request with if statements on its method and path, reads a JSON body that arrives in pieces, and grows a little with every address, which is the work a framework such as Express takes over.
- [Routing by Hand, and Why Frameworks Exist](https://www.ask-codey.com/lessons/fastapi-http-routing-by-hand) (Apprentice): A plain Python function can answer requests by checking each one's method and path with if statements and returning a status code and a body, and seeing that code grow with every route shows the jobs a framework such as FastAPI takes over.
- [Ruff and mypy on an API Project](https://www.ask-codey.com/lessons/fastapi-pro-ruff-and-mypy) (Journeyman): Ruff finds likely mistakes in an API's code and lays out every file the same way, and mypy reads the type hints that FastAPI, Pydantic and the data module already have to find values that can't be what a function expects, both set up once for the whole project in pyproject.toml.
- [Run It from Anywhere](https://www.ask-codey.com/lessons/powershell-run-from-anywhere) (Apprentice): A script that reads its files from $PSScriptRoot works from any folder; a Scripts folder on your PATH lets you run it by name, pwsh -File starts it from outside PowerShell, and a desktop shortcut with pwsh -File in its target runs it with a double-click.
- [Run It from Anywhere: ~/bin on Your PATH](https://www.ask-codey.com/lessons/bash-scripts-on-your-path) (Apprentice): Copy a finished script into ~/bin without its .sh, put ~/bin on your PATH, and it runs by name from any folder like any other command, as long as the paths inside it work from anywhere and its name isn't already taken, which type checks.
- [Running a Script on a Schedule](https://www.ask-codey.com/lessons/python-automation-scheduled-jobs) (Journeyman): Windows Task Scheduler and cron on a Mac run a script at set times with no terminal open, so the job names the virtual environment's python and the script by their full paths, the script finds its files from its own folder, and logging records each run in a log file.
- [Running Commands on Another Computer](https://www.ask-codey.com/lessons/bash-remote-commands) (Freelancer): ssh host 'command' runs one command on another computer and brings back its output and its exit code, the kind of quotes decides which computer fills in a $variable, and a short deploy script copies a site with rsync and checks it with ssh in one step.
- [Running the Exercise Tests](https://www.ask-codey.com/lessons/ds-running-the-tests) (Novice): What an exercise's tests are, how to run them in your language with one command, and how to read a red run and a green one, including the "Not yet" message that says what to fix.
- [Running Work in Parallel: &, wait and xargs -P](https://www.ask-codey.com/lessons/bash-parallel-jobs) (Freelancer): Commands that each take a while can run side by side: & starts each one in the background and wait holds the script until all of them have finished, while xargs -P runs a set number at a time, so 12 one-second photo resizes take 3 seconds instead of 12.
- [Saved Copies: Working Offline](https://www.ask-codey.com/lessons/python-web-apis-saved-copies) (Journeyman): A program that calls a web API can save each answer to a JSON file with the date it was saved, fall back to that copy when a request fails, and take the function that fetches as a parameter, so tests can hand in a stand-in and never touch the network.
- [Saving and Loading a Model](https://www.ask-codey.com/lessons/ml-saving-a-model) (Journeyman): joblib.dump writes a trained model to a file and joblib.load brings it back with the same guesses, as long as you save the whole pipeline, load it with the same scikit-learn version it was saved with, and only ever load files you or someone you trust made, because loading one can run any code inside it.
- [Saving Data: Export-Csv and Cleaning a CSV](https://www.ask-codey.com/lessons/powershell-export-csv) (Journeyman): Export-Csv saves objects as a CSV file that Excel and other programs open as a table, and on the way there a pipeline can clean an untidy export, dropping its blank rows, renaming its columns and turning text such as $36.00 into numbers with \[decimal\] and \[int\].
- [Saving the Clean Data: to_csv and to_excel](https://www.ask-codey.com/lessons/pandas-saving-data) (Apprentice): A clean table lives only as long as the notebook's kernel, so to_csv with index=False saves it as a file the next notebook can load, to_excel saves a workbook for people who use Excel, and keeping data/raw and data/clean folders, with a save function that refuses the raw folder, means the raw file is never written over.
- [Scaling Features](https://www.ask-codey.com/lessons/ml-scaling-features) (Journeyman): Features measured in different units (pounds, years, a 0 or 1) pull unevenly on any model that measures distance or penalizes large weights, so standardizing rescales each one with the training data's mean and standard deviation, which StandardScaler learns with fit on the training part and applies with transform to both parts.
- [Scatter Plots: Do Two Things Move Together?](https://www.ask-codey.com/lessons/data-scatter-plots) (Journeyman): A scatter plot puts one dot for each row at its two measurements, so ax.scatter shows whether two columns move together, alpha shows where the dots crowd, a correlation from -1 to 1 puts the pattern into one number, and two things moving together never proves that one causes the other.
- [Scheduled Jobs: cron](https://www.ask-codey.com/lessons/bash-cron) (Journeyman): cron runs commands at the times you set, even when you aren't at the keyboard: each line of your crontab has five time fields, minute, hour, day of the month, month and day of the week, then the command; crontab -e edits it, crontab -l shows it, and a job's output goes into a log file you name.
- [Scheduled Tasks](https://www.ask-codey.com/lessons/powershell-scheduled-tasks) (Journeyman): A scheduled task is Windows' alarm clock for programs, a trigger that says when and an action that says what to run, built with New-ScheduledTaskTrigger and New-ScheduledTaskAction, handed to Task Scheduler with Register-ScheduledTask, and checked with Get-ScheduledTask.
- [Schema Validation with $jsonSchema](https://www.ask-codey.com/lessons/mongodb-schema-validation) (Journeyman): A collection can refuse documents with the wrong shape; a $jsonSchema validator lists the required fields, each field's type, a minimum and the values allowed, createCollection or collMod attaches it, the error names the rule a document broke, and validationLevel and validationAction decide what is checked and what happens.
- [Scope: Local and Global Variables](https://www.ask-codey.com/lessons/python-functions-scope) (Apprentice): A variable made inside a function is local and disappears when the call ends, a variable made outside every function is global and can be read anywhere, and a function that takes values in and hands its result back is easier to trust than one that changes a global.
- [Scope: Where a Variable Can Be Seen](https://www.ask-codey.com/lessons/javascript-scope-where-variables-live) (Apprentice): Scope is the part of a program where a variable can be seen and used, and knowing its three kinds (global, function and block) explains a whole family of "is not defined" errors and values that won't change.
- [Scripts That Run Without You](https://www.ask-codey.com/lessons/bash-unattended-scripts) (Freelancer): cron runs a script from your home folder, with a short PATH, no terminal and no keyboard, so a script that works when you type it can fail at 18:00; give it full paths and a PATH of its own, write everything to a log with the date and time, never ask a question, and take a lock with flock so two copies never run at once.
- [Scripts That Run Without You](https://www.ask-codey.com/lessons/powershell-unattended-scripts) (Freelancer): A script run by a scheduled task has nobody to answer its questions and doesn't start in its own folder, so it takes parameters instead of asking, builds its paths from $PSScriptRoot, leaves a dated log and a Start-Transcript recording, ends with an honest exit code, and runs as the account the task names.
- [SDLC](https://www.ask-codey.com/lessons/sdlc) (Novice): The five phases of the software development lifecycle (requirements, design, code, test, deploy), and how Agile and test-driven development change their order.
- [Searching for Good Settings](https://www.ask-codey.com/lessons/ml-grid-search) (Freelancer): GridSearchCV tries every combination of the settings you list, scores each by cross-validation on the training rows, keeps the best in best_params\_ and best_score\_ with every result in cv_results\_, and refits the best pipeline on all the training rows, ready for one final test score; a pipeline's settings are named step\_\_setting, and RandomizedSearchCV tries a sample when the grid is too big.
- [Secrets and .env Files](https://www.ask-codey.com/lessons/bash-env-files-and-secrets) (Journeyman): A secret such as a token or an API key never goes in a script: it goes in a .env file beside the project, which the script loads with set -a and source, which Git is told to ignore, and which chmod 600 keeps private to you.
- [Secrets Out of Scripts](https://www.ask-codey.com/lessons/powershell-secrets) (Journeyman): A password or token written into a script travels wherever the script goes, so a script names the secret it needs and reads it from an environment variable, asks for it with Get-Credential, or fetches it from a SecretManagement vault, and stops with a clear message when it isn't there.
- [Sections Inside Sections: Recursion on Nested Data](https://www.ask-codey.com/lessons/ds-recursion-nested-data) (Journeyman): Put a restaurant's menu online, with sections inside sections to any depth: add up one of everything, and print the menu as an outline with every section indented under the one that holds it, using one function per job that works at any depth.
- [Securing a Web API with JWT Bearer](https://www.ask-codey.com/lessons/securing-the-web-api-securing-a-web-api-with-jwt-bearer) (Journeyman): Give the categories API users. Register and login endpoints check passwords with PasswordHasher and hand back a signed JSON Web Token; AddJwtBearer checks the token on every request, and \[Authorize\] with roles decides who may add, change and delete. The signing key lives in user secrets.
- [Security Headers and Rate Limits](https://www.ask-codey.com/lessons/node-security-headers-and-rate-limits) (Journeyman): helmet adds a set of security headers to every answer of an Express API in one line, and express-rate-limit counts each address's requests to a route such as sign-in and answers 429 Too Many Requests when it goes over the limit.
- [Seeding and Importing Data](https://www.ask-codey.com/lessons/loading-data-seeding-and-importing-data) (Journeyman): A new database starts empty. Seed scripts fill in the data every copy needs, written so they can run again safely. Imports bring in data from elsewhere, such as a supplier's CSV file. Check every row, add the good ones in one transaction, and report the rest by line number.
- [Seeing It: Validation and Learning Curves](https://www.ask-codey.com/lessons/ml-validation-curves) (Freelancer): A validation curve draws a model's training score and validation score for each value of one setting, such as a tree's max_depth, so you can see where underfitting ends and overfitting begins, and a learning curve draws the same two scores for more and more training rows, to show whether more data would help.
- [SELECT in T-SQL: an overview](https://www.ask-codey.com/lessons/select-in-t-sql-an-overview) (Novice): A SELECT statement asks the database a question and gets back a table of answers; T-SQL is SQL Server's version of SQL.
- [SELECT Query Structure](https://www.ask-codey.com/lessons/select-in-t-sql-select-query-structure) (Novice): A SELECT statement is built from clauses that always appear in the same order; this chapter uses SELECT, FROM, WHERE and ORDER BY.
- [SELECT query Structure](https://www.ask-codey.com/lessons/the-select-statement-select-query-structure) (Novice): A SELECT query is built from keywords that must appear in a fixed order: SELECT, FROM, JOIN, WHERE, GROUP BY, HAVING, ORDER BY and LIMIT.
- [Semantic HTML](https://www.ask-codey.com/lessons/html-semantic-html) (Apprentice): Semantic elements such as strong, nav, main and footer say what their content means, so the HTML describes the content and CSS handles the formatting.
- [Sending Data with fetch](https://www.ask-codey.com/lessons/javascript-fetch-sending-data) (Journeyman): To send data to an API, give fetch a second argument with method POST, a Content-Type header that says the body is JSON, and a body made with JSON.stringify; and know that CORS, the API's rule about which sites may call it, decides whether a page can call it at all.
- [Sending Messages with output()](https://www.ask-codey.com/lessons/component-communication-in-angular-sending-messages-with-output) (Journeyman): A child component declares the messages it can send with output(), and sends one with emit. The parent listens with an event binding on the child's tag, and $event is the value that was sent, so the parent decides what happens.
- [Sequence Diagrams: Loops, Choices and Waiting](https://www.ask-codey.com/lessons/dp-sequence-diagram-frames) (Journeyman): Real calls repeat, branch and sometimes don't wait for an answer; a sequence diagram shows each with a loop frame, an alt frame, an object created partway down, and an open arrowhead, and Mermaid writes the whole diagram as a few lines of text.
- [Sequence Diagrams: Who Calls Whom, in Order](https://www.ask-codey.com/lessons/dp-sequence-diagrams) (Apprentice): From this pass on, the design problems are about calls: who asks whom, in what order, and what comes back; a sequence diagram draws exactly that, as lifelines read from top to bottom, starting with a package scanned at the depot.
- [Series: One Column of Values](https://www.ask-codey.com/lessons/pandas-series) (Apprentice): A Series is pandas' column, one list of values with a label for each value (its index) and one dtype, and math such as price \* 1.07 or sum, mean, max and round works on every value at once, with no loop.
- [Services and inject()](https://www.ask-codey.com/lessons/angular-services-services-and-inject) (Apprentice): A service is a class for work that isn't about showing anything, such as calculations or calling an API. Mark it @Service(), and any component gets the one shared instance with inject(), like dependency injection in ASP.NET Core.
- [Services: \`Get-Service\` and \`Restart-Service\`](https://www.ask-codey.com/lessons/powershell-services) (Journeyman): A service is a program Windows runs with no window, such as the Print Spooler: Get-Service shows each one's Status and, with Select-Object, its StartType, all without changing anything, while Restart-Service, Stop-Service, Start-Service and Set-Service change them and need an administrator window, after a rehearsal with -WhatIf.
- [Services: systemctl](https://www.ask-codey.com/lessons/bash-services) (Journeyman): A service is a program that runs in the background with no window and starts when the computer does; on Linux, systemd runs them, systemctl status shows whether one is running, and sudo systemctl start, stop, restart, enable and disable change it now or at every start-up.
- [Session State](https://www.ask-codey.com/lessons/security-and-sessions-session-state) (Journeyman): Session state keeps small values on the server for one visitor between requests, such as recently viewed products, found through a session cookie. Turn it on, then SetString, GetString and SetInt32.
- [Sessions and Cookies](https://www.ask-codey.com/lessons/node-auth-sessions-and-cookies) (Journeyman): A session keeps a student signed in the way a coat check does, with the record on the server and only a random ticket in the browser's cookie, and express-session sets it up with the HttpOnly, Secure and SameSite flags; it's the simpler choice for one website on its own server.
- [Sessions and Cookies, and When They Fit Better](https://www.ask-codey.com/lessons/fastapi-auth-sessions-and-cookies) (Journeyman): A session signs a user in with a random id from secrets.token_urlsafe, kept in a sessions table and sent in an HttpOnly, Secure, SameSite cookie, so signing out deletes a row and takes effect at once, which suits one website on one server better than a token that stays valid until it expires.
- [Sets](https://www.ask-codey.com/lessons/types-of-collections-sets) (Journeyman): A set holds each value only once, and HashSet, LinkedHashSet and TreeSet differ in the order they give back the values.
- [Sets: No Duplicates Allowed](https://www.ask-codey.com/lessons/python-sets) (Apprentice): A set holds each value once and in no order, so it removes duplicates, checks quickly whether something is there, and compares two collections with union, intersection and difference.
- [Settings Checked at Startup](https://www.ask-codey.com/lessons/fastapi-pro-settings) (Journeyman): An API reads every setting it needs from environment variables, or from a .env file on your own computer, through one pydantic-settings BaseSettings class that gives each setting a type and a default, so a missing or mistyped setting stops the app as it starts, with a message naming every problem, instead of crashing a later request.
- [Settings from Environment Variables](https://www.ask-codey.com/lessons/node-environment-variables) (Apprentice): A setting that changes from one computer to another, such as where a data folder is, belongs in an environment variable, which a Node program reads from process.env with a default from ??, and which comes from the terminal or from an .env file loaded with node --env-file.
- [Setup for the Exercises: Node.js, Git and VS Code](https://www.ask-codey.com/lessons/mongodb-setup-nodejs-git-and-vs-code) (Novice): Install VS Code, the LTS version of Node.js and Git on Windows or macOS, check them with --version, make a free GitHub account, tell Git your name and email, and make the mongodb-course folder every exercise goes in.
- [Setup on a Mac: Python, VS Code and Git](https://www.ask-codey.com/lessons/python-setup-macos) (Novice): Install Homebrew, then Python, VS Code with its Python extension, Git and Git Credential Manager on a Mac, check Python with python3 --version in VS Code's terminal, see why the command is python3 on a Mac, tell Git your name and email, and make a python-course folder.
- [Setup on Windows: Python, VS Code and Git](https://www.ask-codey.com/lessons/python-setup-windows) (Novice): Install Python with the Python Install Manager, VS Code with its Python extension, and Git on Windows with winget, check them with py --version and python --version in VS Code's terminal, tell Git your name and email, and make a python-course folder.
- [Setup: Git and GitHub](https://www.ask-codey.com/lessons/node-setup-git-and-github) (Novice): Install Git and Git Credential Manager on Windows or macOS, make a free GitHub account, and tell Git your name, your email and main as the default branch with git config --global.
- [Setup: Install Git and connect to GitHub](https://www.ask-codey.com/lessons/os-and-terminal-tools-macos-setup-git-and-github) (Novice): Install Git and Git Credential Manager, create a GitHub account, and tell Git who you are.
- [Setup: Install Git, Git Bash, and connect to GitHub](https://www.ask-codey.com/lessons/os-and-terminal-tools-windows-setup-git-and-github) (Novice): Install Git for Windows, make Git Bash your terminal, create a GitHub account, and tell Git who you are.
- [Setup: Install Homebrew](https://www.ask-codey.com/lessons/os-and-terminal-tools-macos-setup-homebrew) (Novice): Install Homebrew, the package manager you will use to install every other bootcamp tool on your Mac.
- [Setup: Install Insomnia](https://www.ask-codey.com/lessons/os-and-terminal-tools-macos-setup-insomnia) (Novice): Install Insomnia on your Mac, the app you use to send requests to web APIs and read their answers, make a free account with a project stored on your computer, and send your first request.
- [Setup: Install Insomnia](https://www.ask-codey.com/lessons/os-and-terminal-tools-windows-setup-insomnia) (Novice): Install Insomnia, the app you use to send requests to web APIs and read their answers, make a free account with a project stored on your computer, and send your first request.
- [Setup: Install IntelliJ IDEA](https://www.ask-codey.com/lessons/os-and-terminal-tools-windows-setup-intellij-idea) (Novice): Install IntelliJ IDEA, connect it to your Java 25 JDK, and run a first sample program.
- [Setup: Install IntelliJ IDEA](https://www.ask-codey.com/lessons/os-and-terminal-tools-macos-setup-intellij-idea) (Novice): Install IntelliJ IDEA, connect it to your Java 25 JDK, and run a first sample program.
- [Setup: Install MySQL Server and Workbench](https://www.ask-codey.com/lessons/os-and-terminal-tools-windows-setup-mysql) (Novice): Install MySQL 8.4, set it up with MySQL Configurator and a root password, and connect to it from MySQL Workbench.
- [Setup: Install MySQL Server and Workbench](https://www.ask-codey.com/lessons/os-and-terminal-tools-macos-setup-mysql) (Novice): Install MySQL 8.4 with Homebrew, secure it with a root password, and connect to it from MySQL Workbench.
- [Setup: Install Node.js](https://www.ask-codey.com/lessons/os-and-terminal-tools-macos-setup-nodejs) (Novice): Install the long-term support version of Node.js and npm, which you will use for JavaScript and React.
- [Setup: Install Node.js](https://www.ask-codey.com/lessons/os-and-terminal-tools-windows-setup-nodejs) (Novice): Install the long-term support version of Node.js and npm, which you will use for JavaScript and front-end frameworks.
- [Setup: Install SQL Server 2025 and SSMS](https://www.ask-codey.com/lessons/csharp-setup-sql-server) (Novice): Install SQL Server 2025 Developer and SQL Server Management Studio 22, and connect to your server with Windows authentication.
- [Setup: Install the .NET 10 SDK](https://www.ask-codey.com/lessons/csharp-setup-dotnet-sdk) (Novice): Install the .NET 10 SDK with winget, and check from Git Bash that the dotnet command works.
- [Setup: Install the Java 25 JDK](https://www.ask-codey.com/lessons/os-and-terminal-tools-windows-setup-java-jdk) (Novice): Install the Java Development Kit (Eclipse Temurin 25) and set JAVA_HOME on Windows.
- [Setup: Install the Java 25 JDK](https://www.ask-codey.com/lessons/os-and-terminal-tools-macos-setup-java-jdk) (Novice): Install the Java Development Kit (Eclipse Temurin 25) and set JAVA_HOME on your Mac.
- [Setup: Install Visual Studio 2026](https://www.ask-codey.com/lessons/csharp-setup-visual-studio) (Novice): Install Visual Studio 2026 Community with the two workloads this course uses, and open it for the first time.
- [Setup: Install VS Code](https://www.ask-codey.com/lessons/os-and-terminal-tools-macos-setup-vs-code) (Novice): Install Visual Studio Code with Homebrew and open files in it from the terminal.
- [Setup: Install VS Code](https://www.ask-codey.com/lessons/os-and-terminal-tools-windows-setup-vs-code) (Novice): Install Visual Studio Code with winget, then open it, a file, or a whole folder from the terminal.
- [Setup: MongoDB and Compass](https://www.ask-codey.com/lessons/node-mongodb-setup) (Apprentice): Install MongoDB Community Server and Compass on Windows or macOS, check that the server is running, and connect Compass to it at mongodb://localhost:27017, or use a free Atlas cluster in the cloud instead.
- [Setup: MongoDB, mongosh and Compass](https://www.ask-codey.com/lessons/mongodb-setup-mongodb-mongosh-and-compass) (Novice): Install MongoDB Community Server, mongosh and Compass on Windows with winget or on a Mac with Homebrew, check that the server is running in the background, and connect to it with mongosh at mongodb://localhost:27017.
- [Setup: pandas and Notebook Support](https://www.ask-codey.com/lessons/data-setup-pandas-and-notebooks) (Novice): Python doesn't come with pandas, so every data project lists its packages in a requirements.txt (pandas, matplotlib, openpyxl, ipykernel and pytest), installs them into its own virtual environment with pip, checks pandas.\_\_version\_\_, and adds VS Code's Jupyter extension for notebooks.
- [Setup: PowerShell on a Mac or Linux](https://www.ask-codey.com/lessons/powershell-setup-macos-linux) (Novice): PowerShell 7 runs on a Mac and on Linux too, installed with Homebrew or Microsoft's package for Ubuntu and started with pwsh, with a few differences in paths and a few Windows-only lessons.
- [Setup: The Terminal on a Mac](https://www.ask-codey.com/lessons/bash-setup-macos) (Novice): Open the Terminal app, meet zsh, the shell it opens, then add Homebrew, bash 5 and bats, so every script and exercise check in this course runs on your Mac.
- [Setup: The Terminal on Linux](https://www.ask-codey.com/lessons/bash-setup-linux) (Novice): Open a terminal on Ubuntu, check that it runs bash 5, install bats with apt, and make the practice folder every lesson in this course uses.
- [Setup: The Terminal on Windows](https://www.ask-codey.com/lessons/bash-setup-windows) (Novice): Install Ubuntu inside Windows with WSL, open it in Windows Terminal, add bats, and learn where your Windows files are from Ubuntu and where your practice files belong.
- [Setup: Verify your setup](https://www.ask-codey.com/lessons/csharp-setup-verify) (Novice): Check every tool, then write a C# program, commit it with Git, push it to GitHub, and run a query in SQL Server.
- [Setup: Verify your setup](https://www.ask-codey.com/lessons/os-and-terminal-tools-macos-setup-verify) (Novice): Check every tool, then write a Java program, commit it with Git, and push it to GitHub.
- [Setup: Verify your setup](https://www.ask-codey.com/lessons/os-and-terminal-tools-windows-setup-verify) (Novice): Check every tool, then write a Java program, commit it with Git, and push it to GitHub.
- [Setup: VS Code and Node.js](https://www.ask-codey.com/lessons/node-setup-vs-code-and-node) (Novice): Install VS Code and the LTS version of Node.js on Windows or macOS, check node --version and npm --version in VS Code's terminal, and make the nodejs-course folder every example and exercise goes in.
- [Setup: VS Code and Your Language](https://www.ask-codey.com/lessons/ds-setup-your-tools) (Novice): Install VS Code and the tools for the language you'll use in this course, on Windows or macOS, make a course folder, and run your first one-file program from VS Code's terminal.
- [Setup: VS Code, a Browser and Node.js](https://www.ask-codey.com/lessons/css-setup-your-tools) (Novice): Install VS Code with Live Server, a current browser and Node.js on Windows 11 or macOS, then open The Daily Grind's menu page and watch it reload every time you save.
- [Setup: VS Code, a Browser and Node.js](https://www.ask-codey.com/lessons/html-setup-vs-code-a-browser-and-nodejs) (Novice): Install VS Code, the Live Server extension and Node.js on Windows 11 or macOS, check them from VS Code's terminal, and open your first page in a browser that reloads when you save.
- [Setup: VS Code, a Browser and Node.js](https://www.ask-codey.com/lessons/javascript-setup-vs-code-browser-and-node) (Novice): Install VS Code, Node.js and the Live Preview extension on Windows 11 or macOS, make a folder for the course, and check from VS Code's terminal that Node.js is ready.
- [Setup: Windows Terminal and PowerShell 7](https://www.ask-codey.com/lessons/powershell-setup-windows) (Novice): Install PowerShell 7 with winget, make it the shell Windows Terminal opens every time, make the practice folder this course works in, and learn when a job needs a window run as administrator.
- [Setup: Windows Terminal and winget](https://www.ask-codey.com/lessons/os-and-terminal-tools-windows-setup-windows-terminal-and-winget) (Novice): Check that Windows Terminal and winget are ready, so you can install every other bootcamp tool.
- [Several Charts on One Page: subplots and savefig](https://www.ask-codey.com/lessons/data-subplots-and-saving) (Journeyman): plt.subplots(2, 2, figsize=(10, 8), layout="constrained") makes one page with a grid of four Axes, each chart is drawn on its own Axes such as axs\[0, 0\], fig.suptitle gives the page a title, and fig.savefig saves it with dpi and bbox_inches="tight", as a PNG for a report or an SVG that stays sharp at any size.
- [Several Summaries at Once: agg](https://www.ask-codey.com/lessons/pandas-groupby-agg) (Journeyman): agg works out several summaries for each group in one table, from a list such as \['sum', 'mean', 'count'\] or by named aggregation, which names each new column and the column and summary it comes from; groupby takes a list of columns to group by two things at once, and reset_index or as_index=False turns the group labels back into ordinary columns.
- [Shaping a Document: Embed or Reference](https://www.ask-codey.com/lessons/node-mongodb-designing-documents) (Journeyman): Related data either goes inside a document, embedded, when it is read with it, or lives in its own collection and is pointed to by its \_id, referenced, when it is shared, changes on its own or grows without end.
- [Shaping the Report: $project, $set, $sort and $limit](https://www.ask-codey.com/lessons/mongodb-aggregation-project-sort-limit) (Journeyman): Four stages turn a pipeline's correct answer into a report someone can read, $sort and $limit for the top few, $project to choose and rename fields, and $set to compute new ones with expressions such as $multiply and $round, and the order of the stages changes what comes out.
- [Shares and Percentages of a Total](https://www.ask-codey.com/lessons/pandas-shares-of-a-total) (Journeyman): A group's total means more beside the whole, so divide each group's total by the grand total and multiply by 100 for its share as a percentage; transform('sum') lines each group's total up with every row, so each row's share of its own group is one division; and shares are rounded to one decimal place only at the end, for people to read.
- [Sharing a Notebook as a Web Page](https://www.ask-codey.com/lessons/data-exporting-notebooks) (Journeyman): Run Restart and Run All, then turn the notebook into a web page anyone can open with jupyter nbconvert --to html, add --no-input to hide the code from readers who don't want it, or use VS Code's Export, which runs nbconvert too; PDF needs extra programs, and a notebook's saved outputs make its Git history noisy, so readers get the HTML.
- [Sharing Your Tool](https://www.ask-codey.com/lessons/powershell-sharing-your-tool) (Journeyman): A module is ready to share when it has a README that says what it does and how to install it, a version number that follows MAJOR.MINOR.PATCH, and a license that says what others may do with it; Publish-PSResource then packs it into a repository, a folder registered with Register-PSResourceRepository for practice, or the PowerShell Gallery.
- [Sharing Your Tool](https://www.ask-codey.com/lessons/bash-sharing-your-tool) (Journeyman): A script someone else can use explains itself with --help and --version, comes with a README that says what it does and how to install it, an install script that puts it on their PATH, and a license that says what they may do with it, and GitHub is where people find it.
- [Shell, Terminal, Prompt](https://www.ask-codey.com/lessons/bash-shell-terminal-prompt) (Novice): The terminal is the window, the shell is the program inside it that runs your commands, and the prompt is the line where the shell waits for the next one.
- [ShellCheck: A Second Pair of Eyes](https://www.ask-codey.com/lessons/bash-shellcheck) (Journeyman): ShellCheck reads a script without running it and points out likely mistakes, each with its line, a code such as SC2086 and a plain message; the codes worth knowing are an unquoted variable, a cd that might fail and a loop over ls, and a disable comment silences one warning on purpose.
- [Short Names: Aliases](https://www.ask-codey.com/lessons/powershell-aliases) (Novice): An alias is a short second name for a command, such as ls or dir for Get-ChildItem, and Get-Alias shows what an alias really runs, so you can use short names at the prompt and full names in scripts.
- [Shortcuts to Files: ln -s](https://www.ask-codey.com/lessons/bash-symbolic-links) (Apprentice): ln -s makes a symbolic link, a short name that points to a file or folder somewhere else, and the link works until the real thing moves or is deleted.
- [Shortcuts to Files: Symbolic Links and Junctions](https://www.ask-codey.com/lessons/powershell-links) (Journeyman): A link is a signpost to a real file or folder that every program follows; a junction links to a folder with no special rights, while a symbolic link can also point at a file but needs administrator rights or Developer Mode on Windows.
- [Signals and computed](https://www.ask-codey.com/lessons/state-with-signals-signals-and-computed) (Apprentice): A signal holds a value that changes, and tells Angular when it does, so the page always shows the latest. Read it by calling it, change it with set or update, and derive values from signals with computed, which recalculates by itself.
- [Signals and Observables Together](https://www.ask-codey.com/lessons/calling-apis-from-angular-signals-and-observables-together) (Journeyman): toSignal turns an observable into a signal, subscribing straight away and unsubscribing when the component goes, so a template reads API data like any signal. For loading and error states, subscribe and set signals for the data, the loading flag and the message.
- [Sign-Up and Sign-In Routes](https://www.ask-codey.com/lessons/node-auth-sign-up-and-sign-in) (Journeyman): A sign-up route hashes the password, saves the student behind a unique index on email and answers 409 for an email that's taken, and a sign-in route checks the password with compare and answers one vague 401 for any mistake, never sending a hash back.
- [Sign-Up and Sign-In Routes](https://www.ask-codey.com/lessons/fastapi-auth-sign-up-and-sign-in) (Journeyman): A students table with a password_hash column and a UNIQUE email holds the accounts, a sign-up route hashes the password and answers 201 with the new student or 409 for a used email, a response model keeps the hash out of every answer, and sign-in answers a wrong email and a wrong password with the same 401.
- [Simple Factory: One Place That Says new](https://www.ask-codey.com/lessons/dp-simple-factory) (Apprentice): When the same if chain that picks a class is copied into several places, a new product means editing all of them, and one is always forgotten; a simple factory moves that decision into one function, so a new product is one new class and one new line.
- [Simple SELECT Query](https://www.ask-codey.com/lessons/the-select-statement-simple-select-query) (Novice): Use SELECT \* FROM to return every column and every row of a table or view.
- [Simple SELECT Query](https://www.ask-codey.com/lessons/select-in-t-sql-simple-select-query) (Novice): SELECT \* FROM a table returns every column and every row, the quickest way to see what a table holds.
- [Single Responsibility: One Reason to Change](https://www.ask-codey.com/lessons/dp-single-responsibility) (Apprentice): When one class works out the grades, lays out the report card and emails it, three different people's changes all land in the same class and can break each other; the first SOLID principle, single responsibility, says to give each class one reason to change, and this lesson opens with what SOLID is and where it came from.
- [Singleton: Only One, Ever](https://www.ask-codey.com/lessons/dp-singleton) (Apprentice): When two parts of an app each make their own copy of something the whole app should share, such as the shop's settings, they quietly disagree; the Singleton pattern makes a class allow only one object and gives everyone the same one.
- [Slicing Lists and Strings](https://www.ask-codey.com/lessons/python-indexing-and-slicing) (Apprentice): A slice such as stops\[1:4\] takes part of a list or a string, from the start index up to but not including the stop index, with an optional step, and because a string can't be changed in place, you build a changed copy from slices instead.
- [Smells of Choosing: The switch That Keeps Growing](https://www.ask-codey.com/lessons/dp-smells-of-choosing) (Journeyman): When the same switch on a kind of thing is copied into many places, a new kind means a hunt through the code and one copy is always missed; the smells of choosing all come from one decision with no home, and their cures give it one.
- [Smells of Combining: A Class for Every Combination](https://www.ask-codey.com/lessons/dp-smells-of-combining) (Journeyman): When every mix of features gets its own class (YogaClassWithReminderAndWaitlist), or every missing piece gets its own null check, each new feature doubles the classes or adds a check to every screen; the smells of combining come from building mixes by copying instead of from small parts, and their cures put the parts together.
- [Smells of Making: new Everywhere](https://www.ask-codey.com/lessons/dp-smells-of-making) (Journeyman): When the code that uses an object also builds it (new scattered through business code, a constructor with nine arguments, a class that opens its own database connection), every change to how things are made touches the code that uses them, and nothing can be tested on its own; the cures give making its own home.
- [Smells of Size: The Long Method and the Class That Does Everything](https://www.ask-codey.com/lessons/dp-smells-of-size) (Journeyman): When one method or class keeps every job that was ever added to it, nothing inside can be reused or tested on its own, and a new feature means copying part of it; the smells of size come from jobs that were never given names, and the plainest cure, pulling out a method, gives them one.
- [Smells of Tangling: Reaching Through Objects](https://www.ask-codey.com/lessons/dp-smells-of-tangling) (Journeyman): When code reaches through one object to another to get an answer (booking.member().plan().price()), one small rule change touches every place that reaches, and one is always missed; the smells of tangling all come from code that knows too much about other objects, and their cures move the knowledge to where it belongs.
- [Software Interfaces](https://www.ask-codey.com/lessons/interfaces-in-csharp-software-interfaces) (Apprentice): A software interface is a contract between pieces of code. It lists what a class can do, never how, so code can use any class that keeps the contract. .NET is full of them, such as IEnumerable&lt;T>.
- [Software Interfaces](https://www.ask-codey.com/lessons/what-is-an-interface-software-interfaces) (Apprentice): A software interface is a contract that defines how one piece of code can interact with another.
- [Solving Multiple Inheritance](https://www.ask-codey.com/lessons/interfaces-in-csharp-solving-multiple-inheritance) (Journeyman): A C# class can have only one base class, which avoids the confusion of inheriting two versions of the same method. Instead, it can implement as many interfaces as it needs, since an interface brings a contract, not code.
- [Solving Multiple Inheritance](https://www.ask-codey.com/lessons/abstraction-through-interfaces-solving-multiple-inheritance) (Journeyman): Java allows only one parent class, so interfaces let a class take on more than one set of abilities without the problems of multiple inheritance.
- [Sorting a Million Songs, and the Playlist You Can't Compute: O(n log n) and O(2ⁿ)](https://www.ask-codey.com/lessons/big-o-n-log-n-and-exponential) (Apprentice): See why a good sort handles a million songs in under a second while the obvious ways take most of a day, and why a playlist that fills exactly 60 minutes can't be found by trying every combination: O(n log n) and O(2ⁿ).
- [Sorting and Paging Results](https://www.ask-codey.com/lessons/node-mongodb-sort-and-paging) (Journeyman): sort puts a query's results in order, skip and limit cut out one page of them, and countDocuments counts every match, so an API can answer with page 2 of 3 instead of every document at once.
- [Sorting and Paging: sort, limit and skip](https://www.ask-codey.com/lessons/mongodb-sorting-and-paging) (Apprentice): sort puts results in order (1 up, -1 down) with a second field to break ties, limit caps how many come back, skip passes over the pages before, and countDocuments gives the number of pages.
- [Sorting and Top Lists](https://www.ask-codey.com/lessons/pandas-sorting-and-top-lists) (Apprentice): sort_values puts a table's rows in order by one column or several, with ascending= saying which way for each; nlargest and nsmallest give the top or bottom rows by a column in one call; and reset_index(drop=True) numbers a top list 0, 1, 2 instead of keeping the old row labels.
- [Sorting Arrays](https://www.ask-codey.com/lessons/javascript-array-methods-sort) (Apprentice): sort puts an array in order, but it compares items as text unless you give it a compare function, and it changes the array itself, so toSorted is the way to get a sorted copy and keep the original.
- [Sorting with key and lambda](https://www.ask-codey.com/lessons/python-sorting-with-key-and-lambda) (Journeyman): sorted() takes a key, a function it calls on each item to get the value to compare, so a short lambda can sort recipes by their minutes or a dictionary's entries by their values, from largest to smallest with reverse=True.
- [Sorting Without a Second Copy: Quicksort](https://www.ask-codey.com/lessons/ds-quicksort) (Journeyman): Sort 2 million photos by date on a phone that's short of memory: why merge sort's second copy and selection sort's trillions of comparisons both fall short, and the sort that does its work in place, quicksort, with the one bad day you have to guard against.
- [Sorting, Cutting and Checking Streams](https://www.ask-codey.com/lessons/common-java-stream-functions) (Journeyman): Put a list of objects in order, cut it into pages, and ask it yes-or-no questions with the stream functions Java developers use every day.
- [Sorting: Sort-Object](https://www.ask-codey.com/lessons/powershell-sort-object) (Apprentice): Sort-Object puts objects in order by any property, smallest or A first unless you add -Descending, and with Select-Object -First after it gives you the top ten of anything, such as the ten biggest files on a drive; -Unique lists each value once.
- [Specificity: Scoring a Selector](https://www.ask-codey.com/lessons/css-specificity) (Apprentice): Specificity is the score the browser gives every selector, in three columns, and comparing two scores column by column tells you which rule wins before you refresh.
- [Specifying Columns](https://www.ask-codey.com/lessons/the-select-statement-specifying-columns) (Novice): List the columns you want after SELECT, in the order you want them, instead of using \*.
- [Specifying Columns](https://www.ask-codey.com/lessons/select-in-t-sql-specifying-columns) (Novice): List the columns you want, in the order you want them, and rename them in the result with AS.
- [Splits for Time and Groups](https://www.ask-codey.com/lessons/ml-splits-for-time-and-groups) (Freelancer): Shuffled folds assume every row is independent of the others, which isn't true for data in time order, where shuffling lets a model learn from the future, or for data with repeats, where the same customer lands on both sides; TimeSeriesSplit always tests on rows that come after the ones it learned from, and GroupKFold keeps each group on one side.
- [Splitting and Extracting Text](https://www.ask-codey.com/lessons/pandas-split-and-extract) (Journeyman): str.split with expand=True turns one text column into several, with n=1 to split at the first space only, and str.extract with the short regular expression (\\d+), read 'one or more digits, kept', pulls a number out of text typed in many different ways, where a plain replace would need a call for every wording.
- [Splitting Data with train_test_split](https://www.ask-codey.com/lessons/ml-train-test-split) (Journeyman): train_test_split shuffles the examples and holds a share back as test data (test_size=0.2 holds back a fifth, and 25% when no size is given), random_state fixes the shuffle so every run splits the same way, and the split comes before anything learns, so the test homes stay unseen.
- [Spread and Rest](https://www.ask-codey.com/lessons/javascript-unpacking-spread-and-rest) (Apprentice): Assigning an object to a new variable doesn't copy it, so this lesson shows how spread makes real copies and merges, and how rest gathers any number of values into one.
- [Spreadsheets as Objects: Import-Csv](https://www.ask-codey.com/lessons/powershell-import-csv) (Apprentice): Import-Csv reads a CSV file, the plain-text kind of spreadsheet that shops, banks and apps export, and turns each row into an object with one property for each column, so you can filter, sort, group and add up the rows with the commands from Module 3.
- [SQL Server Management Studio](https://www.ask-codey.com/lessons/using-sql-server-sql-server-management-studio) (Novice): Create the course's sample databases in SSMS, find your way around Object Explorer, and run your first queries.
- [SQLAlchemy and SQLModel: When a Project Uses an ORM](https://www.ask-codey.com/lessons/fastapi-data-orms) (Journeyman): An ORM such as SQLAlchemy or SQLModel lets a project describe each table as a Python class and ask for rows with Python methods that write the SQL for it; this lesson reads the same workout query written with sqlite3, SQLAlchemy and SQLModel, what each costs and gives, and the signs that show which one a project uses.
- [Squared Errors and RMSE](https://www.ask-codey.com/lessons/ml-root-mean-squared-error) (Journeyman): Squaring each error before averaging makes big misses count much more, giving the mean squared error in squared units, and its square root, the root mean squared error (RMSE), puts it back in the label's units; RMSE is never smaller than the MAE, and a big gap between them says a few guesses are very wrong.
- [SSH Keys and ~/.ssh/config](https://www.ask-codey.com/lessons/bash-ssh-keys) (Journeyman): An SSH key pair logs you in without a password: ssh-keygen makes a private key that stays on your computer and a public key you hand out, ssh-copy-id puts the public key on a server, and a Host block in ~/.ssh/config gives the server a short name.
- [Stacking Tables with concat](https://www.ask-codey.com/lessons/pandas-concat) (Apprentice): pd.concat stacks tables that share their columns into one, ignore_index=True numbers the rows again from 0, a column added before stacking says which file each row came from, and a column named differently in one file shows up as a new column full of gaps.
- [Stacking: z-index and What Sits on Top](https://www.ask-codey.com/lessons/css-z-index-and-stacking) (Journeyman): When boxes overlap, the browser stacks them like papers on a desk, and z-index, positioning and stacking contexts decide which one ends up on top, including why z-index 9999 sometimes still loses.
- [Stacks](https://www.ask-codey.com/lessons/advanced-collections-in-csharp-stacks) (Journeyman): A Stack&lt;T> hands values back newest first, last in, first out. Push adds to the top, Pop takes from the top, and Peek looks without taking. Undo is the classic use.
- [Stacks](https://www.ask-codey.com/lessons/types-of-collections-stacks) (Journeyman): A Stack is a collection that allows you to access the elements in the reverse order in which they were added to the collection.
- [Starting Programs: \`Start-Process\`](https://www.ask-codey.com/lessons/powershell-start-process) (Journeyman): Start-Process opens a file or folder in the app a double-click would use, starts a program with arguments in its own window or none, hands back its process with -PassThru, waits for it with -Wait or Wait-Process so you can read its ExitCode, and asks Windows for administrator rights with -Verb RunAs.
- [Startup Files: .bashrc, .zshrc and source](https://www.ask-codey.com/lessons/bash-startup-files) (Apprentice): Bash reads ~/.bashrc every time a terminal opens, and a Mac's zsh reads ~/.zshrc, so aliases and functions you add there are always ready; keep a backup before you edit it, and use source to load your changes into the shell you're in.
- [Startup, Shutdown and a Health Check](https://www.ask-codey.com/lessons/fastapi-pro-lifespan-and-health) (Freelancer): FastAPI's lifespan function runs code once as the app starts, such as the migrations, and once as it stops, a TestClient used in a with block runs it in tests, and a /health route that asks the database a real question answers 200 when the API can do its job and 503 in the one error shape when it can't, which is what a host checks before it sends anyone to the app.
- [State: What You Can Do Depends on Where It Is](https://www.ask-codey.com/lessons/dp-state) (Journeyman): When every method of a package starts by checking its status, a new status means editing every method, and the one you miss breaks a rule; drawing the rules as a state diagram, then giving each status its own class, puts each status's rules in one place: the State pattern.
- [Static](https://www.ask-codey.com/lessons/css-position-static) (Apprentice): Static is the default position, where elements sit in the normal flow of the page and top and left don't move them.
- [Static vs Dynamic Typing](https://www.ask-codey.com/lessons/csharp-vs-javascript-static-vs-dynamic-typing) (Novice): In C#, a variable's type is fixed when it's declared. In JavaScript, variables have no type; values do, and a variable can hold any of them. Declare with const by default, let when the value changes, and never var.
- [Static vs Dynamic Typing](https://www.ask-codey.com/lessons/java-vs-javascript-static-vs-dynamic-typing) (Novice): How JavaScript's dynamic typing differs from Java's static typing, and when to declare a variable with const, let or var.
- [Static Websites](https://www.ask-codey.com/lessons/network-communication-static-websites) (Apprentice): A static website is built from hand-written HTML files, so the path in a page's URL is the path to that file on the server.
- [Status Codes and Headers](https://www.ask-codey.com/lessons/fastapi-http-status-codes-and-headers) (Apprentice): A response's three-digit status code tells the app how its request went before it reads a word of the body, its first digit names the family (2xx it worked, 3xx look elsewhere, 4xx the request has a problem, 5xx the server broke), and headers such as Content-Type tell the app how to read the body.
- [Status Codes and Headers](https://www.ask-codey.com/lessons/node-http-status-codes-and-headers) (Apprentice): A response's three-digit status code tells the client how its request went before it reads a word of the body, and headers such as Content-Type tell it how to read that body.
- [Sticky](https://www.ask-codey.com/lessons/css-position-sticky) (Apprentice): A sticky element scrolls with the page until it reaches its top offset, then stays put until its parent scrolls away.
- [Stopping Early: \`break\` and \`continue\`](https://www.ask-codey.com/lessons/powershell-loop-control) (Apprentice): A loop keeps a count or a running total in a variable started before it, continue skips the rest of one pass and goes on with the next item, break leaves the loop at once, and inside ForEach-Object return skips an item instead.
- [Stopping Early: break, continue and Counters](https://www.ask-codey.com/lessons/bash-loop-control) (Apprentice): A counter or running total is a variable a loop adds to each time round with $(( )); continue skips the rest of one pass and goes on with the next item, and break leaves the loop early.
- [Stopping Things: kill and Signals](https://www.ask-codey.com/lessons/bash-kill-and-signals) (Journeyman): kill sends a process a signal: plain kill sends TERM, a polite request to finish up and stop; kill -KILL ends a process that ignores it; pgrep -af and pkill -f find and stop processes by name; and Ctrl+C sends INT to the program in front of you.
- [Storing Passwords Safely: Hashing](https://www.ask-codey.com/lessons/node-auth-passwords-and-hashing) (Journeyman): An app never keeps a password itself; it keeps a bcrypt hash, a one-way fingerprint made with a random salt and a slow cost factor, and it checks each sign-in with bcryptjs's compare.
- [Storing Passwords Safely: Hashing with pwdlib](https://www.ask-codey.com/lessons/fastapi-auth-passwords-and-hashing) (Journeyman): An API never stores a password, plain or encrypted, only a slow, salted, one-way hash of it made with Argon2 through pwdlib's PasswordHash.recommended(), and it checks each sign-in attempt with verify.
- [Strangler Fig: Replace an Old System One Piece at a Time](https://www.ask-codey.com/lessons/dp-strangler-fig) (Freelancer): When an old system is too tangled to keep fixing and too important to switch off for a rewrite, put a facade in front of it and move one feature at a time behind that facade to new code, with an adapter at the border so the old system's ideas don't leak in, until the old system has nothing left to do.
- [Strategy or Template Method?](https://www.ask-codey.com/lessons/dp-strategy-vs-template-method) (Journeyman): Strategy and Template Method both let one step of a routine vary: Strategy hands the step in as an object or function (has-a), Template Method leaves it for a subclass to fill in (is-a); a look-alike table, a run-time change and a second varying step show what each costs, and why most teams reach for Strategy first.
- [Strategy: When the Rule Needs a Class of Its Own](https://www.ask-codey.com/lessons/dp-strategy) (Journeyman): Pass 1 handed the weekly deal in as one function; a carrier's rate needs its own numbers and answers more than one question, so the function grows into a class per carrier, each holding its numbers and keeping one promise, and the quote screen asks whichever carrier it's handed: the Strategy pattern in its classic form.
- [Stratified Splits](https://www.ask-codey.com/lessons/ml-stratified-splits) (Journeyman): A random split can leave more or fewer of one class in the test part than in the data, and stratify=y makes train_test_split keep each class's share the same in both parts, which you check with value_counts(normalize=True).
- [Streams: Big Files a Piece at a Time](https://www.ask-codey.com/lessons/node-streams-big-files) (Journeyman): A stream moves a file or a response a piece at a time instead of loading it whole, so pipeline from node:stream/promises can copy a huge file, readline can read a big CSV line by line, and an Express route can send a CSV export without holding it in memory.
- [Strict Mode: set -euo pipefail](https://www.ask-codey.com/lessons/bash-strict-mode) (Freelancer): set -euo pipefail makes a script stop at the first sign of trouble: -e stops at a command that fails, -u at a variable that was never set, and -o pipefail at a pipeline with a failing part, with a few surprises to know about: a grep that finds nothing, ((count++)) and a missing $1.
- [String Interpolation](https://www.ask-codey.com/lessons/strings-in-csharp-string-interpolation) (Novice): Build strings by putting values straight into the text with $"...{value}...", and format numbers, money and columns as you go.
- [String Methods](https://www.ask-codey.com/lessons/javascript-text-string-methods) (Apprentice): String methods such as trim, toLowerCase, slice, replaceAll, split, join and padStart tidy and reshape text, and each one hands back a new string while the original stays as it was.
- [Strings and f-strings](https://www.ask-codey.com/lessons/python-strings-and-f-strings) (Novice): Text in Python is a string, written in quotes, joined with + and tidied with methods such as strip() and title(), and an f-string drops values into text, with :.2f to show money to two decimal places.
- [Strings and Template Literals](https://www.ask-codey.com/lessons/javascript-strings-and-template-literals) (Novice): Store text in strings, build messages from your values with template literals, and tidy and search text with length, trim, toUpperCase and includes.
- [Structure Elements: header, nav, main, section and footer](https://www.ask-codey.com/lessons/css-html-structure-elements) (Novice): Structure elements such as header, nav, main, aside and footer label the parts of a page by what they are, which helps people using screen readers, search engines, and you when you style each part.
- [Structured Data with JSON-LD](https://www.ask-codey.com/lessons/html-metadata-structured-data) (Freelancer): A JSON-LD block in a page's head describes a business to search engines as labeled facts (its name, address, location and hours), using the shared schema.org vocabulary.
- [Styling a List That Stays a List](https://www.ask-codey.com/lessons/css-styling-lists) (Apprentice): When a list should still look like a list, list-style-type, list-style-position, the list-style shorthand and ::marker change its bullets and numbers, and a few spacing rules make long and nested lists comfortable to read.
- [Subcommands: app add, app list](https://www.ask-codey.com/lessons/bash-subcommands) (Freelancer): A tool that does several jobs gives each job a word of its own, a subcommand, as git and docker do: a case on the first argument picks the job, shift drops that word, and one function per subcommand does the work.
- [Subgrid: Lining Up Cards](https://www.ask-codey.com/lessons/css-subgrid) (Freelancer): With grid-template-rows: subgrid, cards in a row share their parent grid's rows, so every card's title, text and button line up across the row however long each card's text is.
- [sudo and Who Owns a File](https://www.ask-codey.com/lessons/bash-sudo-and-ownership) (Journeyman): Every file has an owner and a group, and only root, the computer's administrator account, may change anything; sudo runs one command as root after asking for your password, and chown gives a file a new owner, so both are used rarely and on purpose.
- [Summary](https://www.ask-codey.com/lessons/abstraction-in-oop-summary) (Journeyman): A recap of abstraction as an OOP idea and the \`abstract\` class as the Java tool that helps you reach it.
- [Summary](https://www.ask-codey.com/lessons/java-vs-javascript-summary) (Apprentice): A recap of how JavaScript differs from Java, and where to go further.
- [Summary](https://www.ask-codey.com/lessons/abstraction-in-csharp-summary) (Journeyman): Abstraction is a goal; the abstract keyword is one C# tool for reaching it. Choose an ordinary, virtual or abstract method by whether derived classes keep, may change or must write it.
- [Summary](https://www.ask-codey.com/lessons/csharp-vs-javascript-summary) (Apprentice): Compare with === and !==, never == and !=, which convert types first. In a condition, false, 0, an empty string, null, undefined and NaN count as false, and everything else as true. A cheat sheet of C# and its JavaScript equivalents.
- [Switch](https://www.ask-codey.com/lessons/conditional-logic-in-csharp-switch) (Apprentice): Pick one of many blocks of code by the value of a single variable with C#'s switch statement, including shared cases and a default.
- [Switch](https://www.ask-codey.com/lessons/conditional-logic-switch) (Apprentice): The switch statement provides a more readable and efficient way to execute different code blocks based on the value of a single variable.
- [switch and the Conditional Operator](https://www.ask-codey.com/lessons/javascript-conditions-switch-and-ternary) (Apprentice): A switch statement matches one value against a list of exact choices, and the conditional operator ? : picks one of two values in a single line, so a long chain of else ifs can say what it means.
- [Switch Expressions](https://www.ask-codey.com/lessons/conditional-logic-switch-expressions) (Apprentice): Java's arrow switch never falls through, lets one case match several values, and can give back a value you store in a variable, with no break to forget.
- [Switch Expressions and the Conditional Operator](https://www.ask-codey.com/lessons/conditional-logic-in-csharp-switch-expressions) (Apprentice): Choose a value, rather than run a block, with C#'s conditional operator for two choices and a switch expression for many.
- [Table Headers, Sections and Spanning Cells](https://www.ask-codey.com/lessons/html-table-headers-and-spanning) (Journeyman): Bigger tables group their rows into a head, a body and a foot, tell each header cell what it labels with scope, and merge cells across columns or rows with colspan and rowspan.
- [Tables and Documents: Two Ways to Store a Recipe](https://www.ask-codey.com/lessons/mongodb-tables-and-documents) (Novice): A recipe card with lists of ingredients and steps breaks a single spreadsheet table; a relational database splits it into tables joined back together, and a document database keeps the whole card in one document.
- [Tables and Lists: Format-Table and Format-List](https://www.ask-codey.com/lessons/powershell-format-output) (Apprentice): PowerShell shows each kind of object with a saved view of a few properties, Format-Table and Format-List show the ones you choose as a table or a list, Format-List \* shows every one, and a Format- command goes last because what comes out of it is for the screen, not for other commands.
- [Tables and Rows: CREATE TABLE and INSERT](https://www.ask-codey.com/lessons/fastapi-sql-create-and-insert) (Apprentice): CREATE TABLE IF NOT EXISTS gives each column a type and rules such as NOT NULL, DEFAULT and CHECK that refuse bad rows, and INSERT adds rows with ? placeholders, one at a time with execute or many with executemany, with lastrowid giving the new row's id.
- [Tables for Data](https://www.ask-codey.com/lessons/html-tables-for-data) (Apprentice): A table holds data you read both across a row and down a column, built from rows of header and data cells with a caption that says what the table shows, and it's never used to lay out a page.
- [Tables for Data: Rows, Columns and Styling Them](https://www.ask-codey.com/lessons/css-tables-for-data) (Apprentice): When data has rows and columns that mean something, such as prices, opening hours or high scores, a table holds it, so you write it with caption, thead, tbody, th and td, then make it readable with border-collapse, padding, aligned numbers, stripes and a box that scrolls on a phone.
- [Tables People Can Read](https://www.ask-codey.com/lessons/data-tables-people-can-read) (Journeyman): A table in a report keeps only the columns a reader needs, renames them in plain words, rounds its numbers, shows the top ten instead of every row, and uses df.style.format to show money as $20.00 and shares as 97.2% with the index hidden.
- [Taking JSON In: Your First Request Body](https://www.ask-codey.com/lessons/fastapi-first-request-body) (Apprentice): A POST route takes the JSON a request sends in its body through a small Pydantic model, a class that names each field and its type, then turns it into a dictionary with model_dump(), gives the new item the next id, and answers 201 with it.
- [Taking Pipeline Input](https://www.ask-codey.com/lessons/powershell-pipeline-input) (Freelancer): A parameter marked \[Parameter(ValueFromPipeline)\] receives each object that comes down the pipeline, a process block runs once for each of them, and begin and end run once before the first and after the last, for the setup and the totals.
- [Talking to the Web: curl](https://www.ask-codey.com/lessons/bash-curl) (Journeyman): curl fetches whatever is at a web address, from the terminal or a script: it prints a page, saves a download with -o or -O, asks a web API for JSON, shows the status code with -w, and with -f fails on an error instead of saving the error page.
- [Tasks, async and await](https://www.ask-codey.com/lessons/async-and-await-in-csharp-tasks-async-and-await) (Journeyman): A Task is work that finishes later. An async method can await a task, which frees its thread while it waits for a database or the network, so a web server can keep serving other requests. Await every async call, and name async methods with Async.
- [Tee and Xargs: Splitting and Feeding](https://www.ask-codey.com/lessons/bash-tee-and-xargs) (Journeyman): tee saves what flows through a pipe into a file and passes it on, so you can keep a report and read it at once, and xargs turns the lines it reads into arguments for commands such as mkdir and rm, which don't read a pipe.
- [Template Method: Same Routine, Your Own Step](https://www.ask-codey.com/lessons/dp-template-method) (Journeyman): When three label classes copy the same four steps and differ only in the barcode, a fix to the shared steps has to be made three times, and one copy is always missed; writing the routine once in a base class and letting each carrier's subclass fill in its own barcode is the Template Method pattern.
- [Templates and Interpolation](https://www.ask-codey.com/lessons/angular-components-templates-and-interpolation) (Novice): Double braces in a template, {{ like this }}, show a value from the component's class. They can hold any simple expression, and a pipe after a | formats it, such as uppercase, currency or date, once the pipe is imported.
- [Templates, Slots and Custom Elements](https://www.ask-codey.com/lessons/html-templates-slots-and-custom-elements) (Freelancer): Write a layout once with a template and named slots, give a card its own layout with declarative shadow DOM and no JavaScript, and use custom elements such as a star rating from a ready-made script.
- [Test-Driven Development](https://www.ask-codey.com/lessons/unit-testing-with-mstest-test-driven-development) (Apprentice): In test-driven development you write a failing test first, then just enough code to pass it, then tidy up. Follow three short cycles that build a shipping calculator.
- [Testing a Chart Without Looking at It](https://www.ask-codey.com/lessons/data-testing-charts) (Journeyman): A chart function that returns its Figure and Axes can be tested like any other function, by reading what the Axes holds, its title, axis labels, each bar's height and a line's data, with matplotlib's Agg backend set in conftest.py and every figure closed with plt.close.
- [Testing a Page for Accessibility](https://www.ask-codey.com/lessons/html-accessibility-testing-a-page) (Journeyman): A repeatable accessibility check takes about fifteen minutes, keyboard only, a screen reader, Lighthouse and axe, 200% zoom and captions, and it finds the barriers a person meets and a tool misses.
- [Testing a Page with jsdom](https://www.ask-codey.com/lessons/javascript-testing-the-dom) (Freelancer): jsdom is a browser without a screen that runs inside your tests, so Vitest can build a little page, click its buttons with dispatchEvent and check what the page says, in a moment and without opening a browser.
- [Testing a Route](https://www.ask-codey.com/lessons/python-taste-fastapi-testing-a-route) (Apprentice): FastAPI's TestClient sends requests straight to your app with no server running, so pytest tests can check each route's status code and the JSON it answers with, including the 404 for an item that isn't there, every time the code changes.
- [Testing an API with Supertest](https://www.ask-codey.com/lessons/node-testing-supertest) (Journeyman): Supertest hands a request straight to an Express app, with no server running and no port, so a test can check the status code, the headers and the JSON body that come back, for a GET and for a POST with a body.
- [Testing an API with TestClient](https://www.ask-codey.com/lessons/fastapi-testing-testclient) (Journeyman): FastAPI's TestClient hands a request straight to your app, with no server running and no port, so a pytest test can check the status code, a header and the JSON body that come back, for a GET and for a POST with a body.
- [Testing Edge Cases and Errors](https://www.ask-codey.com/lessons/python-testing-edge-cases-and-errors) (Journeyman): Bugs hide at the edges of what a function accepts, so good tests try zero and empty values, the smallest and biggest values allowed and each side of a boundary, make sure bad values are refused with pytest.raises, and run many examples through one test with parametrize.
- [Testing Edge Cases, Errors and Async Code](https://www.ask-codey.com/lessons/javascript-testing-edge-cases-errors-async) (Freelancer): Bugs hide at the limits, in the errors and in the code that waits, so this lesson tests all three with Vitest, using toThrow, resolves and rejects, and fake timers that skip ahead in time.
- [Testing Errors, with a Fresh Start for Every Test](https://www.ask-codey.com/lessons/node-testing-errors-and-fresh-state) (Journeyman): An API's error answers, such as 400, 404 and 409 with their JSON bodies, are part of what it promises, so they get tests too, and beforeEach puts the in-memory data back before every test, so each one starts from the same seats.
- [Testing Errors, with a Fresh Start for Every Test](https://www.ask-codey.com/lessons/fastapi-testing-errors-and-fresh-state) (Journeyman): Tests for an API's error answers check the status code, the whole error body and that nothing changed, @pytest.mark.parametrize runs one test for each bad value, and an autouse fixture that resets the data gives every test the same fresh start, so the tests pass alone and in any order.
- [Testing pandas Functions with Small Tables](https://www.ask-codey.com/lessons/data-testing-pandas-functions) (Journeyman): A real week of data is too big to check by hand, so a test runs the function on a few rows made by hand, where the right answer is clear, and checks one number, a column or a whole table with assert_frame_equal, then the empty table, the missing value and the table it was given.
- [Testing Protected Routes](https://www.ask-codey.com/lessons/fastapi-auth-testing-protected-routes) (Journeyman): Tests for an API's rules about who may do what sign in inside a fixture and send the token in the Authorization header, try each rule as each kind of user and once with no token, and can override get_current_user with dependency_overrides as a shortcut, knowing it skips the token check.
- [Testing Scripts with bats](https://www.ask-codey.com/lessons/bash-testing-with-bats) (Freelancer): A test is a small script that runs yours and checks the result; bats runs a file of them, each written with @test, run and checks on $status and $output, in a fresh folder from setup, and reports each one as passed or failed, with the line that failed.
- [Testing the Data Layer with mongodb-memory-server](https://www.ask-codey.com/lessons/mongodb-driver-testing-with-mongodb-memory-server) (Journeyman): mongodb-memory-server starts a real, throwaway MongoDB for a test file, the way the helper in every exercise of this course does, so before starts it, beforeEach puts the same documents back for every test, node --test and assert check the data layer, Supertest checks a route, and after stops it, never touching your own data.
- [Testing with a Real, Throwaway Database](https://www.ask-codey.com/lessons/fastapi-data-testing-real-database) (Journeyman): API tests that touch a database get a fresh SQLite file in pytest's tmp_path for every test, with the migrations run and a few rows added in a fixture, and app.dependency_overrides swaps get_db for one that opens that file, so the tests run real SQL without ever touching the real data.
- [Testing with Fakes: Why This Pays Off](https://www.ask-codey.com/lessons/dp-testing-with-fakes) (Journeyman): Because the checkout service is handed its clock and its loan repository, a test can hand it a clock set to any day and loans kept in memory, so every late-fee rule and the five-book limit are checked in a few milliseconds, with no database and no waiting; this lesson writes those tests, names the kinds of stand-in (fakes, stubs and mocks), and says what they can't catch.
- [Testing with mongodb-memory-server](https://www.ask-codey.com/lessons/node-mongodb-memory-server-tests) (Journeyman): mongodb-memory-server starts a real, throwaway MongoDB for a test file, so before starts it, beforeEach gives every test the same fresh data, Supertest tests the whole API against it, and after stops it, with your own data never touched.
- [Testing with Pester](https://www.ask-codey.com/lessons/powershell-pester) (Freelancer): A Pester test file, named something.Tests.ps1, groups checks in Describe blocks, each It block runs your code and checks one answer with Should, and Invoke-Pester runs them all in seconds, marks each one passed or failed and says what it expected and what it got; TestDrive: gives every test a throwaway folder for its files.
- [Tests on Every Push with GitHub Actions](https://www.ask-codey.com/lessons/node-pro-github-actions-ci) (Journeyman): A GitHub Actions workflow in .github/workflows/ci.yml runs npm ci, the linter, the format check and the tests on a fresh computer at every push and pull request, so a broken change shows up as a red cross on its commit, with a log that says which step failed and why.
- [Tests on Every Push with GitHub Actions](https://www.ask-codey.com/lessons/fastapi-pro-github-actions-ci) (Journeyman): A GitHub Actions workflow in .github/workflows/ci.yml installs an API's requirements and runs Ruff, mypy and pytest on a fresh computer at every push and pull request, so a change that breaks a check gets a red cross on its commit, with a log that says which step failed and why.
- [Text Inputs and Labels](https://www.ask-codey.com/lessons/html-forms-text-inputs-and-labels) (Apprentice): A text input is a one-line box with a name for the data it sends, and a label tied to it by for and id tells everyone, screen readers included, what the box is for.
- [Text: Quotes and \`$( )\`](https://www.ask-codey.com/lessons/powershell-strings) (Apprentice): Double quotes fill in the values of variables and single quotes keep text exactly as typed, $( ) puts a property or a whole command's answer into text, and a here-string holds text of many lines.
- [The Aggregation Pipeline: Data on a Conveyor Belt](https://www.ask-codey.com/lessons/mongodb-aggregation-pipeline) (Apprentice): An aggregation pipeline sends a collection's documents through a list of stages, each doing one job, so the database can answer report questions that find can't, starting with $match to choose the documents and $count to count them.
- [The Attacks to Expect: Injection and Mass Assignment](https://www.ask-codey.com/lessons/node-security-common-attacks) (Journeyman): The first things attackers try against an API are a MongoDB operator where text belongs, a body that sets fields it shouldn't, and errors that give details away, so an API checks that fields are text, copies only an allow-list of fields, answers errors in plain words and runs npm audit.
- [The Attacks to Expect: Injection and Mass Assignment](https://www.ask-codey.com/lessons/fastapi-security-common-attacks) (Journeyman): An API online gets requests no app of yours would send, so it keeps typed text out of its SQL with placeholders, takes only the fields a person may change with a model that forbids extras, answers errors without their inner details, and checks its packages for known holes with pip-audit.
- [The Back End](https://www.ask-codey.com/lessons/full-stack-the-back-end) (Novice): The back end is the code that runs on a server, keeping the rules of the business and answering the front end through an API, and in this course you'll write it in C# with ASP.NET Core.
- [The Box Model: Content, Padding, Border and Margin](https://www.ask-codey.com/lessons/css-box-model) (Novice): Every element on a page is a box with four layers, content, padding, border and margin, and knowing them is how you control every bit of space on a page.
- [The Cascade: How the Browser Picks a Winner](https://www.ask-codey.com/lessons/css-cascade) (Apprentice): When two CSS rules set the same property on the same element, the browser runs the same tie-breaker contest every time, and knowing its rounds tells you why a style won or lost.
- [The CASE / WHEN Statement](https://www.ask-codey.com/lessons/the-case-when-statement) (Journeyman): How a CASE expression turns values into labels, such as HIGH or LOW, in a query's results.
- [The Confusion Matrix](https://www.ask-codey.com/lessons/ml-confusion-matrix) (Journeyman): A confusion matrix sorts a classifier's guesses into four counts, true positives, false positives, false negatives and true negatives, so you can see which mistakes it makes, and scikit-learn's confusion_matrix puts the actual class in rows and the guessed class in columns, in sorted label order.
- [The CSS You Need for JavaScript](https://www.ask-codey.com/lessons/javascript-page-basics-the-css-you-need) (Novice): Read a CSS rule's selector, properties and values, pick elements by tag name, class, id or what they're inside, and see how a class added or removed by JavaScript changes the way an element looks.
- [The Database](https://www.ask-codey.com/lessons/full-stack-the-database) (Novice): The database is where an app keeps its data so it can be found again in an instant, and in this course you'll design SQL Server databases and question them in T-SQL.
- [The Event Loop, in Pictures](https://www.ask-codey.com/lessons/javascript-async-basics-the-event-loop) (Journeyman): The call stack runs one function at a time, finished timers wait their turn in the task queue, and the event loop moves the next one onto the stack only when the stack is empty, which is why setTimeout(fn, 0) runs after the code around it.
- [The Event Loop, in Server Terms](https://www.ask-codey.com/lessons/node-event-loop-in-server-terms) (Journeyman): Node runs your JavaScript on one thread, like one waiter serving many tables, so it serves many requests at once by starting slow file and network work and moving on while it waits, and a long CPU-heavy loop makes every user wait.
- [The Event Object](https://www.ask-codey.com/lessons/javascript-events-the-event-object) (Apprentice): Every listener is handed an event object that says what just happened, so one function can tell which button was clicked, which element it landed on, and which key was pressed.
- [The F1 Score and the Classification Report](https://www.ask-codey.com/lessons/ml-f1-score) (Journeyman): The F1 score joins precision and recall into one number with their harmonic mean, which stays low when either one is low, scikit-learn gives it with f1_score, and classification_report prints precision, recall and F1 for every class with macro and weighted averages, which you read class by class, because one number can hide the class you care about.
- [The Fastest Drive, Not the Fewest Roads: Dijkstra's Algorithm](https://www.ask-codey.com/lessons/ds-shortest-paths) (Freelancer): Find the fastest route through a town where every road takes a different number of minutes: why counting roads, always taking the shortest next road and trying every route all fail, and the algorithm a GPS uses instead, Dijkstra's algorithm, made fast by a priority queue.
- [The Feature Is Slow: Which Structure Fixes It?](https://www.ask-codey.com/lessons/ds-choosing-a-structure) (Journeyman): Fix a feature that's slow because of how its data is kept, the way developers do: find the job it does most, try the plain fixes against it, and choose the structure whose cost card makes that job cheap, with every cost card from the course side by side.
- [The Folder Tool That Never Stopped: Base Cases](https://www.ask-codey.com/lessons/ds-recursion-base-case) (Apprentice): Find out why the folder tool crashed on one customer's drive, and make every recursive function you write stop: why a bigger stack, catching the error and a depth limit all fall short, and the two rules of a base case that fix it.
- [The Front Desk Finds You in One Scan: Dictionaries](https://www.ask-codey.com/lessons/ds-dictionaries) (Apprentice): Find any of a gym's 2,000 members in one step, 600 times an hour, with the dictionary your language already has: add, read, update and remove entries, read a missing key safely, and know when not to count on its order.
- [The Front End](https://www.ask-codey.com/lessons/full-stack-the-front-end) (Novice): The front end is the part of an app people see and touch, built with HTML, CSS and JavaScript and, in this course, Angular, and a front-end developer makes it clear, fast and enjoyable on every screen.
- [The Grid System](https://www.ask-codey.com/lessons/bootstrap-the-grid-system) (Apprentice): Lay out a page in Bootstrap's 12-column grid of containers, rows and columns, and make the layout change at each screen size with breakpoints.
- [The HTML You Need for JavaScript](https://www.ask-codey.com/lessons/javascript-page-basics-the-html-you-need) (Novice): Read a web page the way JavaScript sees it, as elements with tags, attributes and content nested inside each other, with an id or a class on the ones your code needs to find.
- [The JavaScript Runtime](https://www.ask-codey.com/lessons/the-javascript-runtime) (Novice): What a JavaScript runtime is, and how the browser loads a page's HTML, CSS and JavaScript and runs the script.
- [The JavaScript You Need: Variables, Functions and Modules](https://www.ask-codey.com/lessons/mongodb-javascript-you-need-functions-and-modules) (Apprentice): The pet adoption API in this module is written in JavaScript, and this lesson teaches the part of it you'll change, starting from the objects you already know from mongosh, then const and let, functions with return and template literals, arrow functions with filter and find, and import and export between files.
- [The Kernel: Why Run Order Matters](https://www.ask-codey.com/lessons/data-notebooks-kernel-and-run-order) (Apprentice): A notebook's kernel remembers every name its cells made, in the order they ran rather than the order on the page, so a cell run twice or a deleted cell's variable gives answers the file can't reproduce; execution counts show the real order, Restart and Run All gives the file's true answers, the Variables view lists what the kernel remembers, and Interrupt stops a cell that runs too long.
- [The Middle and the Spread](https://www.ask-codey.com/lessons/ml-stats-center-and-spread) (Apprentice): A column of numbers is summed up by its middle, the mean (the average) or the median (the middle value, which one extreme value can't drag), and by its spread, the standard deviation (how far values typically sit from the mean), the percentiles and the range, which statistics and describe() work out and a histogram shows.
- [The MSTest Framework](https://www.ask-codey.com/lessons/unit-testing-with-mstest-the-mstest-framework) (Apprentice): MSTest is Microsoft's testing framework for .NET. A test runner finds and runs your tests; a test class holds the tests for one class, in a test project of its own.
- [The MVC Pattern in ASP.NET Core](https://www.ask-codey.com/lessons/mvc-pattern-in-aspnet-core) (Apprentice): MVC splits a web app into models that carry data, views that turn it into HTML, and controllers that answer requests. Follow one request through all three.
- [The Ninth Song Won't Fit: Growing Arrays](https://www.ask-codey.com/lessons/ds-dynamic-arrays) (Apprentice): A playlist of 8 slots crashes on the 9th song. Find a way to let it grow to a million songs without every add slowing down, and meet the structure inside every language's list: the growing array.
- [The NoSQL Families in Plain Words](https://www.ask-codey.com/lessons/mongodb-nosql-families) (Novice): NoSQL means "not only SQL", the databases that don't keep their data in relational tables; its four families store key-value pairs, documents, wide rows of columns or a graph of connections, and MongoDB is a document database.
- [The Null-Coalescing Operators ?? and ??=](https://www.ask-codey.com/lessons/nullable-types-in-csharp-null-coalescing-operators) (Apprentice): Give a stand-in for a null value with ??, try several values in turn with a ?? b ?? c, and fill in a variable only when it's null with ??=.
- [The Null-Conditional Operator ?.](https://www.ask-codey.com/lessons/nullable-types-in-csharp-null-conditional-operator) (Apprentice): Read a property, call a method or get an array item from something that may be null with ?. and ?\[\], which give null instead of stopping the program, and add ?? for a stand-in.
- [The Page Skeleton](https://www.ask-codey.com/lessons/html-the-page-skeleton) (Novice): Every HTML page starts from the same skeleton, the doctype, an html element with a head and a body, and knowing what each line does saves you from strange bugs.
- [The Page Skeleton, and Three Places CSS Can Go](https://www.ask-codey.com/lessons/css-html-page-skeleton) (Novice): Every web page shares the same skeleton, a head for information about the page and a body for what people see, and CSS can go in three places in it, of which a linked stylesheet is the one real sites use.
- [The Picture Element](https://www.ask-codey.com/lessons/html-images-the-picture-element) (Journeyman): Use picture and source to offer smaller AVIF and WebP files with a JPEG backup, and to show phones a tighter crop of a photo than big screens get.
- [The Pipeline: |](https://www.ask-codey.com/lessons/powershell-the-pipeline) (Apprentice): The pipe, |, hands every object one command makes to the next command whole, with all its properties, so you can build a job out of small steps and read it from left to right.
- [The Power of CSS](https://www.ask-codey.com/lessons/html-and-css-overview-the-power-of-css) (Novice): CSS Zen Garden shows one HTML page styled many completely different ways, proof of how much CSS alone can change.
- [The Registry as a Drive](https://www.ask-codey.com/lessons/powershell-registry) (Freelancer): The registry is where Windows and its apps keep their settings, and PowerShell shows it as two drives, HKCU: for your own settings and HKLM: for the whole computer, where Get-ChildItem lists keys like folders and Get-ItemProperty reads their values; before changing one, rehearse with -WhatIf and back up the key with reg export.
- [The Request / Response Pattern](https://www.ask-codey.com/lessons/dissecting-the-request-and-response-the-request-response-pattern) (Journeyman): A web request and its response are simple text messages, each made of a header and an optional body.
- [The Same Work from C#](https://www.ask-codey.com/lessons/mongodb-the-same-work-from-csharp) (Journeyman): The official C# driver, MongoDB.Driver from NuGet, does in a .NET 10 program what you've done in mongosh and Node, with a Pet class mapped to documents, filters from a builder or LINQ, and awaited calls such as InsertOneAsync.
- [The Scripts Every Project Has](https://www.ask-codey.com/lessons/powershell-project-scripts) (Journeyman): A build.ps1 gathers a project's chores in one script, each task a function that -Task picks through a ValidateSet parameter and a switch; Get-Command checks that the tools the project needs are installed, and $ErrorActionPreference = 'Stop' with throw stops the script at the first problem.
- [The Scripts Every Project Has](https://www.ask-codey.com/lessons/bash-project-scripts) (Journeyman): Most software projects keep a few small scripts for the same four jobs: setup.sh gets a computer ready, dev.sh runs the project while you work, test.sh checks it and deploy.sh puts it live, and setup.sh checks its tools first with command -v.
- [The SELECT Statement: an overview](https://www.ask-codey.com/lessons/the-select-statement-an-overview) (Novice): A SELECT statement, or query, asks the database a question and returns the rows and columns that answer it.
- [The Shape of a Command](https://www.ask-codey.com/lessons/bash-shape-of-a-command) (Novice): Almost every command has the same shape, its name, then options that change how it works, then arguments that say what to work on, with spaces between them, quotes around a name that has spaces, and Ctrl+C to stop it.
- [The Simplest Guess: Baselines](https://www.ask-codey.com/lessons/ml-baseline-guesses) (Apprentice): A baseline is the simplest guess there is, always the training data's average for a number or its most common answer for a category, and every model has to beat it on the test data by enough to be worth the trouble.
- [The Smell Map: From Symptom to Cure](https://www.ask-codey.com/lessons/dp-smells-to-patterns) (Journeyman): Every smell this course has met fits one of five families, and each family has one cause and a short list of cures; three questions (what changes together, what has no home, who knows too much) diagnose a smell you've never seen, and the smallest cure, often pulling out a method, comes first.
- [The Sorted Import That Made Search Crawl: Why Balance Matters](https://www.ask-codey.com/lessons/ds-tree-balance) (Journeyman): Keep a contact list fast however its names arrive: see why a sorted import turns a plain binary search tree into a line as slow as a list, why shuffling and rebuilding don't fix it, and which always-balanced sorted map your language gives you.
- [The Start and End of a File: head and tail](https://www.ask-codey.com/lessons/bash-head-and-tail) (Apprentice): head prints the first lines of a file and tail the last, ten unless -n says how many, and tail -f keeps watching a file and prints each new line as it's added.
- [The Start and End of a File: -TotalCount, -Tail and -Wait](https://www.ask-codey.com/lessons/powershell-head-and-tail) (Apprentice): Get-Content -TotalCount shows only a file's first lines and -Tail only its last, and -Wait keeps a file open on screen so every line added to it appears as it's written, until Ctrl+C stops it.
- [The Structure of a Component](https://www.ask-codey.com/lessons/angular-components-the-structure-of-a-component) (Novice): A component is a TypeScript class marked with @Component, which gives its selector, template and styles. Generate one with ng generate component, and use it in another component by adding it to that component's imports and writing its selector as a tag.
- [The Terminal and the Mouse: Two Ways In](https://www.ask-codey.com/lessons/bash-terminal-and-gui) (Novice): A file manager and a terminal are two doors into the same files on the same computer; each is better at different jobs, and this course gives you both so you can choose.
- [The Terminal and the Mouse: Two Ways In](https://www.ask-codey.com/lessons/powershell-terminal-and-gui) (Novice): Clicking and typing are two ways into the same computer, each best at different jobs, and learning the terminal gives you a second option without taking the first one away.
- [The WHERE Clause: an overview](https://www.ask-codey.com/lessons/the-where-clause-an-overview) (Novice): Add a WHERE clause to return only the rows that match a condition, such as customers in the UK.
- [Three Streams: Output, Errors and Input](https://www.ask-codey.com/lessons/bash-streams-and-redirection) (Apprentice): Every command has three streams, output, errors and input, and redirection sends each where you choose, with 2> for errors, &> or > file 2>&1 for both together, /dev/null to throw them away and &lt; to read a file in.
- [Three Wrappers, Three Reasons](https://www.ask-codey.com/lessons/dp-adapter-decorator-proxy) (Journeyman): The hub now has three kinds of class that look the same on paper, each holding one object and passing calls on: TuneoSpeakerAdapter, CachedWeather and GuardedLock. What each is for tells them apart (a new shape, a new feature, or control of the way in), and that decides where the next rule belongs.
- [Throwing Your Own Errors](https://www.ask-codey.com/lessons/javascript-errors-throwing-your-own) (Journeyman): When a function gets a value it can't use, throw new Error with a message that says what was wrong, make your own error class with extends Error for the problems your program knows about, and return a value instead when there's no mistake to report.
- [Tidying Text with .str](https://www.ask-codey.com/lessons/pandas-string-methods) (Apprentice): Text that people type differs in spaces and capital letters, so the same name fails to match itself; the .str tools strip, lower and title tidy a whole column at once, and len, contains and startswith test every value so you can find the ones that look wrong.
- [Timers: setTimeout and setInterval](https://www.ask-codey.com/lessons/javascript-async-basics-timers) (Apprentice): setTimeout runs a function once after a delay, setInterval runs it again and again, and clearTimeout and clearInterval cancel them with the ID each timer hands back.
- [Titles, Descriptions and Search Results](https://www.ask-codey.com/lessons/html-metadata-titles-and-descriptions) (Apprentice): A few lines in a page's head decide what its search result says, so write a title and a description that tell a searcher this is the page they want.
- [Titles, Labels and Units That Explain](https://www.ask-codey.com/lessons/data-titles-labels-units) (Journeyman): A chart explains itself when its title states the finding, each axis label names what it measures and its unit, its tick labels are readable, an arrow from ax.annotate points at the one value that matters, and a legend appears only when there's more than one line to tell apart.
- [tmux: Panes, Windows and Sessions](https://www.ask-codey.com/lessons/bash-tmux) (Journeyman): tmux runs several terminals inside one window, split into panes and windows, and keeps them in a session that goes on running when you detach, close the window or lose the connection to a server, so you can attach again and carry on.
- [Tokens: Signing In with a JWT](https://www.ask-codey.com/lessons/node-auth-tokens-jwt) (Journeyman): A JWT is a signed token the server hands out at sign-in and each request sends back in an Authorization Bearer header; jsonwebtoken's sign and verify make and check it, anyone can read its payload, and it fits APIs that apps and other servers call.
- [Tokens: Signing In with a JWT](https://www.ask-codey.com/lessons/fastapi-auth-tokens-jwt) (Journeyman): After a sign-in, an API hands out a JWT, a signed token in three parts that PyJWT makes with jwt.encode and an exp claim and checks with jwt.decode, at POST /auth/token with the OAuth2 password form so the docs page's Authorize button works, and the caller sends it back in an Authorization header with every request.
- [TOP and ORDER BY](https://www.ask-codey.com/lessons/select-in-t-sql-top-and-order-by) (Novice): Sort a query's results with ORDER BY, ascending or descending, by one column or several, and keep only the first rows with TOP.
- [Totals by Week and Month: resample](https://www.ask-codey.com/lessons/pandas-resample) (Journeyman): Total a column by month with groupby on dt.to_period('M'), and by week with resample('W') on a date index, which labels each week by the Sunday it ends on and keeps every week from the first to the last, so a week with no orders shows as 0 instead of disappearing, while its mean is NaN.
- [Training and Testing: Never Grade Your Own Homework](https://www.ask-codey.com/lessons/ml-training-and-testing) (Apprentice): A model scored on the examples it learned from can look perfect and still be useless, so some examples are held back as test data that it never sees while it trains, and when the data is in time order, the most recent days are the ones held back.
- [Transactions](https://www.ask-codey.com/lessons/modifying-data-in-t-sql-transactions) (Apprentice): Group changes into a transaction so they all happen or none do, and use ROLLBACK as a safety net while you work.
- [Transactions, and Why You'll Need Them Less](https://www.ask-codey.com/lessons/mongodb-transactions-and-why-you-need-them-less) (Journeyman): When two shoppers reach for the last bike, a conditional updateOne keeps the stock right on its own, and when the stock and a new order must change together, a transaction makes both changes happen or neither.
- [Transforms: Move, Turn and Grow](https://www.ask-codey.com/lessons/css-transforms) (Apprentice): Transforms slide, turn and resize an element with translate, rotate and scale without moving anything around it, which makes them the tool for a button that lifts, a card that tilts or a badge that grows.
- [Transitions: Smooth Changes](https://www.ask-codey.com/lessons/css-transitions) (Apprentice): A transition makes a change in CSS happen smoothly over a short time instead of in one jump, so a button that changes color on hover or focus eases into its new look.
- [True, False and Comparisons](https://www.ask-codey.com/lessons/python-booleans-and-comparisons) (Novice): A comparison such as height >= 48 asks Python a yes-or-no question, and its answer is a Boolean value, True or False, the value every decision a program makes is built on.
- [Trying Code in the REPL](https://www.ask-codey.com/lessons/python-the-repl) (Novice): The REPL is Python's interactive prompt, where you type one line at a time and see its value at once, which makes it the quickest place to check a calculation or try an idea before it goes in a file.
- [Tuples and Unpacking](https://www.ask-codey.com/lessons/python-tuples-and-unpacking) (Apprentice): A tuple groups a few values that belong together, such as a city and its miles, and can't be changed once made, and unpacking gives each value its own name in one line, which is how a function returns two values and how two variables swap.
- [Turning Categories into Numbers](https://www.ask-codey.com/lessons/ml-encoding-categories) (Journeyman): Numbering categories such as dog, cat and rabbit 1, 2 and 3 invents an order and distances that aren't there, so one-hot encoding gives each category a column of its own, which OneHotEncoder learns from the training data, with handle_unknown='ignore' for a category it never saw, while OrdinalEncoder fits categories that really have an order, given in that order.
- [Turning Text into Numbers: to_numeric](https://www.ask-codey.com/lessons/pandas-text-to-numbers) (Apprentice): Text such as '59 lbs' and '$75' becomes numbers in two steps, .str.replace to take off the units and symbols, then pd.to_numeric with errors='coerce' to convert what's left, followed by a list of the values that became missing so none is lost silently.
- [Twice the Stuff, How Much More Work?](https://www.ask-codey.com/lessons/big-o-twice-the-stuff) (Novice): Big-O answers one question about any piece of code: if there's twice as much stuff, how much more work is it? Most of the time the answer is the same, twice, or four times.
- [Two-Way Binding](https://www.ask-codey.com/lessons/binding-and-events-in-angular-two-way-binding) (Apprentice): \[(ngModel)\] binds a form field both ways: the field shows the signal's value, and typing in the field changes the signal. Import FormsModule to use it. Brackets in and parentheses out, together: the banana in a box.
- [Type Hints: Saying What a Value Should Be](https://www.ask-codey.com/lessons/python-type-hints) (Apprentice): A type hint is a label on a variable, a parameter or a return value that says what kind of value belongs there, such as float, list\[float\] or a string that may be None, so people and tools can see what a function expects without reading its body.
- [Type That Reads Well: Scale, Line Length and Pairing](https://www.ask-codey.com/lessons/css-design-typography) (Journeyman): Text reads well when its sizes come from a type scale in rem, its lines hold about 45 to 75 characters, its line height suits body text and headings, and the page uses two fonts at most.
- [Type, Class and ID Selectors](https://www.ask-codey.com/lessons/css-selectors-type-class-id) (Novice): A selector tells the browser which elements a rule styles (every element of one kind, every element with a class, or the one element with an id), and commas let one rule style several selections at once.
- [Types and Converting Between Them](https://www.ask-codey.com/lessons/javascript-types-and-converting) (Apprentice): Tell numbers, strings and booleans apart with typeof, turn text into numbers and back with Number() and String(), and know why '5' + 3 is '53' and where NaN comes from.
- [Types of Filters](https://www.ask-codey.com/lessons/where-in-t-sql-types-of-filters) (Apprentice): Filter numbers and dates with comparison operators, text with LIKE patterns, lists with IN, ranges with BETWEEN, and missing values with IS NULL.
- [Types of Filters](https://www.ask-codey.com/lessons/the-where-clause-types-of-filters) (Apprentice): Filter numbers and dates with comparison operators, and text with LIKE and its % and \_ wildcards.
- [Types of Sub-Queries](https://www.ask-codey.com/lessons/working-with-sub-queries-types-of-sub-queries) (Journeyman): The difference between an uncorrelated sub-query, which runs once on its own, and a correlated sub-query, which runs once for each row of the outer query.
- [Types of Sub-Queries](https://www.ask-codey.com/lessons/sub-queries-in-t-sql-types-of-sub-queries) (Journeyman): A sub-query is a query inside another query, in parentheses. An uncorrelated one runs once on its own; a correlated one uses the outer query's row and runs once per row.
- [Understanding the String Class](https://www.ask-codey.com/lessons/working-with-strings-understanding-the-string-class) (Novice): A Java String is a sequence of characters that can't be changed once it's made, so every change creates a new string.
- [Understanding the String Class](https://www.ask-codey.com/lessons/strings-in-csharp-understanding-the-string-class) (Novice): A C# string is a read-only sequence of characters; read them by index, write special characters with escape sequences, and understand why strings never change.
- [Undo and Redo with Commands](https://www.ask-codey.com/lessons/dp-undo-redo) (Journeyman): An undo button that remembers only the last change can't take back two mistakes, and can't redo anything; when each command knows how to reverse itself, a stack of done commands and a stack of undone ones give the dispatcher as many undos and redos as she needs.
- [Undo the Last Thing First: Stacks](https://www.ask-codey.com/lessons/ds-stacks) (Apprentice): An editor has to take back its most recent change first, then the one before, after 10,000 edits as quickly as after 10. Find a structure that keeps undo instant, and learn why it does less than a list on purpose: the stack.
- [Unique and Text Indexes](https://www.ask-codey.com/lessons/mongodb-unique-and-text-indexes) (Journeyman): A unique index makes MongoDB refuse a second document with the same value, such as a customer's email, with a duplicate key error, and a text index lets a search box find products by the words in their names and descriptions with $text.
- [Unit Testing: an overview](https://www.ask-codey.com/lessons/unit-testing-an-overview) (Novice): What a unit test is, and why small classes with clear responsibilities can be tested on their own.
- [Units: px, rem, em, % and Viewport Units](https://www.ask-codey.com/lessons/css-units) (Apprentice): Every size in CSS needs a unit, and choosing the right one, px, rem, em, %, vw or vh, decides whether your page grows with the reader's text, fits its space and stays readable.
- [Until Something Is True: \`while\`, \`do\` and \`for\`](https://www.ask-codey.com/lessons/powershell-while-and-for) (Apprentice): while repeats steps as long as a condition is true, do runs them at least once and checks at the end, which suits trying again up to three times, and for counts from a start to a finish one step at a time.
- [Up Next: A Report Someone Can Use](https://www.ask-codey.com/lessons/data-up-next-a-report) (Journeyman): Look back at what Module 4 taught (line, bar, scatter and histogram charts, choosing the chart for the question, titles and labels that explain, honest axes, charts everyone can read, several charts on one saved page), try a one-page chart summary of your own, and see what Module 5 adds, a report someone else can follow and rebuild.
- [Up Next: Aggregation and Indexes](https://www.ask-codey.com/lessons/mongodb-up-next-aggregation-and-indexes) (Journeyman): Look back at what Module 3 lets you design, see it applied to a whole store's screens, and see what Module 4 adds, reports built from a year of orders and indexes that keep them fast.
- [Up Next: Answering Questions](https://www.ask-codey.com/lessons/data-up-next-answering-questions) (Apprentice): Look back at what Module 2 taught, finding and handling missing values, fixing types, removing duplicates, tidying text and dates, catching impossible values and putting it all in a cleaning function, try a cleaning log of your own, and see what Module 3 adds, filtering, sorting, grouping, pivot tables, joins and reshaping.
- [Up Next: Automation](https://www.ask-codey.com/lessons/python-up-next-automation) (Journeyman): Look back at what Module 4 taught, tests with pytest, type hints checked by mypy and tidy code from Ruff, try a library fines calculator of your own written test first, and see what Module 5 adds, scripts that sort files, take options, run on a schedule and fetch live data.
- [Up Next: Building Real Programs](https://www.ask-codey.com/lessons/python-up-next-real-programs) (Apprentice): Look back at what Module 2 taught, functions, lists, tuples, dictionaries, sets, comprehensions and sorting, try a grade book of your own that uses all of it, and see what Module 3 adds, files, packages, error handling and classes.
- [Up Next: Building Web APIs](https://www.ask-codey.com/lessons/node-up-next-web-apis) (Novice): Module 1 gave you Node's toolkit (running and debugging programs, modules and npm, files, arguments, settings and the event loop); this lesson shows which tool fits which job, the Expense Tracker CLI project that uses them all, and how Module 2 turns your code into a server.
- [Up Next: Charts](https://www.ask-codey.com/lessons/data-up-next-charts) (Journeyman): Look back at what Module 3 taught (picking, filtering and sorting rows, new columns, grouping, pivot tables, totals by period, stacking, joining and reshaping tables), try five questions about a school's records with all of it, and see what Module 4 adds, charts that show an answer at a glance and keep it honest.
- [Up Next: Cleaning Data](https://www.ask-codey.com/lessons/data-up-next-cleaning-data) (Apprentice): Look back at what Module 1 taught you, put it to work on a first look at a table of your own, and see what Module 2's cleaning tools will let you do with messy data.
- [Up Next: Data with MongoDB](https://www.ask-codey.com/lessons/node-up-next-data-with-mongodb) (Apprentice): See how much of an API you can build after Module 2, meet the Library Loans API project where you'll show it, and find out why Module 3 moves an API's data into MongoDB.
- [Up Next: Data with SQLite](https://www.ask-codey.com/lessons/fastapi-up-next-data-with-sqlite) (Journeyman): Look back at what Module 2 taught you, see a project that puts all of it to work, an event sign-up API with a test for every rule, and see the gap Module 3 closes, by keeping an API's data in a SQLite database with SQL you write yourself.
- [Up Next: Functions and Data](https://www.ask-codey.com/lessons/python-up-next-functions-and-data) (Novice): Look back at what Module 1 taught you, put all of it to work in a quiz game of your own, and get a first look at the functions, lists and dictionaries that Module 2 teaches.
- [Up Next: Groups, Fairness and Explaining](https://www.ask-codey.com/lessons/ml-up-next-groups-fairness-explaining) (Journeyman): Look back at what Module 4 taught, catching overfitting, cross-validation, pipelines, data leakage, tuning and fair comparisons, try a short honest write-up of the inn's model with all of it, and see what Module 5 adds, finding groups in data that has no labels, and explaining a model's results, limits and fairness to the people it affects.
- [Up Next: How JavaScript Really Works](https://www.ask-codey.com/lessons/javascript-up-next-how-javascript-works) (Apprentice): See how much real data you can handle after Module 2, meet the My Music Wrapped project where you'll show it, and get a first look at the ideas Module 3 explains, starting with a function that remembers.
- [Up Next: JavaScript in the Browser](https://www.ask-codey.com/lessons/javascript-up-next-the-browser) (Apprentice): Module 3 gave you the tools for bigger programs (closures, classes, your own errors, the debugger and modules); this lesson shows which one fits which job, the Virtual Pet project that uses them all, and how Module 4 puts your code in charge of a web page.
- [Up Next: Making Models Better, Honestly](https://www.ask-codey.com/lessons/ml-up-next-making-models-better) (Journeyman): Look back at what Module 3 taught, classifiers that guess a category and the confusion matrix, precision, recall and thresholds that measure them, try a short fraud check memo with all of it, and see what Module 4 adds, scores you can trust and the mistakes that make a model look better than it is.
- [Up Next: Modeling](https://www.ask-codey.com/lessons/mongodb-up-next-modeling) (Apprentice): Look back at the queries and changes you can write after Module 2, see them work together behind a recipe search page, and get a first look at Module 3, where you decide the shape of the documents for a whole online store.
- [Up Next: Models and Validation](https://www.ask-codey.com/lessons/fastapi-up-next-models-and-validation) (Apprentice): Look back at what Module 1 taught you, see a project that puts all of it to work, a book club's API, and see the gaps Module 2 closes, with Pydantic models and field rules that check every request, one clear shape for every error, and tests that prove the API works.
- [Up Next: MongoDB in an App](https://www.ask-codey.com/lessons/mongodb-up-next-mongodb-in-an-app) (Journeyman): Look back at the reports and indexes you can build after Module 4, see them work together behind a store's dashboard, and see what Module 5 adds, the same queries running behind a real app's API.
- [Up Next: Predicting Categories](https://www.ask-codey.com/lessons/ml-up-next-predicting-categories) (Journeyman): Look back at what Module 2 taught, fitting lines, splitting data, measuring error against a baseline, curves, trees and fair comparisons, try a short harvest guide for the orchard with all of it, and see what Module 3 adds, models that guess a category, such as spam or not, and ways to count which mistakes they make.
- [Up Next: Predicting Numbers](https://www.ask-codey.com/lessons/ml-up-next-predicting-numbers) (Apprentice): Look back at what Module 1 taught you, from a model as a rule learned from examples to the statistics that describe a table, try a first look at a problem of your own, and see what Module 2 unlocks, a first real model that predicts a number such as a home's price.
- [Up Next: Professional Node](https://www.ask-codey.com/lessons/node-up-next-professional-node) (Journeyman): See what your APIs can do after Module 5, from live updates over WebSockets to streamed files, uploads with limits and work that runs after the response, meet the Live Quiz Night project where you'll show it, and get a first look at Module 6, where your API is logged, checked on every push and put online.
- [Up Next: Professional Python APIs](https://www.ask-codey.com/lessons/fastapi-up-next-professional-apis) (Journeyman): Look back at what Module 4 taught you, see a project that puts all of it to work, a community center's room bookings API with members and staff, and see the gaps Module 5 closes, with settings checked at startup, logs, a health check, tests on every push and your API online at a link.
- [Up Next: Queries](https://www.ask-codey.com/lessons/mongodb-up-next-queries) (Novice): Look back at what you can do after Module 1, and get a first look at Module 2, where every screen of an app becomes a query that finds, sorts, pages and changes documents.
- [Up Next: Real-Time Apps](https://www.ask-codey.com/lessons/node-up-next-real-time-apps) (Journeyman): See what your APIs can do after Module 4, from hashed passwords and tokens to rules about who may do what and an API hardened for the open internet, meet the Club Events API project where you'll show it, and get a first look at Module 5, where the server speaks first.
- [Up Next: Testing and Quality](https://www.ask-codey.com/lessons/python-up-next-testing-and-quality) (Apprentice): Module 3 gave you the tools of real programs (modules and packages, virtual environments, exceptions and the debugger, text, CSV and JSON files, and classes); this lesson shows which tool fits which job, a contact manager you can build with all of them, and what Module 4 adds.
- [Up Next: Users and Security](https://www.ask-codey.com/lessons/node-up-next-users-and-security) (Apprentice): Look back at what Module 3 lets you build, meet the Recipe Box API where you'll show it, and see what Module 4 adds, accounts, signing in and rules about who may do what, so an API knows who is asking.
- [Up Next: Users and Security](https://www.ask-codey.com/lessons/fastapi-up-next-users-and-security) (Journeyman): Look back at what Module 3 taught you, see a project that puts all of it to work, a book club's API moved onto SQLite, and see the gap Module 4 closes, by giving an API accounts, sign-in and rules about who may do what.
- [Up Next: Waiting for Data](https://www.ask-codey.com/lessons/javascript-up-next-waiting-for-data) (Apprentice): See how much of a web page you can now control, meet the Photo Gallery project where you'll show it, and find out why a page freezes when code waits the wrong way, and what Module 5's timers, promises and fetch change.
- [Up Next: Where Python Goes Next](https://www.ask-codey.com/lessons/python-up-next-where-python-goes-next) (Journeyman): Look back at what Module 5 taught, sorting and moving files, command-line options, running on a schedule and fetching live data with a saved copy, try a weekly report of your own that uses all of it, and see the three directions Module 6 lets you try, data analysis, machine learning and building web APIs.
- [Up Next: Working Like a Professional](https://www.ask-codey.com/lessons/javascript-up-next-working-like-a-professional) (Journeyman): See what your code can wait for after Module 5, meet the Trivia Night project where you'll build a timed game with live questions, and get a first look at Module 6, starting with a test that catches a bug before a player does.
- [Up Next: Working with Data](https://www.ask-codey.com/lessons/javascript-up-next-working-with-data) (Novice): See how much you can do after Module 1, meet the Rock, Paper, Scissors game where you'll show it, and get a first look at the lists and records Module 2 teaches.
- [Updating and Deleting Documents](https://www.ask-codey.com/lessons/node-mongodb-update-and-delete) (Apprentice): updateOne and updateMany change documents in place with update operators such as $set, $inc, $push and $pull, their result's matchedCount and modifiedCount say what happened, findOneAndUpdate gives back the changed document, and deleteOne removes one.
- [Updating Data](https://www.ask-codey.com/lessons/modifying-data-in-t-sql-updating-data) (Apprentice): Change existing rows with UPDATE ... SET, always limited by a WHERE that you've tested first with a SELECT.
- [Upserts and Replacing a Whole Document](https://www.ask-codey.com/lessons/mongodb-upserts-and-replaceone) (Journeyman): An upsert updates a document when the filter finds one and inserts it when it doesn't, $setOnInsert sets values only on that first insert, replaceOne swaps in a whole new version, and findOneAndUpdate changes a document and hands it back.
- [Useful String Methods](https://www.ask-codey.com/lessons/working-with-strings-useful-string-methods) (Apprentice): Find, cut, change case and split text with the String methods indexOf, lastIndexOf, substring, toLowerCase, toUpperCase and split.
- [Useful String Methods](https://www.ask-codey.com/lessons/strings-in-csharp-useful-string-methods) (Apprentice): Find text with IndexOf, LastIndexOf, Contains, StartsWith and EndsWith, and cut and reshape it with Substring, Split, ToUpper, ToLower, Trim and Replace.
- [User Interfaces](https://www.ask-codey.com/lessons/what-is-an-interface-user-interfaces) (Novice): A smart home's thermostat, wall panel, phone app and voice assistant show how many user interfaces can control the same software.
- [User-Defined Functions in T-SQL](https://www.ask-codey.com/lessons/user-defined-functions-in-t-sql) (Journeyman): Write your own functions. A scalar function returns one value and works inside any query; a table-valued function returns rows and works like a table that takes parameters.
- [Users and Groups](https://www.ask-codey.com/lessons/bash-users-and-groups) (Journeyman): Every person and many programs on a Linux computer have a user account with a number and a list of groups: whoami, id and groups show yours, /etc/passwd lists every account, adduser and usermod -aG add a person and a group, and a server runs each program as a user of its own.
- [Users and Groups on This PC](https://www.ask-codey.com/lessons/powershell-local-users) (Journeyman): Every Windows PC has its own list of accounts and groups: Get-LocalUser and Get-LocalGroup read them, Get-LocalGroupMember shows who is in a group such as Administrators, and a quick check tells you whether this window runs as administrator; adding an account takes an administrator window, so rehearse it with -WhatIf.
- [Using a Simple HTTP Client](https://www.ask-codey.com/lessons/dissecting-the-request-and-response-using-a-simple-http-client) (Journeyman): Test an API without leaving your editor by writing requests in a .http file and running them from IntelliJ or VS Code.
- [Using Async / Await](https://www.ask-codey.com/lessons/using-async-await) (Journeyman): Rewrite a promise chain (then/catch) with async and await, so an API call reads top to bottom and errors land in a try/catch block.
- [Using File Explorer](https://www.ask-codey.com/lessons/os-and-terminal-tools-windows-using-file-explorer) (Novice): Navigate Windows folders, show file extensions and hidden files, and read a folder's path two ways.
- [Using Finder](https://www.ask-codey.com/lessons/os-and-terminal-tools-using-finder) (Novice): Use Finder, the Mac's file manager, to see, move, tag, and preview your files and folders without typing commands.
- [Using Multiple Condition Filters](https://www.ask-codey.com/lessons/the-where-clause-using-multiple-condition-filters) (Apprentice): Combine conditions in a WHERE clause with AND and OR, and use parentheses so they're checked the way you mean.
- [Using Multiple Condition Filters](https://www.ask-codey.com/lessons/where-in-t-sql-using-multiple-condition-filters) (Apprentice): Combine conditions in a WHERE clause with AND, OR and NOT, and use parentheses so they're checked the way you mean.
- [Using the fetch API](https://www.ask-codey.com/lessons/mvc-partials-with-fetch-using-the-fetch-api) (Journeyman): Catch the pager's clicks with one listener on the pager, cancel them with preventDefault, fetch the partial's HTML with fetch and response.text, and put it in the page with innerHTML. The links keep working when JavaScript doesn't run.
- [Using Your Module in a Notebook: autoreload](https://www.ask-codey.com/lessons/data-module-in-a-notebook) (Journeyman): A notebook can import functions from your own .py file, but the kernel keeps the version it imported first, so after editing the file you restart the kernel and run every cell, or turn on %load_ext autoreload and %autoreload 2 to load each saved change before every cell runs.
- [Utility Classes](https://www.ask-codey.com/lessons/bootstrap-utility-classes) (Apprentice): Adjust spacing, color, text, borders and flex layout with Bootstrap's small, single-purpose utility classes, without writing CSS.
- [Utility Classes and Utility-First CSS](https://www.ask-codey.com/lessons/css-utility-first) (Journeyman): A utility class does one small job, such as .text-center or .mt-4, and a few of them in a utilities layer handle one-off tweaks without new rules, while utility-first frameworks build whole pages from thousands of them.
- [Validating with Zod](https://www.ask-codey.com/lessons/node-validation-with-zod) (Journeyman): Zod writes a request body's rules as a schema, an object that describes the shape the data must have, and safeParse checks a body against it, giving back either the cleaned data or a list of issues that the API turns into its field problems.
- [Validating Your Page](https://www.ask-codey.com/lessons/html-validating-your-page) (Apprentice): The W3C Nu HTML Checker reads your page against HTML's rules and lists every mistake with its line number, so you can find and fix what the browser quietly covered up.
- [Validation Sets: Keep the Test Set for Last](https://www.ask-codey.com/lessons/ml-validation-and-test-sets) (Journeyman): Every time you look at the test score while choosing a model or a setting, the choice learns a little about the test rows, so choose with a validation set or with cross-validation on the training part, and score the test set once, at the end, for the model you chose.
- [Values from Commands: $( ) and $(( ))](https://www.ask-codey.com/lessons/bash-command-substitution) (Apprentice): $( ) runs a command and puts what it prints into another command or a variable, such as today's date in a backup's name, and $(( )) works out whole-number arithmetic, such as an age or a count plus one.
- [Values That Can't Be Right: Sentinels and Outliers](https://www.ask-codey.com/lessons/pandas-sentinels-and-outliers) (Apprentice): A stand-in such as -999 for "no reading" and a sensor that reads 152 °F in the sun both throw off an average, so replace turns stand-ins into NaN, describe and between find the values that can't be true, and a suspect column flags them before they're blanked, while real but unusual readings stay.
- [Variables in the Shell](https://www.ask-codey.com/lessons/bash-shell-variables) (Apprentice): A shell variable is a name the shell keeps a value under, so owl_folder=… stores a long path once and $owl_folder hands it back in any command until you close the window.
- [Variables with let and const](https://www.ask-codey.com/lessons/javascript-variables-let-and-const) (Novice): A variable gives a value a name so your program can remember it, and let or const says whether that value is allowed to change.
- [Variables: \`$name\`](https://www.ask-codey.com/lessons/powershell-variables) (Apprentice): A variable is a name PowerShell keeps a value under, so $owl = "…" stores a long path once, $drawings = Get-ChildItem … keeps a whole list of files, and $owl hands the value back in any later command until you close the window.
- [Variables: Giving a Value a Name](https://www.ask-codey.com/lessons/python-variables) (Novice): A variable gives a value a name with =, read "gets", so a program can remember it, use it in many places and change it later, and Python stops with a NameError when a line uses a name that hasn't been given a value yet.
- [Verb-Noun: Names That Explain Themselves](https://www.ask-codey.com/lessons/powershell-verb-noun-names) (Novice): Every PowerShell command is named with a verb, a dash and a noun, such as Get-Process, so once you know the pattern you can guess a command's name before you look it up, and Get-Verb lists the verbs.
- [Video and Audio](https://www.ask-codey.com/lessons/html-media-video-and-audio) (Apprentice): The video and audio elements put the browser's own player on your page, with play, pause, volume and full screen built in, for any video or sound file you give them.
- [Views in T-SQL](https://www.ask-codey.com/lessons/views-in-t-sql) (Journeyman): A view is a saved query with a name. Query it like a table, and the long join inside is written once. Create it with CREATE OR ALTER VIEW, in a batch of its own.
- [Virtual Environments and pip](https://www.ask-codey.com/lessons/python-venv-and-pip) (Apprentice): A virtual environment gives each Python project its own private set of packages, pip installs packages into it from PyPI, and a requirements.txt with exact versions lets any computer install the same set with one command.
- [Visitor: New Jobs Without Touching Every Class](https://www.ask-codey.com/lessons/dp-visitor) (Freelancer): When every new job on a tree of objects (describe it, count it, check it) means a new method in every class of the tree, each job ends up scattered across all of them; the Visitor pattern puts each job in one object with a method for each kind of piece, so a new job is one new class and the pieces never change.
- [Visual Studio](https://www.ask-codey.com/lessons/development-tools-visual-studio) (Novice): Find your way around Visual Studio 2026, from solutions and projects to running a program and stepping through it with the debugger.
- [VS Code](https://www.ask-codey.com/lessons/development-tools-vs-code) (Novice): VS Code is Microsoft's free code editor, a different program from Visual Studio, that you'll use for web pages and grow with extensions.
- [Waiting for Many Tasks: Task.WhenAll and Task.WhenAny](https://www.ask-codey.com/lessons/async-and-await-in-csharp-waiting-for-many-tasks) (Journeyman): Start several tasks before awaiting any of them, then wait for them all with Task.WhenAll, which takes about as long as the slowest, or for the first to finish with Task.WhenAny, which can also race slow work against a timer.
- [Waiting for Several Things at Once](https://www.ask-codey.com/lessons/javascript-promises-several-at-once) (Freelancer): Promise.all, Promise.allSettled, Promise.race and Promise.any start several slow jobs together and wait for all of them, every answer, the first to finish or the first success.
- [Waiting for the Database: async, await and try/catch](https://www.ask-codey.com/lessons/mongodb-javascript-you-need-async-await) (Apprentice): A database takes a moment to answer, so code that asks it gets a promise instead of the answer, and this lesson shows how await waits for the answer inside an async function, how try and catch handle a database that fails, and what happens when an await is missing.
- [Waiting for Things: watch, until and timeout](https://www.ask-codey.com/lessons/bash-watch-and-wait) (Journeyman): watch reruns a command every few seconds and shows its latest result, an until loop waits until a server answers, and timeout stops a command that takes too long, with exit code 124, so a script never waits forever.
- [Web APIs with Controllers: an overview](https://www.ask-codey.com/lessons/web-apis-with-controllers-an-overview) (Apprentice): REST is the common way to design a web API. Each kind of data is a resource with its own address, and the HTTP method says what to do with it. GET, POST, PUT and DELETE match SELECT, INSERT, UPDATE and DELETE, each with its usual status code.
- [Web Fonts: Using Any Font You Like](https://www.ask-codey.com/lessons/css-web-fonts) (Apprentice): A web font is a font file the browser downloads with your page, loaded with a Google Fonts link or your own @font-face rule, so every visitor sees the font you chose even when their device doesn't have it.
- [Weekly Deals: Pass the Rule In](https://www.ask-codey.com/lessons/dp-weekly-deals) (Apprentice): When this week's deal is picked by a switch inside checkout, every new deal means editing the code that handles the money; handing the deal into checkout as a function, the Strategy pattern in its simplest form, lets a new deal be written without touching checkout at all.
- [What a Database Is, and Why SQLite](https://www.ask-codey.com/lessons/fastapi-sqlite-what-a-database-is) (Apprentice): A JSON file loses changes when two people save at once and has to be read whole to find one item, so an API keeps its data in a database of tables, rows and columns, and Python's built-in sqlite3 module opens a whole SQLite database stored in one file.
- [What a Function Is: def and Calling](https://www.ask-codey.com/lessons/python-functions-def-and-call) (Novice): A function gives a job a name, written once with def and run whenever you call that name with parentheses, so a program does the same work in many places and changes it in one.
- [What a Screen Reader Hears](https://www.ask-codey.com/lessons/html-accessibility-what-a-screen-reader-hears) (Journeyman): A screen reader announces each part of a page by its role, its name and its state, all read from your HTML, and the developer tools show you exactly what it will say.
- [What a Web API Is](https://www.ask-codey.com/lessons/javascript-web-apis-what-is-an-api) (Apprentice): A web API is a server that answers requests sent to its addresses, and every request and answer has the same parts: a URL with a path and query string, a method, a status code and, usually, JSON.
- [What a Web API Is](https://www.ask-codey.com/lessons/python-web-apis-what-is-an-api) (Apprentice): A web API is a program on a server that answers requests sent to its web addresses, and every request and answer has the same parts, a URL with a domain, a path and a query string, a method, a status code and, usually, JSON that Python reads into dictionaries and lists.
- [What an Object Is: Get-Member](https://www.ask-codey.com/lessons/powershell-what-is-an-object) (Apprentice): Everything PowerShell shows you is an object, a thing that carries named facts called properties, the way a library book's card carries its title, author and due date, and Get-Member lists every fact an object knows.
- [What Arrays Solve](https://www.ask-codey.com/lessons/array-review-in-csharp-what-arrays-solve) (Apprentice): A quick review of what arrays do well, fast access by position, one name for a group, and easy looping, before meeting their limits.
- [What Arrays Solve](https://www.ask-codey.com/lessons/array-review-what-arrays-solve) (Apprentice): Arrays keep many values of one type under one name, with fast access to any item by its index.
- [What Classification Is](https://www.ask-codey.com/lessons/ml-what-classification-is) (Apprentice): Classification guesses a category instead of a number, such as spam or not spam, with two classes (binary) or more (multiclass) and often one class you're looking for (the positive class), and a scikit-learn classifier lists its classes in classes\_ and gives back one of them for each row from predict.
- [What Data Leakage Is](https://www.ask-codey.com/lessons/ml-what-data-leakage-is) (Journeyman): Data leakage is information the model won't have when it's really used, such as a column only known after the outcome or facts about the test rows, slipping into what it learns from, so its score comes out better than it will ever do on new data, and a score that looks too good to be true is the warning sign.
- [What is a Code Editor?](https://www.ask-codey.com/lessons/development-tools-what-is-a-code-editor) (Novice): A code editor is a light, fast text editor made for code that colors it, suggests what comes next and flags mistakes, without the weight of a full IDE.
- [What is a Constructor](https://www.ask-codey.com/lessons/working-with-objects-what-is-a-constructor) (Apprentice): A constructor gives a new object the starting values it needs, and \`this\` tells the object's own variable apart from a parameter with the same name.
- [What is a Constructor?](https://www.ask-codey.com/lessons/working-with-objects-in-csharp-what-is-a-constructor) (Apprentice): A constructor runs when an object is created and gives it the starting values it needs; use this to tell a field from a parameter of the same name.
- [What is a Database?](https://www.ask-codey.com/lessons/introduction-to-databases-what-is-a-database) (Novice): A database is an organized place where an application stores its information so it can manage it and find it again quickly.
- [What is a Dependency](https://www.ask-codey.com/lessons/dependency-injection-what-is-a-dependency) (Apprentice): A dependency is an object a class needs to do its job. When a class creates its own dependencies with new, it's wired to them for good, and hard to test.
- [What is a Design Pattern](https://www.ask-codey.com/lessons/design-patterns-what-is-a-design-pattern) (Apprentice): A design pattern is a proven, named answer to a problem that keeps coming up in software design. Patterns are grouped as creational, structural and behavioral, and you've already used several without knowing their names: Singleton, Iterator, Observer, Dependency Injection and the DAO.
- [What is a Development Stack?](https://www.ask-codey.com/lessons/full-stack-what-is-a-development-stack) (Novice): A development stack is the set of tools a team picks for each layer of an app, and this lesson compares several well-known stacks before naming the one you'll learn in this bootcamp.
- [What is a Full Stack Developer?](https://www.ask-codey.com/lessons/what-is-a-full-stack-developer) (Novice): A full-stack developer can build a feature from the screen people tap, through the code on the server, down to the data it keeps, and this bootcamp teaches you to do exactly that with C#.
- [What Is a Function](https://www.ask-codey.com/lessons/javascript-functions-what-is-a-function) (Novice): A function is a named set of steps you write once and run whenever you need it, by calling its name.
- [What is a Stream?: an overview](https://www.ask-codey.com/lessons/what-is-a-stream-an-overview) (Apprentice): A data stream is like a water stream, where data flows from a source to a destination and the stream exists only between them.
- [What is a Variable](https://www.ask-codey.com/lessons/working-with-variables-what-is-a-variable) (Novice): A variable is a named place where your program remembers a value; declare it with a type and a name, give it a value, print it, and name it by Java's rules and conventions.
- [What is a Variable](https://www.ask-codey.com/lessons/variables-in-csharp-what-is-a-variable) (Novice): A variable is a named place where your program remembers a value, so it can use it again later.
- [What Is an Array](https://www.ask-codey.com/lessons/javascript-arrays-what-is-an-array) (Novice): An array keeps a whole list of values, such as the songs on a road-trip playlist, under one name, and you reach each one by its position, counting from 0.
- [What is an IDE?](https://www.ask-codey.com/lessons/development-tools-what-is-an-ide) (Novice): An IDE (integrated development environment) is one app with everything you need to write, build, run and debug a program, such as IntelliJ IDEA for Java or Visual Studio for C#.
- [What is an Object](https://www.ask-codey.com/lessons/working-with-objects-what-is-an-object) (Novice): Every object has a responsibility, and modeling a program starts with listing the objects and what each one is for.
- [What Is an Object](https://www.ask-codey.com/lessons/javascript-objects-what-is-an-object) (Novice): An object keeps everything about one thing together under labels, like a form with labeled boxes, so you can read, change and list a pet's name, age and more by name.
- [What is an Object?](https://www.ask-codey.com/lessons/working-with-objects-in-csharp-what-is-an-object) (Novice): Every object has a responsibility; finding the objects in a problem, and the job of each, is the first step in designing a program.
- [What is an ORM?](https://www.ask-codey.com/lessons/entity-framework-core-what-is-an-orm) (Journeyman): An ORM (object-relational mapper) moves data between C# objects and database tables. Dapper is a micro-ORM, where you write the SQL and it fills the objects. Entity Framework Core is a full ORM, where you write LINQ and it writes the SQL, and also tracks and saves your changes.
- [What is an RDBMS](https://www.ask-codey.com/lessons/what-is-an-rdbms) (Novice): A relational database (RDBMS) stores data in tables of rows and columns, links tables with primary and foreign keys, and is queried with SQL.
- [What is an RDBMS](https://www.ask-codey.com/lessons/csharp-what-is-an-rdbms) (Novice): A relational database management system (RDBMS) such as SQL Server stores data in tables of rows and columns, and links the tables with primary and foreign keys.
- [What is ASP.NET Core](https://www.ask-codey.com/lessons/aspnet-core-what-is-aspnet-core) (Novice): ASP.NET Core is .NET's framework for the web. It listens for requests, runs your C# to answer each one, and sends back a page built for that request.
- [What is Bootstrap?](https://www.ask-codey.com/lessons/bootstrap-what-is-bootstrap) (Novice): Bootstrap is a free CSS framework of ready-made styles and components; add it to a page with two lines from a CDN and start using its classes.
- [What is LINQ?](https://www.ask-codey.com/lessons/linq-what-is-linq) (Journeyman): LINQ is ETL for the data in your program. Start from any collection, chain methods such as Where, OrderBy and Select that each transform the items, and finish with ToList, Count or First. A query runs when its results are used.
- [What is Polymorphism: an overview](https://www.ask-codey.com/lessons/what-is-polymorphism-an-overview) (Journeyman): Polymorphism means "many forms": one object can play many roles, like a teenager who is a student, a singer and an athlete.
- [What is Version Control?](https://www.ask-codey.com/lessons/working-with-git-what-is-version-control) (Novice): Version control keeps the history of every change to your source code, and Git, the version control system this course uses, gives every developer a full copy of that history.
- [What Semantic HTML Means](https://www.ask-codey.com/lessons/html-what-semantic-html-means) (Apprentice): Semantic elements such as strong, nav, main and footer say what their content is, so the HTML describes the content and CSS handles how it looks.
- [What the Data Can and Can't Show](https://www.ask-codey.com/lessons/data-what-the-data-cant-show) (Journeyman): Two things moving together doesn't show one causes the other, a rate from a few sessions swings far more than one from many, and the period covered and the rows left out limit every finding, so a report ends with a short What this data can't tell us section that names them.
- [What WebSockets Add to HTTP](https://www.ask-codey.com/lessons/node-websockets-what-they-add) (Journeyman): HTTP answers only when the client asks, so a page that must hear about a goal the moment it's scored either asks again and again, which is polling, or opens a WebSocket, one connection that stays open so the server can speak first.
- [What You Can Build with Bash](https://www.ask-codey.com/lessons/bash-what-you-can-build) (Novice): The terminal turns jobs that take an afternoon of clicking into one line, and a file of those lines is a small application of your own, which this course takes you all the way to writing.
- [What You Can Build with CSS](https://www.ask-codey.com/lessons/css-what-you-can-build) (Novice): CSS is what turns a plain page of words into a site people enjoy using, and this course takes you from your first rule to seven projects you can put online and show off.
- [What You Can Build with Data Structures](https://www.ask-codey.com/lessons/ds-what-you-can-build) (Novice): See why the same million songs can take 999,999 looks to search or only 19, which everyday app features depend on how data is organized, and what you'll build in this course.
- [What You Can Build with Design Patterns](https://www.ask-codey.com/lessons/dp-what-you-can-build) (Novice): Code that works is only the start: this course builds five small apps, a bakery, a package tracker, a smart home, a library's web API and an old gym system, and changes each one the way real apps change, so you learn the fixes that keep code ready for the next change.
- [What You Can Build with HTML](https://www.ask-codey.com/lessons/html-what-you-can-build) (Novice): HTML is underneath every website, many email newsletters and e-books, and even apps on your TV and computer; this course takes you from your first page to a website for a local business.
- [What You Can Build with JavaScript](https://www.ask-codey.com/lessons/javascript-what-you-can-build) (Novice): JavaScript runs in every web browser and, with Node.js, on computers and servers too, so it powers games, maps, chat apps, browser extensions and the six projects you'll build in this course.
- [What You Can Build with Machine Learning](https://www.ask-codey.com/lessons/ml-what-you-can-build) (Novice): Machine learning is a computer working out a rule from past examples, the way a spam filter, a delivery estimate or a fraud check does, and this lesson shows where it's used, what it isn't (no magic, no promises, and in this course no chatbots), and the projects you'll build.
- [What You Can Build with MongoDB](https://www.ask-codey.com/lessons/mongodb-what-you-can-build) (Novice): A database keeps an app's data safe and answers its questions in a blink, and MongoDB keeps each record as a document, like a filled-in recipe card, which suits recipe sites, store orders, pet adoption sites and the five projects you'll build in this course.
- [What You Can Build with Node.js](https://www.ask-codey.com/lessons/node-what-you-can-build) (Novice): Node.js runs JavaScript outside the browser, on your own computer or on a server, so the language of web pages also runs the APIs behind apps, real-time servers, command-line tools and front-end build tools, and the six projects you'll build in this course.
- [What You Can Build with PowerShell](https://www.ask-codey.com/lessons/powershell-what-you-can-build) (Novice): PowerShell does in seconds the computer jobs that take an afternoon of clicking, and this course takes you from your first command to scripts that are small applications of your own.
- [What You Can Build with Python](https://www.ask-codey.com/lessons/python-what-you-can-build) (Novice): Python is the language people reach for to automate chores, turn data into charts, train machine learning models and run the back ends of apps, and this lesson shows where each one runs, what the Python interpreter does, and the projects you'll build in this course.
- [What You Can Build with Python and pandas](https://www.ask-codey.com/lessons/data-what-you-can-build) (Novice): Data analysis answers real questions with numbers, tables and charts, and this lesson shows the questions people answer with it, the tools that do the work (pandas, matplotlib and notebooks), the steps every analysis follows, and the projects you'll build in this course.
- [What You Can Build with Python Web APIs](https://www.ask-codey.com/lessons/fastapi-what-you-can-build) (Novice): A web API is the program on a server that apps ask for data, and this lesson shows what people build with Python web APIs, what a web framework does, why this course uses FastAPI, and the five APIs you'll build.
- [What's Filling My Disk? du and df](https://www.ask-codey.com/lessons/bash-disk-space) (Apprentice): du shows how much disk space each file and folder takes, sort -h puts those sizes in order with the biggest first, and df shows how much room is left on the drive.
- [What's Running: \`Get-Process\` and \`Stop-Process\`](https://www.ask-codey.com/lessons/powershell-processes) (Apprentice): Every running program is a process with a number, its Id: Get-Process lists them with their memory (WS) and processor time (CPU), Sort-Object puts the busiest first, CommandLine tells two PowerShells apart, and Stop-Process -Id stops one, after a rehearsal with -WhatIf.
- [What's Running: ps, top and htop](https://www.ask-codey.com/lessons/bash-processes) (Apprentice): Every running program is a process with a number, its PID: ps lists the ones in your terminal, ps aux lists every one on the computer, ps aux --sort=-%cpu puts the busiest first, and top and htop show the same list live.
- [When a Join Goes Wrong](https://www.ask-codey.com/lessons/pandas-join-pitfalls) (Journeyman): A join can run without an error and still give wrong answers, when a key that repeats in the lookup table copies rows (which validate= catches), when the key is a number in one table and text in the other, or when spaces hide in the keys, and each has a check and a fix.
- [When a Loop Inside a Loop Is Too Slow: Hash Tables at Work](https://www.ask-codey.com/lessons/ds-hash-tables-at-work) (Journeyman): Turn the gym's slow year-end reports into one pass: count each member's visits, find the first member to come back, and stop asking a slow server the same question twice. Then choose a list, a set or a dictionary for a job, and say why.
- [When a Relational Database Is the Better Choice](https://www.ask-codey.com/lessons/mongodb-when-relational-is-better) (Journeyman): An honest look at the apps where a relational database fits better than documents, such as money moving between many records, reports that join data in ways nobody planned, and a shape many teams must share, and why many apps use both.
- [When a Request Fails](https://www.ask-codey.com/lessons/python-requests-when-it-fails) (Journeyman): A web request can fail three ways, no connection, an error status code or no answer in time, and a program handles each with requests' own exceptions, raise_for_status() turning a 4xx or 5xx answer into an HTTPError, a friendly message instead of a traceback, and one more try when the network may come back.
- [When fetch Fails](https://www.ask-codey.com/lessons/javascript-fetch-when-it-fails) (Journeyman): fetch rejects only when no answer arrives at all, so check response.ok for answers like 404 and 500, catch network errors and timeouts (AbortSignal.timeout) with try/catch, and turn each one into a message a person understands.
- [When It Isn't There: HTTPException and 404](https://www.ask-codey.com/lessons/fastapi-not-found-httpexception) (Apprentice): A FastAPI route answers 404 for an item that isn't there by raising HTTPException with a status code and a detail message, which stops the function at once and sends {"detail": ...}, and a route that creates something sets status_code=201 on its decorator.
- [When Machine Learning Is the Wrong Tool](https://www.ask-codey.com/lessons/ml-when-ml-is-the-wrong-tool) (Apprentice): Machine learning is the wrong tool when a rule is already known, when a query on the data already holds the answer, when there are too few examples or the data doesn't hold the answer, when every decision must be explained exactly, or when a wrong guess costs too much, and a six-question checklist catches each case.
- [When Repetition Becomes a Pattern: The Rule of Three](https://www.ask-codey.com/lessons/dp-rule-of-three) (Journeyman): When the same solution turns up for the third time, each copy a little different, it's time to pull out its shared shape and give it a name; once is code, twice is a coincidence, and three times is a pattern worth naming, which is how every pattern in this course began.
- [When the Answer Is Rare](https://www.ask-codey.com/lessons/ml-imbalanced-classes) (Journeyman): When the class you're looking for is rare, accuracy rewards ignoring it, so you score a DummyClassifier that always guesses the most common class as the baseline to beat, read recall and balanced accuracy (the average of each class's recall) instead, and know that class_weight='balanced' moves the model toward the rare class while only more examples of it teach the model more.
- [When the Database Says No: Bad ids, Duplicates and Not Found](https://www.ask-codey.com/lessons/mongodb-driver-when-the-database-says-no) (Journeyman): An API answers each way a request can fail with the status that says whose problem it is, so a text that isn't an ObjectId gets 400, an id with no pet 404, a duplicate key (code 11000) 409, a document the validator refuses (code 121) 400, and a database that's down 500 with the details logged and never sent.
- [When the World Changes](https://www.ask-codey.com/lessons/ml-when-the-world-changes) (Journeyman): A model learns the world as it was in its training data, so when new examples stop looking like those rows (data drift), or the same inputs start leading to different answers (concept drift), its guesses slip; checking each column's range and mean on the new rows catches the first, and the error on new real answers catches both, which is when you retrain.
- [When to Reach for Another Language](https://www.ask-codey.com/lessons/powershell-when-to-use-another-language) (Journeyman): PowerShell is at its best as glue: files, Windows, other programs and quick-run applications; a script that grows past a few hundred lines, needs a web page or a phone app, has to run fast over millions of items or runs where PowerShell can't is a sign to look at C#, Python or JavaScript, and the languages work together, passing JSON, rather than taking sides.
- [When to Reach for Another Language](https://www.ask-codey.com/lessons/bash-when-to-use-another-language) (Journeyman): Bash is at its best gluing programs, files and folders together on any Linux server or Mac; when a script needs real data handling, grows into many files of logic or has to run for Windows users, Python, JavaScript or C# fits better, and a bash script can hand the hard part to a program in one of them.
- [Where a Tool Keeps Its Data](https://www.ask-codey.com/lessons/powershell-app-data) (Journeyman): A tool keeps its data in a folder of its own under $env:LOCALAPPDATA, builds the path with Join-Path, creates the folder the first time it runs, and saves and loads its objects as JSON, so what you add today is still there tomorrow, whatever folder you're in.
- [Where a Variable Lives: Scope and Code Blocks](https://www.ask-codey.com/lessons/conditional-logic-in-csharp-variable-scope-and-code-blocks) (Novice): A variable can be used only inside the block where it's declared, so you'll learn to declare each one where the code that needs it can see it, and how blocks, methods, classes and namespaces nest.
- [Where Am I? Get-Location and Paths](https://www.ask-codey.com/lessons/powershell-where-am-i) (Novice): Get-Location tells you which folder PowerShell is working in, and the path it prints is that folder's full address, from the drive letter down through every folder to the one you're in.
- [Where Am I? pwd and Paths](https://www.ask-codey.com/lessons/bash-where-am-i) (Novice): The terminal always works in one folder at a time, and pwd tells you which one as a path, the folder's address read from the top of the computer down to you.
- [Where an App Keeps Its Data](https://www.ask-codey.com/lessons/bash-app-data-and-config) (Journeyman): An app keeps its data in ~/.local/share and its settings in ~/.config, whatever folder you run it from, makes those folders and files itself on its first run, and loads its settings file with source.
- [Where Bias Comes From](https://www.ask-codey.com/lessons/ml-where-bias-comes-from) (Journeyman): A model trained on past decisions learns the old decision-makers' habits along with their judgment, and bias also gets in through groups missing from the data, groups measured less well, proxies and feedback loops, so leaving the sensitive column out of the features doesn't take the gap out of the model.
- [Where Do the Waiting Calls Wait? The Call Stack](https://www.ask-codey.com/lessons/ds-call-stack) (Apprentice): Trace any recursive function by hand, and see why recursion that goes too deep runs out of room: how a program keeps every waiting call's own values and the way back to it, which a single variable or a single bookmark can't do.
- [Where Documents Fit, and Where They Don't](https://www.ask-codey.com/lessons/mongodb-where-documents-fit) (Apprentice): Documents fit data that is read together, holds lists and changes shape over time; a relational database is often the better choice when many records must change together, when the same data is combined in many ways, or when a strict shape is the point.
- [WHERE in T-SQL: an overview](https://www.ask-codey.com/lessons/where-in-t-sql-an-overview) (Novice): A WHERE clause keeps only the rows that match a condition, such as the customers in one country.
- [Where Output Goes: \`Write-Output\`, \`Write-Host\` and Friends](https://www.ask-codey.com/lessons/powershell-output-streams) (Journeyman): Write-Output sends a script's results down the pipeline, where the next command, a variable or a > file receives them, while Write-Host, Write-Warning, Write-Verbose and Write-Error send words for people to the screen, each on a channel of its own that > and the pipeline leave alone.
- [Where the Data Lives When Your API Is Online](https://www.ask-codey.com/lessons/fastapi-deploy-where-data-lives) (Journeyman): Render's free web service wipes its files every time it redeploys, restarts or spins down, so a SQLite file there holds demo data that the API seeds at startup when the database is empty, and keeping data for real takes a persistent disk or a hosted database such as PostgreSQL, which cost money.
- [Where to Go Next](https://www.ask-codey.com/lessons/fastapi-where-to-go-next) (Journeyman): A look back at what you can now build with FastAPI, two projects to build on your own that put it all together (a tool library's API and an API of your own, online at a link), and how to choose a next step among a front end, PostgreSQL, SQLAlchemy, Docker and Django.
- [Where to Go Next](https://www.ask-codey.com/lessons/ml-where-to-go-next) (Journeyman): Look back at the whole course as the steps of one machine learning project, from deciding whether a model fits the question to watching it after it's in use, see plainly what the course left out, such as neural networks, text, images and forecasting, and find the ask-codey course that builds on it.
- [Where to Go Next](https://www.ask-codey.com/lessons/python-where-to-go-next) (Apprentice): Look back at everything this course taught you, plan a Python tool of your own that puts it all to work, and pick the habits and the next steps that keep your Python growing.
- [Where to Go Next](https://www.ask-codey.com/lessons/dp-where-to-go-next) (Novice): A look back at what you can now do with design patterns, a last task that finds patterns in code you already use, and how to keep the patterns, and your own, working for you.
- [Where to Go Next](https://www.ask-codey.com/lessons/ds-where-to-go-next) (Novice): A look back at what you can now do with data structures and Big-O, a last task, spotting the structures inside three apps you use, and how to choose what to learn next.
- [Where to Go Next](https://www.ask-codey.com/lessons/data-where-to-go-next) (Journeyman): Look back at everything this course taught you, from loading and cleaning data to charts, reports and tests, try a report across every week of the food truck's sales, plan an analysis of your own, and see where your data skills can go next.
- [Where to Go Next](https://www.ask-codey.com/lessons/javascript-whats-next-after-this-course) (Journeyman): A look back at what you can now build with JavaScript, the two projects that put it all together (the Typing Speed Game and an app of your own), and how to choose your next step among TypeScript, a framework and Node.js on the server.
- [Where to Go Next](https://www.ask-codey.com/lessons/mongodb-whats-next-after-this-course) (Journeyman): Look back at what you can do after MongoDB in Depth, from your first document to the data layer of a real API, and choose a next step, from building the server in Node.js in Depth to replica sets, sharding and Atlas's own features.
- [Where to Go Next](https://www.ask-codey.com/lessons/node-whats-next-after-this-course) (Journeyman): A look back at what you can now build with Node.js, the two projects that put it all together (the Neighborhood Book Swap API and an API of your own, online with a simple front end), and how to choose your next step among a front end, TypeScript, NestJS, Docker and more MongoDB.
- [Where to use Sub-Queries](https://www.ask-codey.com/lessons/working-with-sub-queries-where-to-use-sub-queries) (Journeyman): Where a sub-query can go, as a lookup value or list in WHERE, an EXISTS check, a column value, or a table to join.
- [Where to Use Sub-Queries](https://www.ask-codey.com/lessons/sub-queries-in-t-sql-where-to-use-sub-queries) (Journeyman): A sub-query can stand in for a value, a list or a table. Use it in WHERE with =, IN, NOT IN or EXISTS, as a column in the SELECT, or as a table in the FROM.
- [Which Course First? Topological Sort](https://www.ask-codey.com/lessons/ds-topological-sort) (Freelancer): Plan an order for a student's courses where every prerequisite comes first, fast even for a huge catalog, and spot the loop of prerequisites that makes any order impossible: why alphabetical order, sorting by prerequisite count and rescanning the catalog all fall short, and the method that fixes them, a topological sort.
- [While Loop](https://www.ask-codey.com/lessons/looping-while-loop) (Novice): A while loop repeats a block of code for as long as its condition is true, which suits jobs where you don't know the number of repeats in advance.
- [While Loop](https://www.ask-codey.com/lessons/looping-in-csharp-while-loop) (Novice): Repeat a block of code for as long as a condition stays true with C#'s while loop, and make sure the loop can end.
- [Who Accessibility Helps](https://www.ask-codey.com/lessons/html-accessibility-who-it-helps) (Apprentice): Accessibility means people can use your page however they browse, and it helps far more people than you might think, from a screen-reader user to someone holding a baby in one arm.
- [Who Can I Reach? Depth-First Search](https://www.ask-codey.com/lessons/ds-dfs) (Journeyman): Find everyone a person can reach through friends, and split a network into the groups that don't touch, with a short recursive walk that never goes round in circles: why the folder walk from Module 3 loops forever here, and the search that fixes it, depth-first search, and when to choose it over breadth-first search.
- [Who Knows Whom? When Anything Can Connect: Graphs](https://www.ask-codey.com/lessons/ds-graphs) (Journeyman): Find a person's friends in one step, in a network where anyone can know anyone and friendships loop back around: why a list of pairs and a tree both fall short, and the structure that fits, the graph, with one-way and two-way connections and weights.
- [Who Works Under Whom? Trees](https://www.ask-codey.com/lessons/ds-trees) (Apprentice): List everyone who works under a manager in a company of 10,000, without rereading every row for every person: why a list of rows and a name-to-manager dictionary fall short, and the structure that fixes them, the tree, with its words (root, parent, child, leaf, depth and height).
- [Who's Next in the Emergency Room? Heaps](https://www.ask-codey.com/lessons/ds-heaps) (Journeyman): Always call the most urgent patient next while new ones keep arriving, even on a day of 10,000: why an unsorted list and a sorted list both slow down, and the structure that fixes them, the heap, which keeps a tree in a plain array.
- [Why "Play Track 750,000" Is Instant and "Find Golden Hour" Isn't: Memory as Mailboxes](https://www.ask-codey.com/lessons/ds-memory-as-mailboxes) (Novice): Find out why a music app plays track 750,000 in one step but has to search for a song by its title, and how a program keeps songs of different sizes without losing that one step.
- [Why a Script Won't Run: The Execution Policy](https://www.ask-codey.com/lessons/powershell-execution-policy) (Apprentice): PowerShell's execution policy decides which script files may run; Get-ExecutionPolicy -List shows who set it, RemoteSigned for your own account lets your scripts run, and Unblock-File clears a downloaded script you've read and trust.
- [Why Can't the Dictionary Find Card 1042? Good Keys](https://www.ask-codey.com/lessons/ds-good-keys) (Journeyman): Find a member's locker from the card scanned this morning, when both of the gym's branches have a member 1042: why the card object, the member number alone and equality on its own each fail, and how to make your own type a key that works in your language.
- [Why Code Can't Stop and Wait](https://www.ask-codey.com/lessons/javascript-async-basics-why-code-waits) (Apprentice): JavaScript runs one line at a time on one thread, so code that stands and waits freezes the whole page; asynchronous code starts a wait, carries on, and finishes the job later.
- [Why Dapper](https://www.ask-codey.com/lessons/dapper-why-dapper) (Journeyman): Dapper is a small library that keeps your SQL but writes the ADO.NET code around it for you - opening the connection, adding parameters, and turning rows into objects.
- [Why Do We Need Data Storage?](https://www.ask-codey.com/lessons/introduction-to-databases-why-do-we-need-data-storage) (Novice): Applications keep their data in a database to have it in one place, keep it accurate and secure, manage it quickly, and grow as the data grows.
- [Why Does This Loop Take Seconds? Your Language's List](https://www.ask-codey.com/lessons/ds-built-in-lists) (Apprentice): A loop over 100,000 orders takes seconds, and one call in it is why. Meet your language's list, the growing array under five names, and read its cost card before you pick a method.
- [Why Explain a Model](https://www.ask-codey.com/lessons/ml-why-explain-a-model) (Journeyman): A model's guess lands on people who ask why, the person who gets the estimate, the team that keeps the model working and the manager who decides whether to use it, so you explain either the whole model (what it leans on across every example) or one guess (why this home got this number), and every explanation describes what the model learned from its data, not why the world works that way.
- [Why Is Everyone on Hook 3? Hash Functions](https://www.ask-codey.com/lessons/ds-hash-functions) (Journeyman): Pick a recipe that turns a name into a hook number without crowding the hooks: three recipes tried on one coat check, the three things a good one has to do, and the multiply-by-31 recipe your language's own hash codes use.
- [Why Queries Get Slow, and What an Index Is](https://www.ask-codey.com/lessons/mongodb-indexes-why-queries-get-slow) (Apprentice): A query with no index reads every document in the collection, which is fine for 50 orders and slow for 100,000, while an index keeps one field's values in order so MongoDB can go straight to the matches, at a cost in disk space and in every write.
- [Why Share Data Between Components?](https://www.ask-codey.com/lessons/angular-services-why-share-data-between-components) (Journeyman): Inputs and outputs only connect parents and children. When components far apart need the same data, such as a cart shown in the header and filled from a product page, passing it through every component in between gets messy. A shared service holds it in one place instead.
- [Why Singleton Is Usually a Trap](https://www.ask-codey.com/lessons/dp-singleton-trap) (Journeyman): A Singleton fixes two copies that disagree, but it hides what a class needs and lets tests change each other's results; making one object at the start of the app and handing it in keeps one shared object without either problem.
- [Why the Duplicates Button Crawls: O(n²)](https://www.ask-codey.com/lessons/big-o-quadratic) (Novice): Find out why a "find duplicates" button that takes a second at 10,000 songs takes about half a minute at 50,000, spot the loop-inside-a-loop that causes it, and name its growth rate: O(n²), quadratic time.
- [Why the Library Check Slows Down and Play Doesn't: O(1) and O(n)](https://www.ask-codey.com/lessons/big-o-constant-and-linear) (Novice): Tell a job whose work stays the same as the library grows from one whose work grows with it, and read their growth rates aloud: O(1), constant time, and O(n), linear time.
- [Why the Server Checks Again](https://www.ask-codey.com/lessons/html-forms-why-the-server-checks-again) (Journeyman): The browser's checks help people fill in a form, but anyone can switch them off, so the server that receives the answers must check every one again.
- [Wide to Long with melt](https://www.ask-codey.com/lessons/pandas-melt) (Journeyman): A wide table keeps one kind of value in many columns, a column per quiz, which reads well but is hard to filter and group, and melt turns it into a long table with one row per value, named with id_vars, var_name and value_name, the shape textbooks call tidy data.
- [Wildcards and Filters](https://www.ask-codey.com/lessons/powershell-wildcards-and-filters) (Apprentice): The wildcards \*, ? and \[ \] match many names with one pattern, so one Move-Item carries every photo at once, and Get-ChildItem's -Filter, -Include and -Exclude choose which names to list, -Filter the fastest of the three.
- [Wildcards: \*, ? and \[ \]](https://www.ask-codey.com/lessons/bash-wildcards) (Apprentice): A wildcard pattern such as \*.jpg stands for every name that fits it, and the shell swaps in those names before the command runs, so echo shows you the list first and one mv moves every photo at once.
- [Will It Survive a Million Users? The Doubling Table](https://www.ask-codey.com/lessons/big-o-doubling-table) (Novice): One table puts all six growth rates side by side at 10, 1,000 and 1,000,000 items, and shows why the growth rate of your code matters far more than the speed of your computer.
- [Will It Work Everywhere? Browser Support and @supports](https://www.ask-codey.com/lessons/css-browser-support) (Journeyman): Check whether a CSS feature works in your readers' browsers with Baseline and caniuse.com, then use it safely with fallbacks the cascade gives you for free, @supports, and progressive enhancement.
- [Windows Setup for C#: an overview](https://www.ask-codey.com/lessons/csharp-setup-an-overview) (Novice): Meet the Windows tools a C# developer uses every day, and the order in which you will install them.
- [Windows Terminal and Git Bash](https://www.ask-codey.com/lessons/os-and-terminal-tools-windows-terminal-and-git-bash) (Novice): A terminal is the window you type in and a shell is the program that runs your commands, and the bootcamp uses the Git Bash shell inside Windows Terminal.
- [winget](https://www.ask-codey.com/lessons/os-and-terminal-tools-windows-winget) (Novice): winget, the Windows Package Manager, installs and updates software with one typed command.
- [Wiring MongoDB into Express](https://www.ask-codey.com/lessons/node-mongodb-in-express) (Journeyman): An Express API connects to MongoDB once when the server starts, hands the database to createApp(db), answers 404 when the repository finds no workout, lets a failed database call reach the error-handling middleware, and closes the connection when Ctrl+C stops it.
- [Work That Runs After the Response](https://www.ask-codey.com/lessons/node-background-jobs) (Freelancer): When a request starts slow work the caller doesn't need to wait for, the server answers 202 Accepted with a Location to check later, hands the work to a job queue that runs it after the response, and moves heavy calculations to worker_threads, while job services such as BullMQ keep jobs safe across restarts.
- [Work That Runs After the Response](https://www.ask-codey.com/lessons/fastapi-background-tasks) (Freelancer): FastAPI's BackgroundTasks runs a function after the answer has gone, so a caller never waits for a confirmation message or a log entry, 202 Accepted says slow work has been taken on, and a job queue such as Celery or RQ is what keeps work safe when it must survive a restart.
- [Working with ArrayList](https://www.ask-codey.com/lessons/introduction-to-arraylist-working-with-arraylist) (Apprentice): Create an ArrayList and use add, get, remove, size and clear to manage its items.
- [Working With Data Types](https://www.ask-codey.com/lessons/working-with-data-types) (Novice): Every Java variable has a data type that decides what it can hold (whole numbers, decimals, a single character, text, or true and false), and each type has its own way to write a literal value.
- [Working with Elements: an overview](https://www.ask-codey.com/lessons/working-with-elements-an-overview) (Apprentice): Once you've found an element, JavaScript can read it and change it, from its text and CSS classes to which elements are on the page at all.
- [Working with Exceptions](https://www.ask-codey.com/lessons/working-with-exceptions) (Apprentice): What can go wrong when reading a file, and how \`try...catch\` and try-with-resources keep your application from crashing.
- [Working with Files in C#: an overview](https://www.ask-codey.com/lessons/working-with-files-in-csharp-an-overview) (Apprentice): A program finds a file by its path. An absolute path starts at the drive; a relative path starts at the program's current folder, which in Visual Studio is the build folder, so data files are copied there.
- [Working with Functions](https://www.ask-codey.com/lessons/java-vs-javascript-working-with-functions) (Apprentice): How to declare a JavaScript function, which names no return type and no parameter types.
- [Working with Functions](https://www.ask-codey.com/lessons/csharp-vs-javascript-working-with-functions) (Apprentice): A JavaScript function is declared with the function keyword, and has no return type and no parameter types. A missing argument is undefined, an extra one is ignored, and a function with no return gives undefined. Functions are values, too.
- [Working with Git: an overview](https://www.ask-codey.com/lessons/working-with-git-an-overview) (Novice): Git moves your code between GitHub and your computer in three steps, clone, commit and push, and this topic shows you each one.
- [Working with Java Streams](https://www.ask-codey.com/lessons/what-is-a-stream-working-with-java-streams) (Journeyman): A Java stream works like ETL for in-memory data, taking a collection, transforming it step by step, then collecting the result.
- [Working with List&lt;T>](https://www.ask-codey.com/lessons/lists-in-csharp-working-with-list-t) (Apprentice): Add, insert, read, find, remove, sort and loop through the items of a C# List&lt;T>.
- [Working with Objects in C#: an overview](https://www.ask-codey.com/lessons/working-with-objects-in-csharp-an-overview) (Novice): Object-oriented programming models software on the things around us, objects that each know some facts and do some jobs.
- [Working with Objects: an overview](https://www.ask-codey.com/lessons/working-with-objects-an-overview) (Novice): Object-oriented programming models a program on real things: objects that each have a job to do.
- [Working with the File Object: an overview](https://www.ask-codey.com/lessons/working-with-the-file-object-an-overview) (Apprentice): A Java \`File\` object points at a path so you can inspect it; creating one does not open the file.
- [Working with the Terminal](https://www.ask-codey.com/lessons/os-and-terminal-tools-working-with-the-terminal) (Novice): The Terminal lets you manage files and run developer tools such as Git and Homebrew by typing commands, and IntelliJ and VS Code each have one built in.
- [Working with the Terminal (macOS): an overview](https://www.ask-codey.com/lessons/working-with-the-terminal-macos-an-overview) (Novice): The Terminal shows the same folders as Finder, as text you type, starting from your home folder (~) and the ls command.
- [Working with the Terminal (Windows): an overview](https://www.ask-codey.com/lessons/working-with-the-terminal-an-overview) (Novice): Git Bash shows the same folders as File Explorer, as text you type, starting from your home folder (~) and the ls command.
- [Working with User Input](https://www.ask-codey.com/lessons/working-with-user-input) (Journeyman): Pass user input to a query as a ? parameter instead of joining it into the SQL string, so nobody can run a SQL injection attack on your database.
- [Working with User Input](https://www.ask-codey.com/lessons/working-with-user-input-in-csharp) (Journeyman): Use what a user types in a query safely with SqlCommand parameters, and see why building SQL from their text opens the door to SQL injection.
- [Wrapping Text Around a Picture: float and clear](https://www.ask-codey.com/lessons/css-float-and-clear) (Apprentice): Wrap a story's words around a photo with float, keep a float from hanging out of its card with clear and display flow-root, and tell a float apart from an absolutely positioned box.
- [Writing a File: StreamWriter's Defaults](https://www.ask-codey.com/lessons/writing-to-files-in-csharp-filestream-defaults) (Journeyman): A StreamWriter writes text to a file the way Console writes to the screen. By default it creates the file, or replaces one that's already there. Close it with using, so everything written reaches the disk.
- [Writing a Pattern Card Your Team Will Read](https://www.ask-codey.com/lessons/dp-writing-a-pattern-card) (Journeyman): A shared solution that nobody knows about, or knows when to use, gets copied around anyway; a pattern card says on one page what problem it solves, how to use it, when to skip it and where it's already used, so a teammate can pick it up without asking.
- [Writing Log Entries](https://www.ask-codey.com/lessons/logging-exceptions-writing-log-entries) (Journeyman): Using one LogService for error logs and another for application logs, each writing to its own directory.
- [Writing Log Entries](https://www.ask-codey.com/lessons/logging-exceptions-in-csharp-writing-log-entries) (Journeyman): Create one LogService for errors and one for ordinary events, each with its own folder. In a catch block, log the exception's type and message with the file or record involved, and tell the user something helpful.
- [Writing Scripts in VS Code](https://www.ask-codey.com/lessons/powershell-scripts-in-vs-code) (Apprentice): VS Code with Microsoft's free PowerShell extension colors a script, suggests commands as you type, underlines problems such as a missing quote or an alias before you run anything, and runs the whole script with F5 in a terminal inside the editor.
- [Writing Scripts in VS Code](https://www.ask-codey.com/lessons/bash-scripts-in-vs-code) (Apprentice): VS Code is a free editor for Windows, Mac and Linux; code . opens the folder you're in, the free ShellCheck extension underlines mistakes in a script as you type, and its built-in terminal runs the script without leaving the editor, though nano still works.
- [Writing Tests](https://www.ask-codey.com/lessons/unit-testing-writing-tests) (Apprentice): Write a JUnit test by marking it with @Test, giving it a descriptive name, and laying it out as Arrange, Act, Assert.
- [Writing Tests](https://www.ask-codey.com/lessons/unit-testing-with-mstest-writing-tests) (Apprentice): Name each test for its scenario, write it in three parts (Arrange, Act, Assert), check results with MSTest's Assert methods, and run one test for many inputs with DataRow.
- [Writing the Class in C#](https://www.ask-codey.com/lessons/working-with-objects-in-csharp-writing-the-class-in-csharp) (Apprentice): Turn a class design into C# with private fields and public methods, then create objects with new and call their methods.
- [Writing the Class in Java](https://www.ask-codey.com/lessons/working-with-objects-writing-the-class-in-java) (Apprentice): Turn a class design into Java with private variables, getters and setters, and methods, then create an object from it with new.
- [Writing the Report: Charts and Tables on a Web Page](https://www.ask-codey.com/lessons/data-writing-the-report) (Journeyman): A report someone else reads is a web page, so the script saves each chart as a PNG with savefig and closes it, turns tables into HTML with to_html, builds the page with an f-string, and writes it into a folder of its own for each week, ready to open in any browser.
- [Writing to Files: echo, > and >>](https://www.ask-codey.com/lessons/bash-writing-to-files) (Novice): echo prints a line of text, > (read "into") sends it into a file and replaces whatever the file had, >> (read "add to") adds it to the end, and printf writes neat lines from a pattern.
- [Writing to Files: Set-Content, Add-Content and >](https://www.ask-codey.com/lessons/powershell-writing-to-files) (Novice): Set-Content writes a file, replacing whatever it held, Add-Content adds lines to its end, and > and >> save a command's output into a file the same two ways, in UTF-8 text.
- [You Already Use Patterns](https://www.ask-codey.com/lessons/dp-you-already-use-patterns) (Novice): Four everyday things, a car's start button, a back-in-stock text, a coin sorter and a camera's shooting modes, each solve a problem that software has too, and the fixes they use are four of the design patterns this course teaches.
- [Your Command History](https://www.ask-codey.com/lessons/powershell-command-history) (Apprentice): PowerShell remembers the commands you type, so the up arrow, Ctrl+R, Get-History and the prediction list bring back a long command instead of making you type it again.
- [Your Command History](https://www.ask-codey.com/lessons/bash-command-history) (Apprentice): The shell remembers every command you type, so the up arrow brings back the last ones, history lists them all with numbers, Ctrl+R finds one by any part of it, and clear gives you a fresh screen.
- [Your Computer's Facts: \`Get-CimInstance\`](https://www.ask-codey.com/lessons/powershell-cim) (Journeyman): Get-CimInstance asks Windows' own catalog of facts about the computer, one class at a time, such as Win32_OperatingSystem for the Windows version and the last restart, Win32_LogicalDisk for the disks and Win32_Battery for the battery, and a calculated property turns its bytes into gigabytes.
- [Your Dotfiles: A Setup You Can Carry](https://www.ask-codey.com/lessons/bash-dotfiles) (Journeyman): Dotfiles are the hidden settings files that make a shell yours; keep your own in a ~/dotfiles folder, link each one into place with ln -s, and keep the folder in Git if you use it, and a new computer is set up like your old one in a minute.
- [Your First C# Program](https://www.ask-codey.com/lessons/csharp-projects-your-first-csharp-program) (Novice): Write and run your first C# program, first as a single file with dotnet run, then as a project in the terminal and in Visual Studio.
- [Your First Chart](https://www.ask-codey.com/lessons/python-taste-pandas-first-chart) (Apprentice): A bar chart shows at a glance what a column of numbers makes you read digit by digit, and matplotlib draws one in a few lines, with a title and axis labels so the reader knows what it shows, saved as an image file with savefig.
- [Your First CSS Rule](https://www.ask-codey.com/lessons/css-your-first-rule) (Novice): Write your first CSS rules on a coffee shop's menu, learn the name of every part (selector, declaration, property and value), and see what the browser does with a typo.
- [Your First Documents in mongosh](https://www.ask-codey.com/lessons/mongodb-first-documents-in-mongosh) (Novice): Start mongosh, see the databases with show dbs, choose one with use, add Sunday Kitchen's first three recipes with insertOne, list them with find, and leave with exit.
- [Your First Express App: Routes and JSON](https://www.ask-codey.com/lessons/node-express-first-app) (Apprentice): Express turns each endpoint into one line that names its method and path, answers with res.json, and reads a JSON body from req.body once express.json() is switched on, so a small API takes a few lines instead of sixty.
- [Your First FastAPI App](https://www.ask-codey.com/lessons/fastapi-first-app) (Apprentice): Make a project folder with a virtual environment, install FastAPI, write GET routes that return a dictionary and a list for FastAPI to send as JSON, run the app with fastapi dev, and try every route on its docs page at /docs.
- [Your First FastAPI Route](https://www.ask-codey.com/lessons/python-taste-fastapi-first-route) (Apprentice): FastAPI turns Python functions into a web API, where a decorator ties each function to an address, a path parameter with a type hint reads part of the address, HTTPException answers 404, fastapi dev runs the app, and /docs lets you try every route.
- [Your First JavaScript Program](https://www.ask-codey.com/lessons/javascript-first-programs-hello-node) (Novice): Write a program that prints a coffee shop's specials with console.log, run it with node, leave notes in it with comments, and read the error message when something goes wrong.
- [Your First Minimal API](https://www.ask-codey.com/lessons/minimal-apis-your-first-minimal-api) (Apprentice): A minimal API maps each address and method straight to a lambda in Program.cs, with MapGet, MapPost, MapPut and MapDelete. The lambda's parameters come from the route and the body, and Results.NotFound(), Results.Created() and friends choose the status code.
- [Your First Node.js Program](https://www.ask-codey.com/lessons/node-first-program) (Novice): Run a JavaScript file with the node command, try lines one at a time in the REPL, rerun a file on every save with node --watch, read an error and its stack trace, and see what Node has that a browser doesn't.
- [Your First Notebook in VS Code](https://www.ask-codey.com/lessons/data-notebooks-first-notebook) (Novice): Make a notebook in VS Code, choose the project's .venv Python as its kernel, run code cells with Shift+Enter, see that a cell shows its last line's value while print() shows every line it prints, add a Markdown cell, and save the code, results and notes in one .ipynb file.
- [Your First pandas Table](https://www.ask-codey.com/lessons/python-taste-pandas-first-table) (Apprentice): pandas reads a whole CSV file into a DataFrame, a table you can ask questions, and a few lines then show what's in it, pick out a column, keep the rows that match a condition and total a column for each group.
- [Your First Python Program](https://www.ask-codey.com/lessons/python-first-program) (Novice): Write a Python program in a .py file that prints lines with print(), run it with python and the file's name, leave notes in it with comments, and read a traceback from its last line up to find what went wrong and on which line.
- [Your First scikit-learn Model: fit and predict](https://www.ask-codey.com/lessons/ml-fit-and-predict) (Journeyman): Every scikit-learn model follows the same three steps, make it, fit(X, y) to learn from examples, and predict(X) to guess for new ones, with the features X as a table even when there's only one, and a linear regression's learned slope and intercept kept in coef\_ and intercept\_.
- [Your First Script](https://www.ask-codey.com/lessons/bash-your-first-script) (Apprentice): A script is a file of commands that starts with the shebang line #!/usr/bin/env bash and explains itself in comments; chmod +x lets it run, and ./ and its name runs it from the folder it's in.
- [Your First Script](https://www.ask-codey.com/lessons/powershell-your-first-script) (Apprentice): A script is a .ps1 file of commands that run from top to bottom, with comments starting with # that say what it does, and you run it from its own folder with .\\ and its name, because PowerShell never looks in the current folder for a command on its own.
- [Your First Tests with node --test](https://www.ask-codey.com/lessons/node-testing-first-tests) (Apprentice): A test is a few lines of code that run your code and check its answer, and Node's built-in test runner, node --test, runs every test file and reports what passed and what didn't.
- [Your First Tests with pytest](https://www.ask-codey.com/lessons/python-testing-first-tests) (Journeyman): A test is a small function that runs your code on an example and makes sure the answer is right, and pytest finds every test, runs it, and shows exactly what came back when one fails.
- [Your First Tests with Vitest](https://www.ask-codey.com/lessons/javascript-testing-first-tests-with-vitest) (Journeyman): A unit test is a few lines of code that check one piece of your code and shout when it breaks, and Vitest's describe, it and expect let you write one, run it and read the result.
- [Your Own Module](https://www.ask-codey.com/lessons/powershell-modules) (Journeyman): A module is a folder of functions that PowerShell loads by name: the functions go in a .psm1 file, Export-ModuleMember chooses which ones others can call, New-ModuleManifest writes a .psd1 that gives the module a version and a description, and a folder on $env:PSModulePath lets PowerShell find it from anywhere.
- [Your Own Modules and Packages](https://www.ask-codey.com/lessons/python-modules-your-own) (Apprentice): Any .py file is a module another file can import, so a growing program is split into files by job, a folder of them with \_\_init\_\_.py becomes a package, and the \_\_name\_\_ check keeps a file's own test lines from running when it's imported.
- [Your Profile](https://www.ask-codey.com/lessons/powershell-profile) (Apprentice): Your profile is a script PowerShell runs every time it starts, at the path in $PROFILE, so the variables, short names and settings you put in it are ready in every window, and dot-sourcing it loads a change into the window you're in.
- [Your Road Through This Course](https://www.ask-codey.com/lessons/full-stack-your-road-through-this-course) (Novice): The bootcamp's four modules build the stack one layer at a time, from your first line of C# to a secure Angular app talking to your own web API and database, online in Azure.
- [Your Script Can Have a Window Too](https://www.ask-codey.com/lessons/powershell-windows-forms) (Freelancer): On Windows, a script can open a small window of its own with .NET's Windows Forms: a form, a list, a button and a label, with a script block that runs when the button is clicked, so a colleague who would rather click can use your tool without typing a command.
- [Your Turn at the Whiteboard: Solving a Problem Out Loud](https://www.ask-codey.com/lessons/ds-solving-out-loud) (Journeyman): Work an interview problem yourself, out loud, on a road-trip playlist: decide what to ask, plan and price a first idea, improve it with a structure, code it and test it, deciding at each step before you look, then name the four steps you used: clarify, plan, code, test.

Source: https://www.ask-codey.com/lessons
