Tech Articles

cover of post: Go Option Pattern Explained: Advanced Parameter Handling

Go Option Pattern Explained: Advanced Parameter Handling

May 17, 2025

Learn how the Option pattern simplifies parameter management and enhances code flexibility in Go projects.

By Min-jun Kim#Engineering
cover of post: All You Need Is Express and JSX

All You Need Is Express and JSX

May 17, 2025

Node.js combined with Express.js remains a golden combination for building efficient web applications. When we need to provide dynamic HTML content to the client, Express introduces the concept of a "view engine". Over the years, EJS (Embedded JavaScript) has become a popular choice due to its simplicity. However, since the advent of React, JSX (JavaScript XML), with its component-based UI construction approach, has gained enormous favor among developers, and its philosophy is also fully applicable to server-side rendering.

By Olivia Novak#javascript
cover of post: Choosing Between make and new in Go

Choosing Between make and new in Go

May 16, 2025

Covers key distinctions and best practices for using make and new in Go.

By Daniel Hayes#Engineering
cover of post: A Practical Comparison of Decorators in Python, Java, JavaScript, Ruby, and Scala

A Practical Comparison of Decorators in Python, Java, JavaScript, Ruby, and Scala

May 16, 2025

In the development of cloud service deployment platforms like Leapcell, code modularity, maintainability, and scalability are of utmost importance. As a powerful programming construct, decorators enable the addition of extra functionality to functions or classes without modifying the core logic of the original code. Decorators in different programming languages vary in syntax, functionality, and application scenarios. This article will deeply compare the similarities and differences of decorators in Python, Java, JavaScript (TypeScript), Ruby, and Scala, and provide examples combined with server-side scenarios of the Leapcell cloud service.

By Emily Parker#programming
cover of post: XML vs JSON: A Comprehensive Comparison

XML vs JSON: A Comprehensive Comparison

May 15, 2025

XML excels in validation; JSON is efficient for web data exchange.

By James Reed#Engineering
cover of post: How to Pretty Print JSON

How to Pretty Print JSON

May 15, 2025

Pretty print JSON for better readability using code or online tools.

By Takashi Yamamoto#Engineering
cover of post: How to Escape JSON: A Comprehensive Guide

How to Escape JSON: A Comprehensive Guide

May 15, 2025

Properly escaping JSON prevents errors and ensures data can be safely exchanged.

By Olivia Novak#Engineering
cover of post: Implementing Bloom Filters in Go for Efficient Caching

Implementing Bloom Filters in Go for Efficient Caching

May 15, 2025

How Bloom filters in Go help eliminate invalid queries and ease database pressure in cache systems.

By Emily Parker#Engineering
cover of post: How to Convert a String to JSON in JavaScript, Python, and Java

How to Convert a String to JSON in JavaScript, Python, and Java

May 14, 2025

Convert strings to JSON safely using built-in or trusted libraries.

By Daniel Hayes#Engineering
cover of post: How to Compare JSON: A Practical Guide

How to Compare JSON: A Practical Guide

May 14, 2025

Efficiently compare JSON using tools, normalization, and automation.

By Emily Parker#Engineering
cover of post: How to Read JSON in Python

How to Read JSON in Python

May 14, 2025

Read and handle JSON data in Python using the `json` module.

By Grace Collins#Engineering
cover of post: Aspect-Oriented Programming (AOP) in Go

Aspect-Oriented Programming (AOP) in Go

May 14, 2025

Exploring AOP principles and how to implement them in Go using Gin middleware and function wrappers.

By Lukas Schneider#Engineering
cover of post: Sequelize vs TypeORM: Which JavaScript ORM Should You Choose?

Sequelize vs TypeORM: Which JavaScript ORM Should You Choose?

May 14, 2025

In summary, **Sequelize** is suitable for projects that pursue rapid development, flexible APIs, and extensive community support; **TypeORM** is more suitable for TypeScript projects and large applications that require strong type safety guarantees.

By Wenhao Wang#javascript
cover of post: Peewee: The Most Graceful ORM in Python History

Peewee: The Most Graceful ORM in Python History

May 12, 2025

Peewee is a powerful and lightweight Python ORM, which is very suitable for use on cloud service platforms like Leapcell. Through the introduction in this article, we have learned about the basic query operations and advanced query techniques of Peewee, and demonstrated it in combination with the actual scenarios of the Leapcell platform. Compared with SQLAlchemy, Peewee has obvious advantages in lightweight design, performance, flexibility, and API conciseness. Whether developing small applications or large-scale systems, Peewee can help developers perform database operations efficiently and is an ideal choice for Python developers.

By Ethan Miller#python
cover of post: Tortoise ORM: The Next-Gen Python ORM Everyone’s Talking About

Tortoise ORM: The Next-Gen Python ORM Everyone’s Talking About

May 11, 2025

Tortoise ORM is an easy-to-use asyncio ORM (Object Relational Mapper) for Python, inspired by Django ORM. It borrows the design concept of Django ORM. It not only supports the processing of traditional tabular data but also can efficiently manage relational data. In terms of performance, it is not inferior to other Python ORMs.

By Ethan Miller#python
cover of post: Understanding `json.dumps()` in Python

Understanding `json.dumps()` in Python

May 11, 2025

Convert and customize JSON strings using Python's `json.dumps()` function.

By Grace Collins#Engineering
cover of post: Understanding JSON File Viewers: Tools for Efficient Data Visualization

Understanding JSON File Viewers: Tools for Efficient Data Visualization

May 11, 2025

JSON viewers help visualize, edit, and manage structured JSON data easily.

By James Reed#Engineering
cover of post: Introduction to nlohmann/json: JSON for Modern C++

Introduction to nlohmann/json: JSON for Modern C++

May 11, 2025

Modern C++ library for simple and powerful JSON manipulation.

By Emily Parker#Engineering
cover of post: Higher-Order Functions in Go

Higher-Order Functions in Go

May 11, 2025

An introduction to higher-order functions with practical examples in Go.

By Grace Collins#Engineering
cover of post: How to Convert JSON to TypeScript Interfaces

How to Convert JSON to TypeScript Interfaces

May 10, 2025

Convert JSON to TypeScript for type safety and validation.

By Emily Parker#Engineering
cover of post: Understanding JSON: A Guide with Sample Examples

Understanding JSON: A Guide with Sample Examples

May 10, 2025

A practical introduction to JSON format with clear examples.

By Emily Parker#Engineering
cover of post: How to Escape Strings in JSON

How to Escape Strings in JSON

May 10, 2025

How to safely escape special characters in JSON strings.

By Emily Parker#Engineering
cover of post: The Trap of nil in Go Interface

The Trap of nil in Go Interface

May 10, 2025

Explains why Go interface values with nil content may not equal nil.

By Wenhao Wang#Engineering
cover of post: Next.js Guide: Server Actions and Stateless Session Management

Next.js Guide: Server Actions and Stateless Session Management

May 10, 2025

With the release of the widely popular App Router, Next.js has introduced an important new feature: Server Actions. Server Actions are designed to assist with server-side data operations. By reducing the dependence on client-side JavaScript, they gradually enhance form functionality. With this feature, developers can create powerful web applications using JavaScript and React without relying on traditional REST APIs.

By Emily Parker#javascript
cover of post: Understanding JSON and JSON Schema

Understanding JSON and JSON Schema

May 09, 2025

JSON structures data; JSON Schema enforces and documents it.

By Takashi Yamamoto#Engineering
cover of post: How to Convert XML to JSON: A Practical Guide

How to Convert XML to JSON: A Practical Guide

May 09, 2025

Quick and flexible methods to convert XML into JSON.

By Min-jun Kim#Engineering
cover of post: How to Convert YAML to JSON: A Practical Guide

How to Convert YAML to JSON: A Practical Guide

May 09, 2025

Convert YAML to JSON easily using code, tools, or web apps.

By James Reed#Engineering
cover of post: Go 1.24's omitzero Tag Explained

Go 1.24's omitzero Tag Explained

May 09, 2025

Explains Go 1.24's omitzero tag and IsZero() method for refined Go JSON serialization.

By Emily Parker#Engineering
cover of post: Using PostgreSQL as a Search Engine? Yes, You Might Not Need Elasticsearch

Using PostgreSQL as a Search Engine? Yes, You Might Not Need Elasticsearch

May 09, 2025

The inverted index originates from search engine technology and can be regarded as the cornerstone of search engines. Thanks to the inverted index technology, search engines can efficiently perform operations such as database searching and deletion. Before elaborating on the inverted index, we will first introduce the relevant forward index and compare the two.

By Wenhao Wang#database
cover of post: How to Unescape JSON Strings in Python, JavaScript, and Java

How to Unescape JSON Strings in Python, JavaScript, and Java

May 08, 2025

Convert escaped JSON sequences to readable text using code or tools.

By Emily Parker#Engineering
cover of post: How to Convert JSON to YAML: A Practical Guide

How to Convert JSON to YAML: A Practical Guide

May 08, 2025

Practical methods to convert JSON to YAML efficiently.

By Emily Parker#Engineering
cover of post: How to Convert JSON to XML: A Comprehensive Guide

How to Convert JSON to XML: A Comprehensive Guide

May 08, 2025

Convert JSON to XML using tools or code, with proper structure handling.

By James Reed#Engineering
cover of post: Why Use Underscore Fields in Go Structs

Why Use Underscore Fields in Go Structs

May 08, 2025

The purpose of underscore fields in Go struct design.

By Lukas Schneider#Engineering
cover of post: Understanding Comments in JSON

Understanding Comments in JSON

May 08, 2025

JSON lacks native comment support; use workarounds or alternative formats.

By James Reed#Engineering
cover of post: How to Convert a Python Dictionary to JSON

How to Convert a Python Dictionary to JSON

May 08, 2025

Convert Python dicts to JSON with `json` module functions.

By James Reed#Engineering
cover of post: How to Minify JSON: A Developer’s Guide

How to Minify JSON: A Developer’s Guide

May 08, 2025

Minify JSON to boost speed and efficiency in applications.

By Ethan Miller#Engineering
cover of post: How to Convert HTML Form Data to JSON Using JavaScript

How to Convert HTML Form Data to JSON Using JavaScript

May 08, 2025

Convert HTML form inputs to JSON using JavaScript easily and reliably.

By Ethan Miller#Engineering
cover of post: How to Make a JSON File

How to Make a JSON File

May 08, 2025

A beginner-friendly guide to creating and saving JSON files.

By Takashi Yamamoto#Engineering
cover of post: Understanding JSON Path Finder: A Developer's Guide

Understanding JSON Path Finder: A Developer's Guide

May 08, 2025

Tools to visually extract and evaluate JSON data paths.

By Lukas Schneider#Engineering
cover of post: A Complete Guide to PostgreSQL’s 9 Index Types

A Complete Guide to PostgreSQL’s 9 Index Types

May 08, 2025

PostgreSQL provides a rich variety of index types. Each index type is based on specific data structures and principles, and is suitable for different application scenarios. The following will provide a detailed introduction to these nine main index types.

By Lukas Schneider#database
cover of post: Why Use a VARCHAR Field Instead of TEXT in MySQL

Why Use a VARCHAR Field Instead of TEXT in MySQL

May 07, 2025

An in-depth look at how TEXT fields work and when to avoid them.

By Olivia Novak#Engineering
cover of post: Best Practices for Python Code Style and Linting

Best Practices for Python Code Style and Linting

May 07, 2025

The Python code style guide is not set in stone. It evolves continuously with the development of the language. Some old conventions are gradually phased out, and new ones keep emerging. At the same time, many projects have their own coding style guides. When there are conflicts, the project-specific guides should be followed first. However, there is an important principle to keep in mind: "The stupid persistence in consistency is the monster of ignorance", which is a profound insight from Guido. Since code is often read more frequently than it is written, the core goal of the style guide is to improve code readability and keep all kinds of Python code consistent. As PEP20 says, "Readability counts".

By Olivia Novak#python
cover of post: How Many Goroutines Can Go Run? A Deep Dive into Resource Limits

How Many Goroutines Can Go Run? A Deep Dive into Resource Limits

May 06, 2025

A guide to understanding and managing Goroutine resource consumption and safe concurrency in Go.

By Takashi Yamamoto#Engineering
cover of post: Understanding JSON Arrays of Arrays

Understanding JSON Arrays of Arrays

May 05, 2025

A guide to using and handling JSON nested arrays effectively.

By Takashi Yamamoto#Engineering
cover of post: How to Write JSON to a File in Python

How to Write JSON to a File in Python

May 05, 2025

Writing JSON to files in Python using `json.dump()`.

By Wenhao Wang#Engineering
cover of post: How to Convert JSON to CSV: A Practical Guide

How to Convert JSON to CSV: A Practical Guide

May 05, 2025

Convert structured JSON to flat, tabular CSV for analysis.

By Lukas Schneider#Engineering
cover of post: Why Python, Go and Rust Don’t Use the Ternary Operator

Why Python, Go and Rust Don’t Use the Ternary Operator

May 05, 2025

Exploring the design choices behind conditional expressions in modern languages.

By Lukas Schneider#Engineering
cover of post: Why MVC, MVP, and MVVM Remain the Best Architectural Patterns

Why MVC, MVP, and MVVM Remain the Best Architectural Patterns

May 05, 2025

MVC stands for Model View Controller, which is an abbreviation for model-view-controller. It is a widely applied software design paradigm. Its core idea is to organize the code by separating the business logic, data, and interface display, and centralize the business logic in one component. In this way, when improving and customizing the interface and user interaction, there is no need to rewrite the business logic. MVC has uniquely developed to map the traditional input, processing, and output functions into a logical graphical user interface structure.

By Grace Collins#programming