Pytest Basics: Writing Your First Python Tests
A practical introduction to pytest — installation, test discovery, the assert statement, parametrize, fixtures, and the command-line flags you will use every day.
1745 posts · page 36 of 37
A practical introduction to pytest — installation, test discovery, the assert statement, parametrize, fixtures, and the command-line flags you will use every day.
A practical introduction to Vitest — why it exists, installation, describe and it, expect matchers, watch mode, and a small mock example for testing modern JavaScript.
An honest introduction to automated testing — unit, integration, and end-to-end tests, the testing pyramid, why tests pay back over time, and common excuses for skipping them.
A practical guide to enums and literal types in TypeScript — string enums, number enums, const enums, literal unions as a lighter alternative, and discriminated unions.
Learn Docker Compose by building a small two-service app — a web API and a Postgres database — defined in a single compose.yaml file and started with one command.
A practical deep dive into how Docker images are stored as layers, how the build cache works, and the real difference between bind mounts and named volumes.
A step-by-step setup guide for Docker on Windows, macOS, and Linux. Install the engine, verify it works, and run your first container in under fifteen minutes.
Learn how to write a Dockerfile from scratch. Understand each instruction, build a real image for a small Node application, and run it as a container.
A clear, no-hype introduction to Docker — what containers actually are, how they differ from virtual machines, and the vocabulary you need before installing anything.
Learn what a Git branch really is, how to create and switch branches, how to merge work back into main, and how to resolve a simple merge conflict.
An end-to-end workflow for using Git with GitHub: create a repo, set up SSH, push your code, work with branches and pull requests, and recover from common mistakes.
Install Git on Windows, macOS, or Linux, configure your identity, initialise a repository, and walk through the full life cycle of your first commit.
A clear comparison of git merge and git rebase — what each one does to history, the trade-offs, the golden rule, and a practical decision guide for beginners.
A clear, jargon-light introduction to Git — what it is, why it exists, how it differs from GitHub, and the core mental model every developer needs.
Every element on a web page is a rectangular box. This guide explains the four layers of that box — content, padding, border, and margin — and the box-sizing fix that makes them sane.
Flexbox is the modern tool for one-dimensional layout. This guide covers the container and item properties you need to align, distribute, and wrap any row or column of elements.
A practical tour of the HTML tags you will use daily — headings, paragraphs, links, lists, images, forms, and the semantic containers that structure a real page.
A clear introduction to CSS — what it is, how it connects to HTML, how selectors and the cascade work, and how to write your first stylesheet from scratch.
A clear, professional introduction to HTML — what it is, how browsers read it, why it is the foundation of every website, and how to write your first page.
A complete beginner's guide to JavaScript arrays — creation, indexing, the essential mutation methods, iteration, map/filter/reduce, and a first look at spread and destructuring.
A complete beginner's guide to control flow in JavaScript — if/else, switch, for, while, for...of, break and continue, and the loops you should reach for first.
Every JavaScript data type explained — strings, numbers, booleans, null, undefined, symbols, bigints, and objects — with practical examples and how to check types correctly.
A complete beginner's guide to numbers in JavaScript — arithmetic, the Math object, rounding, formatting, NaN, Infinity, and the floating-point quirk every developer must know.
A practical guide to JavaScript objects — creation, access, mutation, iteration, shorthand syntax, destructuring, spread, and how object references actually work.
A complete beginner's guide to JavaScript operators — arithmetic, comparison, logical, assignment, and the modern nullish coalescing and optional chaining operators.
Run JavaScript in your browser's console, install Node.js, set up VS Code, and write three working first programs — all in under fifteen minutes.
A practical guide to JavaScript strings — template literals, indexing, the essential methods, immutability, and the modern ways to slice, search, and transform text.
A practical guide to declaring variables in modern JavaScript — when to use const, when to use let, why var still exists, and the naming rules that keep your code readable.
A clear, professional introduction to JavaScript — what it is, how it runs in browsers and on servers, why it became the most-used language on Earth, and what you can build with it.
Twenty commands that cover the overwhelming majority of day-to-day Linux work — navigation, file management, inspection, search, and processes — with runnable examples for each.
Read every rwx string at a glance, change permissions with chmod (symbolic and numeric), change ownership with chown, and understand when to use sudo. With runnable examples.
A practical tour of the Linux file system hierarchy — what /etc, /var, /home, /usr, and friends are actually for, and how paths, mounts, and hidden files work.
Open a terminal, read the prompt, and learn the handful of conventions that make every command-line tool consistent. The foundation for everything else you will do on Linux.
An honest, jargon-free introduction to Linux — what it actually is, how it differs from Windows and macOS, the role of distributions, and why developers gravitate toward it.
A step-by-step setup guide for Python 3 on Windows, macOS, and Linux. Install the interpreter, set up VS Code, and write a working Python program in under ten minutes.
A complete guide to Python's comparison and logical operators — equality vs identity, chained comparisons, short-circuit evaluation, and common pitfalls.
A practical guide to Python conditionals — if, elif, else, truthiness, conditional expressions, and the patterns that keep branching logic clean and readable.
An overview of every built-in data type in Python — int, float, str, bool, list, tuple, dict, set, and None — with examples and guidance on when to use each.
A practical guide to Python function arguments — defaults, keyword arguments, *args, **kwargs, positional-only and keyword-only parameters, and the mutable default gotcha.
A complete beginner's guide to Python dictionaries — creation, access, mutation, iteration, the essential methods, and the patterns that appear in nearly every real Python program.
A practical guide to file I/O in Python — open modes, the with statement, reading and writing text and binary, working with paths, and handling common errors.
A practical guide to Python for loops — iterating over sequences, the range function, enumerate and zip, nested loops, and the idiomatic patterns you will use every day.
A practical guide to Python functions — defining with def, returning values, arguments and parameters, docstrings, and the habits that make functions worth reusing.
A complete beginner's guide to Python lists — creation, indexing, slicing, mutation, the essential methods, iteration patterns, and a first look at list comprehensions.
A practical guide to Python modules and imports — writing your own modules, import forms, packages, the if __name__ == '__main__' idiom, and avoiding common pitfalls.
A practical guide to integers, floats, arithmetic operators, operator precedence, the math module, and the floating-point gotchas every Python beginner should know.
A clear guide to Python variable scope — local, enclosing, global, and built-in names, the LEGB rule, and when to reach for the global and nonlocal keywords.
Learn how Python sets store unique values, the operations they support — union, intersection, difference — and when to choose a set over a list or dictionary.