Articles
Practical, deeply explained engineering writing — free to read, no sign-up required.
All Articles
Python - Concurrency & Parallelism
Concurrency means handling multiple tasks by switching between them, while parallelism means running tasks truly at the same time using multiple CPU cores. In Python, the GIL restricts multi-threaded CPU work, so we use multiprocessing for heavy math and asyncio or threading for waiting on I/O operations.
Python - Iterators & Generators
Iterators and generators allow Python programs to process millions of items one-by-one without loading the entire dataset into RAM, preventing memory crashes.
Python - Decorators & Closures
First-class functions let us pass functions around like variables. A closure remembers outer variables, and a decorator wraps a function to add extra behavior without changing its code.
Python - Object-Oriented Programming (OOP) Part 2
Inheritance lets classes share common code, polymorphism lets different classes use the same method names, and dunder methods let us customize built-in Python behaviors.
Python - Object-Oriented Programming (OOP) Part 1
Object-Oriented Programming (OOP) is a way to organize code using classes and objects. A class is a blueprint, and an object is a real item made from that blueprint.
Display Flex – Creating a Flex Container
To create a flex container, set display: flex on a parent element. The parent becomes a block-level flex container, and its direct children become flex items arranged in a row by default. Use display: inline-flex when the container should behave like an inline-level box.
CSS Flexbox vs CSS Grid – Differences and When to Use Them
Use Flexbox to arrange items in one direction, either a row or a column. Use CSS Grid to arrange items in rows and columns at the same time. Flexbox is content-first and one-dimensional. Grid is layout-first and two-dimensional.
Creating Your First Flexbox Layout – Step-by-Step
To create a Flexbox layout, set display: flex on a parent container. Its direct children become flex items. You can then use properties such as gap, justify-content and align-items to arrange and align those items.
Flex Direction – Row, Column and Reverse
flex-direction on a flex container to choose its main axis and the direction in which items are placed. The four values are row (the default), row-reverse, column and column-reverse. Row places items horizontally, column places them vertically, and the reverse values flip the start and end of the axis. Reversing changes the visual order only, not the order in the HTML.
Main Axis and Cross Axis in CSS Flexbox
CSS Flexbox uses two important directions: the main axis and the cross axis. The main axis follows the direction defined by flex-direction. The cross axis runs perpendicular to it. Properties such as justify-content work along the main axis, while align-items controls alignment along the cross axis.
Understanding Flex Containers and Flex Items
CSS Flexbox, a flex container is the parent element where you apply display: flex or display: inline-flex. Its direct children automatically become flex items.
Introduction to CSS Flexbox – What Is Flexbox and Why Use It?
CSS Flexbox (Flexible Box Layout) is a CSS layout system used to arrange elements inside a container in one direction at a time: horizontally or vertically. It makes alignment, spacing, ordering and responsive layouts easier without depending on complicated floats or positioning.