Tech Articles

cover of post: Redis Delayed Queues Made Simple

Redis Delayed Queues Made Simple

Apr 14, 2025

Explains Redis-based delayed queues, challenges, solutions, and advanced usage patterns.

By Grace Collins#Engineering
cover of post: Next.js vs PHP: A Side-by-Side Code Comparison for Web Development

Next.js vs PHP: A Side-by-Side Code Comparison for Web Development

Apr 13, 2025

Nextjs and writing business code directly in PHP pages each have their own characteristics. Nextjs is suitable for building modern and highly interactive web applications, and it performs excellently in performance optimization, component reuse, and development efficiency, but it requires a higher level of front-end technology stack from developers; PHP, with its simple and direct approach, has certain advantages in quickly building dynamic web pages and handling traditional business logic. However, developers need to be more cautious in terms of code maintainability and security. When choosing, developers should comprehensively consider factors such as the specific requirements of the project, the team's technical capabilities, and future extensibility to select the most suitable technical solution for web business development.

By Lukas Schneider#javascript
cover of post: Understanding the `__str__` Method in Python

Understanding the `__str__` Method in Python

Apr 12, 2025

Define `__str__` to make Python objects print-friendly and readable.

By Lukas Schneider#Engineering
cover of post: Understanding `__init__.py` in Python Packages

Understanding `__init__.py` in Python Packages

Apr 12, 2025

Role and benefits of `__init__.py` in Python packages.

By Lukas Schneider#Engineering
cover of post: How to Perform Matrix Multiplication in Python

How to Perform Matrix Multiplication in Python

Apr 12, 2025

Matrix multiplication in Python using NumPy and `@` operator.

By Wenhao Wang#Engineering
cover of post: The Lifecycle of an INSERT Statement in MySQL

The Lifecycle of an INSERT Statement in MySQL

Apr 12, 2025

Detailed breakdown of MySQL's internal steps when handling an INSERT query.

By James Reed#Engineering
cover of post: Under the Hood: FastAPI Is Just Starlette + Pydantic

Under the Hood: FastAPI Is Just Starlette + Pydantic

Apr 12, 2025

The combination of Starlette and Pydantic can build high-performance and feature-rich APIs without relying on the encapsulation of FastAPI. Starlette provides a flexible ASGI application foundation, supporting core functions such as asynchronous processing, middleware, and WebSocket; Pydantic focuses on data validation and serialization. Although FastAPI simplifies the development process, directly using Starlette and Pydantic allows developers to have a deeper understanding of the underlying principles, make highly customized adjustments according to project requirements, and show stronger adaptability in complex scenarios.

By Grace Collins#python
cover of post: How to Iterate Through a List in Python

How to Iterate Through a List in Python

Apr 11, 2025

Practical ways to iterate through Python lists efficiently.

By Daniel Hayes#Engineering
cover of post: Exponentiation in Python: A Practical Guide

Exponentiation in Python: A Practical Guide

Apr 11, 2025

Python’s exponentiation tools: `**`, `pow()`, and `math.pow()` simplified.

By Wenhao Wang#Engineering
cover of post: Understanding "Does Not Equal" (`!=`) in Python

Understanding "Does Not Equal" (`!=`) in Python

Apr 11, 2025

How Python's `!=` operator works and when to use it.

By Olivia Novak#Engineering
cover of post: How to Generate Random Integers in Python

How to Generate Random Integers in Python

Apr 11, 2025

Overview of methods to generate random integers in Python.

By Grace Collins#Engineering
cover of post: Comparing Strings in Python

Comparing Strings in Python

Apr 11, 2025

Basic and advanced techniques for comparing strings in Python.

By Ethan Miller#Engineering
cover of post: How to Sort a Dictionary by Value in Python

How to Sort a Dictionary by Value in Python

Apr 11, 2025

Sort Python dictionaries by value using `sorted()` and lambdas.

By Lukas Schneider#Engineering
cover of post: Understanding Redis Cluster: How Clients Access the Right Shard

Understanding Redis Cluster: How Clients Access the Right Shard

Apr 11, 2025

Overview of Redis Cluster architecture, sharding, and how clients locate the right node

By James Reed#Engineering
cover of post: Understanding `None` in Python: The Equivalent of `null`

Understanding `None` in Python: The Equivalent of `null`

Apr 10, 2025

`None` is Python’s way to represent "no value" safely and clearly.

By Olivia Novak#Engineering
cover of post: How to Round Numbers in Python

How to Round Numbers in Python

Apr 10, 2025

Rounding in Python: built-in, math, decimal, and NumPy methods.

By Min-jun Kim#Engineering
cover of post: Understanding Floor Division in Python

Understanding Floor Division in Python

Apr 10, 2025

Python's `//` operator performs floor (integer) division.

By Olivia Novak#Engineering
cover of post: Understanding the `or` Operator in Python

Understanding the `or` Operator in Python

Apr 10, 2025

How Python's `or` operator evaluates conditions and returns results.

By Takashi Yamamoto#Engineering
cover of post: Understanding Python's `replace()` Method for String Manipulation

Understanding Python's `replace()` Method for String Manipulation

Apr 10, 2025

Basic use and behavior of Python's `replace()` method.

By James Reed#Engineering
cover of post: A Comprehensive Guide to Python Visualizers for Learning and Debugging

A Comprehensive Guide to Python Visualizers for Learning and Debugging

Apr 10, 2025

Visualize Python code execution for better learning and debugging.

By Wenhao Wang#Engineering
cover of post: Redis Distributed Locks: 10 Common Mistakes and How to Avoid Them

Redis Distributed Locks: 10 Common Mistakes and How to Avoid Them

Apr 10, 2025

Common Redis distributed lock pitfalls and how to avoid them in real-world applications.

By Ethan Miller#Engineering
cover of post: How to Append One List to Another in Python

How to Append One List to Another in Python

Apr 10, 2025

Different ways to append lists in Python and when to use them.

By Grace Collins#Engineering
cover of post: Understanding Python's `.split()` Method

Understanding Python's `.split()` Method

Apr 10, 2025

Python `.split()` splits strings efficiently for parsing and processing.

By James Reed#Engineering
cover of post: How to Uninstall Python: A Comprehensive Guide

How to Uninstall Python: A Comprehensive Guide

Apr 10, 2025

Safely uninstall Python without harming your system.

By James Reed#Engineering
cover of post: How to Flatten a List of Lists in Python

How to Flatten a List of Lists in Python

Apr 10, 2025

Common ways to flatten Python lists efficiently.

By Emily Parker#Engineering
cover of post: How to Add Elements to a Set in Python

How to Add Elements to a Set in Python

Apr 10, 2025

How to use `add()` and `update()` to manage Python sets.

By Daniel Hayes#Engineering
cover of post: Understanding `try` and `except` in Python

Understanding `try` and `except` in Python

Apr 10, 2025

Python `try`-`except` helps manage and handle errors cleanly.

By Wenhao Wang#Engineering
cover of post: Deep Dive into JWT: Build FastAPI Authentication in Pure Python

Deep Dive into JWT: Build FastAPI Authentication in Pure Python

Apr 10, 2025

Through the above steps, you have learned how to use JWT for authentication in FastAPI. JWT provides a secure and convenient way to manage user identities, making authentication between distributed systems more efficient. In practical applications, you can adjust the generation and verification logic of JWT according to your needs, such as adding an expiration time, customizing claims, etc.

By Wenhao Wang#python
cover of post: MySQL Table Locking: What Happens When You Add a Column or Index?

MySQL Table Locking: What Happens When You Add a Column or Index?

Apr 09, 2025

How MySQL handles table locks when adding columns or indexes

By Daniel Hayes#Engineering
cover of post: Quicktemplate for Go: Like Jinja2 for Python, but Never html/template

Quicktemplate for Go: Like Jinja2 for Python, but Never html/template

Apr 09, 2025

Recently, when organizing the code of our project, I found that the code for many activities was very similar in structure and the functions it provided. To facilitate future development, I spent some time writing a tool for generating code frameworks to minimize repetitive work. The code itself is not complex and is closely related to the project code, so I won't go into details here. During this process, I found that the Go standard template libraries `text/template` and `html/template` were rather restrictive and inconvenient to use. I learned from GitHub about the third-party template library `quicktemplate`, which is powerful, has a simple syntax, and is easy to use. Today, we're going to introduce `quicktemplate`.

By Lukas Schneider#golang
cover of post: Python Module Management: A Practical Guide

Python Module Management: A Practical Guide

Apr 08, 2025

Efficient tools and structure improve Python module management.

By Daniel Hayes#Engineering
cover of post: How to Import Modules from Another Directory in Python

How to Import Modules from Another Directory in Python

Apr 08, 2025

Ways to import Python modules from external directories.

By Lukas Schneider#Engineering
cover of post: A Practical Guide to Python Virtual Environments: Comparison and Usage

A Practical Guide to Python Virtual Environments: Comparison and Usage

Apr 08, 2025

Comparison and guide for Python virtual environments.

By Wenhao Wang#Engineering
cover of post: How to Update Python: A Comprehensive Guide

How to Update Python: A Comprehensive Guide

Apr 08, 2025

Steps and tools to safely update Python across OSes.

By Lukas Schneider#Engineering
cover of post: How to Use Python Regex for String Replacement

How to Use Python Regex for String Replacement

Apr 08, 2025

Learn to replace strings using Python regex with `re.sub()`.

By Grace Collins#Engineering
cover of post: Understanding Operator Overloading in Python

Understanding Operator Overloading in Python

Apr 08, 2025

Customize how your Python objects behave with built-in operators.

By James Reed#Engineering
cover of post: SQL at Scale: Best Practices for Large Table Optimization

SQL at Scale: Best Practices for Large Table Optimization

Apr 08, 2025

Practical techniques to optimize SQL performance for large tables.

By Olivia Novak#Engineering
cover of post: Calling Go from Python: Speed Up Python with Go

Calling Go from Python: Speed Up Python with Go

Apr 08, 2025

In today's software development landscape, both Python and Go are highly popular programming languages, each possessing unique advantages. Python is renowned for its concise and elegant syntax as well as its rich libraries, which significantly boost development efficiency. It is widely applied in fields such as data science, artificial intelligence, and web scraping. On the other hand, the Go language is a statically typed and compiled language. It boasts excellent concurrent performance and high running efficiency, and is often used for building high-performance network services, distributed systems, and system-level programming scenarios.

By Grace Collins#python
cover of post: Understanding Division Operators in Python

Understanding Division Operators in Python

Apr 07, 2025

Python `/` is true division, `//` is floor division.

By Lukas Schneider#Engineering
cover of post: Python Cheat Sheet: A Quick Guide to Core Syntax and Features

Python Cheat Sheet: A Quick Guide to Core Syntax and Features

Apr 07, 2025

Essential Python syntax, structures, and best practices.

By Lukas Schneider#Engineering
cover of post: Understanding Python’s `min()` and `max()` Functions

Understanding Python’s `min()` and `max()` Functions

Apr 07, 2025

Core guide to Python’s `min()` and `max()` functions.

By Olivia Novak#Engineering
cover of post: Understanding the `return` Statement in Python

Understanding the `return` Statement in Python

Apr 07, 2025

Explains how Python's `return` works in functions.

By Grace Collins#Engineering
cover of post: How to Use `random.choice()` in Python

How to Use `random.choice()` in Python

Apr 07, 2025

How to safely and effectively use `random.choice()` in Python.

By James Reed#Engineering
cover of post: Understanding Python's `dict.get()` Method

Understanding Python's `dict.get()` Method

Apr 07, 2025

Safe key lookup in Python dictionaries with defaults.

By Ethan Miller#Engineering
cover of post: Understanding Optional Arguments in Python

Understanding Optional Arguments in Python

Apr 07, 2025

How to use Python optional arguments safely and effectively.

By Min-jun Kim#Engineering
cover of post: How to Square a Number in Python

How to Square a Number in Python

Apr 07, 2025

Multiple ways to square numbers in Python, each with different uses.

By Takashi Yamamoto#Engineering
cover of post: How to Use Python `requests` for POST Requests

How to Use Python `requests` for POST Requests

Apr 07, 2025

Make POST requests easily using Python `requests`.

By Wenhao Wang#Engineering
cover of post: How to Use Python `if...else` in One Line

How to Use Python `if...else` in One Line

Apr 07, 2025

Use Python's one-line `if...else` for concise, readable conditional logic.

By Grace Collins#Engineering