#Programming Language

156 posts

TypeScript Basics #3: interface and type alias
5 min read

TypeScript Basics #3: interface and type alias

Two tools for naming and reusing object types — interface and type alias — how to use them, the differences, and when to pick which.

Modern Python Basics #7: Modules/packages and pyproject.toml
4 min read

Modern Python Basics #7: Modules/packages and pyproject.toml

The import system, the difference between modules and packages, __init__.py and __main__, and pyproject.toml for dependencies, tool config, and distribution — all in one place.

TypeScript Basics #2: Basic Types
4 min read

TypeScript Basics #2: Basic Types

The basic types you will use every day — string, number, boolean, array, tuple, object, enum, any/unknown — all in one place.

Modern Python Basics #6: Errors and exception handling
4 min read

Modern Python Basics #6: Errors and exception handling

The roles of try/except/else/finally, raise and user-defined exceptions, and the ExceptionGroup and except* introduced in 3.11.

TypeScript Basics #1: Getting Started and Setup
8 min read

TypeScript Basics #1: Getting Started and Setup

What TypeScript is, why you would use it, and how to compile and run your first piece of code — all in one go.

Modern Python Basics #5: Functions — argument patterns
5 min read

Modern Python Basics #5: Functions — argument patterns

Defaults, *args/**kwargs, positional-only(/), keyword-only(*) — every tool for writing function signatures expressively.

Modern Python Basics #4: Collections and comprehensions
4 min read

Modern Python Basics #4: Collections and comprehensions

The role of list/tuple/dict/set, plus comprehensions and generator expressions for building new collections in a single line.

Modern Python Basics #3: Control flow — if, while, for, match-case
4 min read

Modern Python Basics #3: Control flow — if, while, for, match-case

Indentation-based blocks, range/enumerate/zip, and match-case pattern matching that has a different feel from switch.

Modern Python Basics #2: Variables, basic types, and type hints
4 min read

Modern Python Basics #2: Variables, basic types, and type hints

Python is a dynamic language, but modern Python writes types from the start. int/str/bool/None and built-in generics, the int | None shortcut, and mypy/pyright.

Modern Python Basics #1: Getting Started and uv Setup
6 min read

Modern Python Basics #1: Getting Started and uv Setup

Why Python again — what changed in 3.14 since the 2017 tutorial, and building a first project with uv that replaces pip + venv + pyenv all at once.

JavaScript Practice #6 Build a Small App — Todo App
7 min read

JavaScript Practice #6 Build a Small App — Todo App

Build a Todo app from start to finish in vanilla JavaScript — DOM, event delegation, FormData, local storage, and a small store all in one place.

JavaScript Practice #5 Local Storage and Lightweight State Management
6 min read

JavaScript Practice #5 Local Storage and Lightweight State Management

How to use localStorage / sessionStorage and their pitfalls, plus patterns for managing UI state cleanly without a library.