Posts
JavaScript Basics: Reading Local Files with async and await
A small Node.js script can read a report without blocking JavaScript while the file operation is pending. This walkthrough uses local text files to show successful reads, a …
October 14, 2026
JavaScript Basics: Parse, Validate, and Write JSON
JSON is text for exchanging data. A JavaScript object is a value your program can use. Crossing that boundary takes two familiar functions: JSON.parse() reads JSON text, and …
October 14, 2026
JavaScript Basics: Count, Look Up, and Deduplicate with Map and Set
An array is convenient when order and repeated values matter. Sometimes your real question is different: how many times did this label appear, which record has this ID, or have I …
October 14, 2026
JavaScript Basics: Transform Arrays Without Changing the Original
A list often needs several small changes before it is ready to display: remove unavailable items, calculate a value for each remaining item, and put the results in order. …
October 14, 2026
JavaScript Basics: Read Object Options With Reliable Defaults
Optional settings look simple until a valid value is 0, false, or an empty string. Another common surprise is copying an object and accidentally changing a nested value in the …
October 14, 2026
Python Basics: Time Zones and Clock Changes with zoneinfo
A meeting can fall on different dates in Tokyo and New York. A clock change can even make a local time occur twice. Python’s standard-library zoneinfo module supplies named time …
October 13, 2026
Python Basics: Replacing Dependencies with unittest.mock
A test should be able to check a retry without waiting for a real timeout. Python’s standard-library unittest.mock module lets you control a dependency’s responses and inspect how …
October 13, 2026
Python Basics: Ordering Dependent Tasks with graphlib
A report needs data before it can be rendered, and rendering must finish before publication. Python’s standard-library graphlib module can put tasks in an order that respects these …
October 13, 2026
Python Basics: Keeping Numeric Samples in an array
A series of measurements often contains one kind of number. Python’s standard-library array module stores these values in a compact numeric sequence. It is useful when you want …
October 13, 2026
Python Basics: Describing Data with Type Hints
Type hints describe the values a function expects and returns. They help readers and development tools follow your code. Python itself does not enforce those hints when the program …
October 13, 2026