Published lessons
Explore the learning library
Browse the complete set of published lessons, follow the worked examples, and try related browser-based tools.
SQL
SQL · Beginner
Start with a small customer-and-orders dataset, choose the columns you need, filter rows, and check the expected results.
- Selecting columns and using an alias
- Filtering with comparisons and AND
- Sorting results and a practice question
Read the SQL basics lesson →
Continue with SQL INNER JOIN vs LEFT JOIN and handling NULL.
SQL
SQL · Beginner
Work through a customers-and-orders dataset, compare exact join results, and see how filtering and counting affect unmatched rows.
- Sample tables and rows
- Expected results for both joins
- Filtering and counting unmatched rows
Read the SQL joins lesson →
Continue with SQL NULL handling, or practice formatting with the online SQL formatter.
SQL
SQL · Beginner
Learn why NULL is not an ordinary value, how to test it, and how right-side filters affect a LEFT JOIN.
- Use IS NULL instead of = NULL
- Find customers without orders
- Keep unmatched rows while filtering matches
Read the SQL NULL lesson →
Uses the same customers-and-orders sample as the SQL basics and joins lessons.
SQL
SQL · Beginner
Summarize orders by customer, count LEFT JOIN matches correctly, and filter aggregate groups.
- GROUP BY with COUNT and SUM
- COUNT(*) versus counting a matched key
- WHERE versus HAVING and a practice query
Read the SQL aggregation lesson →
Builds on the shared customers-and-orders sample and the SQL NULL lesson.
SQL
SQL · Beginner
Learn how keys, required values, uniqueness, and checks help prevent invalid customer and order data.
- PRIMARY KEY and FOREIGN KEY
- NOT NULL and UNIQUE values
- CHECK constraints with valid and invalid examples
Read the SQL constraints lesson →
Builds on the shared customers-and-orders sample and the aggregation lesson.
SQL
SQL · Beginner
Use BEGIN, COMMIT, and ROLLBACK to manage related database changes as one operation.
- Commit related inserts together
- Roll back changes before commit
- Run transaction statements on the same connection
Read the SQL transactions lesson →
Builds on SQL constraints and the shared sample data.
SQL
SQL · Beginner
Learn how an index can support lookups, inspect a SQLite query plan, and understand the maintenance trade-offs.
- Create and remove an index
- Inspect a query plan
- Understand why plans and performance vary
Read the SQL indexes lesson →
Builds on the shared customers-and-orders sample and transactions.
SQL
SQL · Database differences
Compare how string concatenation handles missing values, with MySQL runtime verification and a clear PostgreSQL testing note.
- MySQL 8.4.3 CONCAT behavior
- PostgreSQL 18 documented behavior
- Use CONCAT_WS or COALESCE intentionally
Read the SQL portability lesson →
PostgreSQL runtime verification is not yet available in this environment.
PHP
Laravel · Beginner
Trace a real TeachyLeaf page through its front controller, route, middleware, controller, Blade layout, and response.
- Follow GET /about through the app
- Connect routes, controllers, and views
- Inspect the route and middleware with Artisan
Read the Laravel request lifecycle lesson →
Based on Laravel 13.16.1 and PHP 8.3.30.
PHP
Laravel · Beginner
Follow the real contact form through CSRF middleware, validation, feedback, rate limiting, and mail handling.
- Validate submitted fields on the server
- Restore input and display validation errors
- Understand honeypot and mail-test limits
Read the Laravel form validation lesson →
Continues the Laravel request lifecycle lesson.
PHP
Laravel · Beginner
Follow the real blog query through filtering, date ordering, pagination, and slug-based route model binding.
- Filter and order model queries
- Pass paginated results to Blade
- Resolve a public post by its slug
Read the Laravel Eloquent lesson →
Builds on routing and form validation.
PHP
Laravel · Beginner
Read real schema changes, inspect migration status, apply updates, and understand rollback and production risks.
- Create a table with the schema builder
- Add a column with a later migration
- Verify changes for the target database
Read the Laravel migrations lesson →
Continues the Eloquent database lesson.
PHP
Laravel · Beginner
Build consistent circuit diagrams from small Blade components, shared SVG styles, and accessible figure markup.
- Pass attributes to anonymous Blade components
- Compose reusable SVG primitives into a diagram
- Separate markup, styling, and accessibility text
Read the Blade components lesson →
Uses the actual circuit components in the Thevenin lesson.
PHP
Laravel · Beginner
Learn how Laravel tests exercise TeachyLeaf's contact form and blog using HTTP assertions, mail fakes, factories, and an isolated database.
- Assert response status, redirects, and validation errors
- Fake mail and verify the intended message
- Use database refreshes and factories for isolated checks
Read the Laravel testing lesson →
Based on the project's contact form and blog query tests.
PHP
Laravel · Beginner
Follow TeachyLeaf's versioned CSS and JavaScript URLs, the cache-backed version value, and the protected admin action that rotates it.
- Append a version parameter without breaking existing query strings
- Understand what cache busting does and does not guarantee
- Protect asset-version controls behind authentication
Read the asset versioning lesson →
Based on the asset-version feature tests and current frontend layout.
PHP
Laravel · Deployment
Understand production settings, secrets, configuration caching, maintenance mode, and careful deployment checks.
- Set production environment values safely
- Understand when configuration caching matters
- Verify changes without exposing credentials
Read the deployment configuration lesson →
Builds on the asset versioning lesson.
PHP
Laravel · Operations
Understand Laravel's built-in health endpoint and distinguish a basic application response from full service availability.
- Inspect the configured health route
- Interpret a status response without overclaiming
- Keep health output useful and non-sensitive
Read the health checks lesson →
Builds on the production configuration lesson.
PHP
Laravel · Database
Follow the project's database and tutorial seeders to understand factories, repeatable records, and why sample data belongs in a controlled environment.
- Understand what the default seeder actually runs
- Create example model records with factories
- Avoid sending test users and fake posts to production
Read the database seeding lesson →
Continues the migration lesson with data setup.
PHP
Laravel · Operations
Understand Laravel log channels and levels, add useful error context, and keep passwords and reset tokens out of application logs.
- Compare single-file, daily, and stacked logs
- Choose log levels for operational signals
- Verify the password-reset notification flow safely
Read the Laravel logging lesson →
Builds on production configuration and feature testing.
PHP
Laravel · Routing
Follow authentication and guest middleware in real routes, inspect route assignments with Artisan, and distinguish signing in from authorization.
- Trace the auth group protecting admin actions
- Inspect route middleware with route:list
- Understand why login is not role authorization
Read the route middleware lesson →
Builds on the request lifecycle and form validation lessons.
{ }
JSON · Debugging
Learn to identify common causes of invalid JSON, from missing commas and trailing commas to unquoted keys and mismatched brackets.
- Before-and-after syntax examples
- Strings, commas, and object keys
- How to read parser errors
Read the JSON syntax guide →
Check your input with the online JSON formatter.
V=IR
Electronics · Circuit theory
Find the equivalent voltage and resistance for a loaded voltage divider, then calculate its load voltage and current.
- Calculate the open-circuit Thevenin voltage
- Find the resistance seen by the load
- Understand the model’s assumptions and limits
Read the Thevenin theorem lesson →
Use the interactive circuit calculator with your own values.
JS
JavaScript · Text encoding · Beginner
Learn how UTF-8 bytes fit into browser Base64 APIs, why direct Unicode conversion can fail, and why Base64 is not encryption.
- Convert text with TextEncoder and TextDecoder
- Distinguish standard from URL-safe Base64
- Understand what Base64 does not protect
Read the JavaScript lesson →
Try a checked Unicode round trip with the Base64 text tool.
JS
Node.js · HTTP · Beginner
Create health and greeting routes with Node’s built-in HTTP module, parse a query value, and return JSON with deliberate status codes.
- Match paths and HTTP methods
- Read query parameters and validate input
- Test JSON responses and status codes
Read the Node.js HTTP lesson →
Continue with reading a JSON request body, or compare the flow with the Laravel request lifecycle.
JS
Node.js · HTTP · JSON · Beginner
Build a bounded POST route that checks the JSON content type, UTF-8 bytes, parsed body shape, and application fields.
- Read a body stream with a byte limit
- Distinguish JSON syntax from field validation
- Return clear 400, 413, and 415 responses
Read the JSON request lesson →
Builds on the Node.js HTTP server lesson.
Ω
Electronics · Components · Beginner
Decode common 4-band and 5-band resistors, calculate tolerance ranges, and learn when a visual reading needs verification.
- Digit, multiplier, and tolerance bands
- Worked 4-band and 5-band examples
- Measurement limits and component checks
Read the resistor color-code lesson →
Apply resistor values in the Thevenin calculator.
Vout
Electronics · Circuit theory · Beginner
Calculate an unloaded divider output, then include a load resistor and see why the output voltage falls.
- Use the voltage-divider formula
- Account for a load in parallel with R2
- Understand when a divider is unsuitable
Read the voltage-divider lesson →
Builds toward the Thevenin theorem lesson.
V=IR
Electronics · Circuit fundamentals · Beginner
Connect voltage, current, and resistance with Ohm’s law, calculate power dissipation, and learn why wattage ratings matter.
- The three variations of Ohm’s law
- Power dissipation formulas (P = VI, I²R, V²/R)
- Resistor wattage ratings (1/4 W vs 1/2 W) and safety derating
Read the Ohm’s law & power lesson →
Related tool: resistor color code calculator.
AND
Digital electronics · Beginner
Compare AND, OR, NOT, NAND, NOR, and XOR, then evaluate a three-input expression row by row.
- Compare the outputs of six common logic gates
- Read a truth table for all eight input combinations
- Apply NOT, AND, and OR in a worked expression
Read the digital logic lesson →
A beginner lesson in ideal Boolean logic, with real-circuit limits explained.
G(s)
Control systems · Beginner
Work through a first-order unity-feedback example, calculate its closed-loop response, and see the effect of controller gain on response and step error.
- Form a unity-feedback transfer function
- Calculate the closed-loop time constant
- Find the final value and unit-step error
Read the control-systems lesson →
Builds on the site’s circuit-theory lessons with a continuous-time model.