Writing

Technical notes on software engineering, architecture, and developer tools.

Python · memory · weakref · performance

Preventing Python Memory Leaks with weakref

Understand why circular references and long-lived caches trigger memory leaks, and how weakref.ref, WeakKeyDictionary, and finalize solve them with real-world examples.
AWS · cloud architecture · certifications · devops

Passing the AWS Solutions Architect Associate (SAA-C03) Exam: A Pragmatic Study Guide

How I prepared for and passed the AWS SAA-C03 exam in two months using an LLM-assisted question explainer CLI, architectural cheat sheets, and exam strategy.
Python · LangChain · LangGraph · Agents · AI

Building Autonomous AI Assistants with LangChain Tools, Agents, and LangGraph

Move beyond static prompts: integrate custom tools with @tool, orchestrate dynamic workflows using LangChain Agents, and manage cyclical state graphs with LangGraph.
Python · LangChain · AI · LLM · LCEL

LangChain Fundamentals: Models, Prompts, Output Parsers, and LCEL Chains

Build robust LLM pipelines using LangChain Expression Language (LCEL), unified provider interfaces (OpenAI, Anthropic, Gemini), and Pydantic-backed JSON parsers.
Python · Polars · performance · sql · data engineering

Polars Performance Optimization: LazyFrame, Predicate Pushdown, and SQLContext

Accelerate query performance with LazyFrame query optimization, streaming execution, downcasting data types, and executing ANSI SQL via SQLContext.
Python · Polars · data engineering · joins

Joining and Reshaping Data with Polars: joins, concat, pivot, unpivot, and unnest

Combine datasets with standard and as-of joins, concatenate row/column batches, and reshape nested tables using pivot, unpivot, explode, and unnest.
Python · Polars · data analysis

Grouping and Aggregating Data with Polars: group_by, agg, and Window Functions

Group data by one or more columns in Polars and use conditional aggregations and window functions to calculate statistics.
Python · Polars · data manipulation · regex

Filtering and Sorting Data with Polars: Expressions, Strings, and Multi-Column Ordering

Master row-level selection in Polars using logical operators, string regex filters, null checks, and multi-key sorting with custom expressions.
Python · Polars · parquet · data engineering

Loading and Manipulating Data with Polars: CSV, Parquet, and Column Selectors

Master I/O optimization in Polars with schema overrides, inspect metadata, leverage polars.selectors, and perform declarative transformations with with_columns.
Python · Polars · data engineering · pandas

Getting Started with Polars: Architecture, Pandas Differences, and Quickstart

Why Polars outperforms Pandas using Apache Arrow and Rust, with practical examples of expressions, select, with_columns, filter, and group_by.