Skip to content

Posts

SQLite Basics: Combine and Compare Lists with Set Operations

Compound queries combine result rows from separate SELECT statements. UNION combines lists, INTERSECT finds their overlap, and EXCEPT finds what is missing from the second list. …

Read more →

October 20, 2026

SQLite Basics: Choose Labels and Sort Priorities with CASE

CASE chooses a result inside a query. It is useful for readable labels, ordered rules, and a business-specific sort order. The examples below keep the stored data unchanged. …

Read more →

October 20, 2026

SQLite Basics: Check for Related Rows with EXISTS

Use EXISTS when a report needs to know whether a related row is present. These examples select customers with orders, find missing matches, and add a yes-or-no flag without …

Read more →

October 20, 2026

Python Basics: Working with Live Dictionary Views

Dictionary keys, values, and items can be inspected through live views. Understanding the difference between a view and a snapshot helps when comparing mappings or removing …

Read more →

October 20, 2026

Python Basics: Numbering and Pairing Items with enumerate and zip

A loop often needs a human-friendly row number or matching values from two columns. enumerate and zip express those jobs directly. Use strict pairing when unequal column lengths …

Read more →

October 20, 2026

Python Basics: Encoding Text and Decoding Byte Chunks

Text and bytes represent different things. Encode text when a boundary needs bytes, and decode bytes using the format that produced them. Invalid input and split multibyte …

Read more →

October 20, 2026

Python Basics: Comparing Membership with set and frozenset

Sets answer questions about membership without retaining duplicate entries. They work well for tags and required features. A frozenset adds an immutable form that can itself be a …

Read more →

October 20, 2026

Python Basics: Building Classes That Support Iteration

A class can work in for loops by implementing the iteration protocol. Separate a one-pass iterator from a reusable iterable so callers know whether a second traversal starts over. …

Read more →

October 20, 2026

Linux Basics: Manage Dedicated Input and Output in Bash

File descriptors are open connections for input and output. Bash starts with standard input (0), standard output (1), and standard error (2). Additional descriptors let a script …

Read more →

October 20, 2026

Linux Basics: Limit Temporary Shell Changes with Bash Subshells

Parentheses run a group of commands in a subshell. They are useful when a short operation needs a different directory, shell option, or variable value without leaving that shell …

Read more →

October 20, 2026