Posts
JavaScript Basics: Connect Stream Steps with pipeline
A stream pipeline connects a source, optional processing steps, and a destination. Awaiting pipeline() tells you when the whole operation has finished or failed. The examples below …
October 18, 2026
SQLite Basics: Select, Filter, and Order Rows
A useful query answers a specific question: which tasks need attention, which values are missing, or which items belong at the top of a list? Start with a small input and make the …
October 18, 2026
Python Basics: Building Collections with Comprehensions
A comprehension builds a new collection from an iterable. It is useful when the task is a short transformation, a filter, or both. These examples clean labels, build a lookup …
October 18, 2026
Linux Basics: Store Related Values in Bash Arrays
A list of filenames should not become one fragile string. Bash arrays hold separate values so spaces can stay part of each item. Practice lists, sparse indexes, and named lookups …
October 18, 2026
JavaScript Basics: Process Text One Line at a Time
Text streams arrive in chunks, but a log or a list of names is usually easier to process one line at a time. Node’s readline interface finds line boundaries, and a for await...of …
October 18, 2026
JavaScript Basics: Sort Arrays Without Changing the Original
Sorting a list should not accidentally rearrange a list another part of your program still needs. Use toSorted() to create a sorted array while keeping the original order. These …
October 17, 2026
JavaScript Basics: Model Data with Classes
A class groups data with methods that work on it. Start with a public field, then use private fields when changes should go through your own methods. These examples use built-in …
October 17, 2026
JavaScript Basics: Group Items with Object and Map
Grouping collects related items into arrays. Use a short label for each group, or use an object itself when its identity matters. These examples use built-in features and were …
October 17, 2026
JavaScript Basics: Format Numbers with Intl.NumberFormat
Number displays vary by language and region. Use Intl.NumberFormat to format separators, currencies, and percentages instead of assembling those strings yourself. These examples …
October 17, 2026
JavaScript Basics: Cancel Waiting with AbortController
An asynchronous task may become unnecessary before it finishes. An AbortController lets you signal cancellation to APIs that support it. Here, cancel a promise-based timer without …
October 17, 2026