devops

Using Python for DevOps tasks like automation, scripting, and infrastructure work.

Trees and Graphs in Python: BFS and DFS From Scratch

Trees and graphs in Python are the data structures behind almost everything that has a shape you can draw with dots and lines: a folder tree, a family tree, a social network, a map of roads, the import graph of your own project. This post builds them from scratch with plain classes and dictionaries, then runs breadth-first search (BFS) and depth-first search (DFS) so you can watch the two most important graph algorithms actually move through the data. “Show me ... Read More

Coding Interview Patterns in Python: Two Pointers, Sliding Window, DP

Coding interview patterns are the small set of reusable shapes that most LeetCode-style questions secretly reduce to, and once you can name the shape you stop staring at a blank editor and start writing. This post walks through the six patterns that carry the most weight in real technical screens, two pointers, sliding window, fast and slow pointers, prefix sums, hashmap-first thinking, and dynamic programming, each implemented and run on Python 3.14.6 so you can watch them work instead of ... Read More

Git Basics for Python Developers: Commits, Diffs, and Undo

Learning git basics is the moment your code stops living in scary folders like final_v2_REAL_fixed.py and starts living in a proper time machine you can step through, compare, and rewind. Git is version control: it records snapshots of your project so you can see what changed, undo a mistake, and work with confidence instead of fear. “A language that doesn’t affect the way you think about programming is not worth knowing.” Alan Perlis, Epigrams on Programming Last Updated: July 2026 ... Read More