Tag

Error Handling

1 views collected around this technical thread.

php中文网 Courses
php中文网 Courses
Jun 12, 2025 · Backend Development

Mastering PHP curl_errno(): Retrieve and Handle cURL Error Codes

Learn how to use PHP's curl_errno() function to obtain cURL request error codes, understand common error numbers, and implement robust error handling with practical code examples that initialize a cURL handle, execute requests, check for errors, and close the handle.

BackendError HandlingPHP
0 likes · 4 min read
Mastering PHP curl_errno(): Retrieve and Handle cURL Error Codes
Code Mala Tang
Code Mala Tang
Jun 8, 2025 · Backend Development

Why Overusing try/catch Can Kill Your Node.js Performance (And How to Fix It)

Overusing generic try/catch blocks in Node.js can silently swallow errors, degrade performance by up to 26%, and create debugging nightmares, while strategic error handling—targeted catches, proper resource cleanup, and error boundaries—offers faster, more maintainable code and prevents memory leaks.

BackendError HandlingExpress.js
0 likes · 6 min read
Why Overusing try/catch Can Kill Your Node.js Performance (And How to Fix It)
Sohu Tech Products
Sohu Tech Products
May 28, 2025 · Frontend Development

A One‑Line Guard for Safe localStorage JSON Parsing in Frontend Development

This article explains why naïvely parsing JSON from localStorage often crashes applications, and provides a concise safeJSON wrapper, versioned key strategy, and TypeScript guards to prevent runtime errors and ensure robust frontend data handling.

Error HandlingFrontendJSON
0 likes · 4 min read
A One‑Line Guard for Safe localStorage JSON Parsing in Frontend Development
php中文网 Courses
php中文网 Courses
May 28, 2025 · Fundamentals

Go Function Basics, Error Handling, and Advanced Features

This article introduces Go's function syntax, demonstrates simple and multiple‑return functions, explains named returns, error handling patterns, defer, panic/recover, and advanced features like first‑class functions, closures, and variadic functions, followed by best‑practice recommendations.

BackendError HandlingFunctions
0 likes · 7 min read
Go Function Basics, Error Handling, and Advanced Features
Code Mala Tang
Code Mala Tang
May 22, 2025 · Fundamentals

9 Essential Python Debugging Techniques Every Developer Should Master

This guide presents nine practical Python debugging methods—including try‑except blocks, print statements, the pdb debugger, assertions, stack trace analysis, linting tools, IDE breakpoints, logging, and unit testing—to help developers quickly identify and resolve errors in their code.

Error HandlingLoggingPython
0 likes · 4 min read
9 Essential Python Debugging Techniques Every Developer Should Master
Aikesheng Open Source Community
Aikesheng Open Source Community
May 12, 2025 · Databases

Understanding MySQL Error MY-013129 and How to Handle It

This article explains the MySQL MY-013129 error, its lack of a fixed message, the code paths that generate it in MySQL 8.0, why it is logged as an ERROR, and practical recommendations for filtering or handling the log entries.

Error HandlingMY-013129MySQL
0 likes · 7 min read
Understanding MySQL Error MY-013129 and How to Handle It
Architecture Development Notes
Architecture Development Notes
May 11, 2025 · Fundamentals

How Rust’s Ownership Model Eliminates Memory Bugs Before They Run

This article explores how Rust’s innovative ownership, borrowing, and type‑driven error handling move memory safety and concurrency checks from runtime to compile time, contrasting its zero‑cost abstractions with C++ and Go, and demonstrating practical code examples that prevent common bugs.

Error HandlingMemory SafetyOwnership
0 likes · 10 min read
How Rust’s Ownership Model Eliminates Memory Bugs Before They Run
JD Tech Talk
JD Tech Talk
Apr 25, 2025 · Fundamentals

Comparing Go and Java: Language Features, Syntax, and Concurrency

This article compares Go and Java by examining their core language features, code organization, visibility rules, variable and constant declarations, method and function syntax, interface implementation, basic and reference data types, error handling mechanisms, and control‑flow constructs, providing Java developers with a concise guide to Go's design principles and cloud‑native strengths.

Error HandlingGoJava
0 likes · 23 min read
Comparing Go and Java: Language Features, Syntax, and Concurrency
IT Services Circle
IT Services Circle
Apr 19, 2025 · Fundamentals

7 Common Pitfalls in Python Function Writing and How to Avoid Them

This article explains the most frequent mistakes developers make when defining Python functions—such as mutable default arguments, inconsistent return types, overly large functions, outdated string formatting, missing type hints, manual index tracking, and misuse of try‑except for flow control—and provides clear, best‑practice solutions with code examples to write cleaner, more maintainable, and efficient Python code.

Best PracticesError HandlingFunctions
0 likes · 8 min read
7 Common Pitfalls in Python Function Writing and How to Avoid Them
Top Architect
Top Architect
Apr 15, 2025 · Backend Development

From Wild API Errors to Structured RESTful Practices: A Top Architect’s Journey

The article narrates a top architect’s experience with early API error handling, the chaos caused by non‑standard HTTP status codes, the shift toward RESTful conventions, and later promotional offers for AI tools, illustrating both technical lessons and marketing pitches.

API designBackendError Handling
0 likes · 10 min read
From Wild API Errors to Structured RESTful Practices: A Top Architect’s Journey
Code Mala Tang
Code Mala Tang
Apr 14, 2025 · Fundamentals

How to Write High‑Quality Python Code: 5 Practical Improvements

This article explains what makes code high‑quality—functionality, readability, maintainability, efficiency, and documentation—and demonstrates five concrete Python improvements, from type‑annotated inputs to clear naming, robust error handling, comprehensive docstrings, and performance‑boosting caching.

Best PracticesError HandlingPython
0 likes · 7 min read
How to Write High‑Quality Python Code: 5 Practical Improvements
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Apr 13, 2025 · Frontend Development

Building a Frontend Monitoring SDK from Scratch: Design, Implementation, and Performance Metrics

This article explains how to design and implement a complete front‑end monitoring SDK, covering stability, user‑experience, and business‑expansion scenarios, with step‑by‑step guidance on SDK architecture, Rollup build setup, error capturing, data reporting, performance measurement, and advanced topics such as source‑map handling and error aggregation.

Error HandlingFrontendJavaScript
0 likes · 31 min read
Building a Frontend Monitoring SDK from Scratch: Design, Implementation, and Performance Metrics
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Apr 6, 2025 · Frontend Development

Error Handling Strategies for async/await in JavaScript

This article explains the fundamentals of async/await in JavaScript, compares it with callbacks and promises, and presents various error‑handling approaches such as try/catch, Promise.catch, combined await‑catch, and global rejection listeners, helping developers choose the most suitable strategy for their projects.

Async/AwaitError HandlingJavaScript
0 likes · 9 min read
Error Handling Strategies for async/await in JavaScript
Practical DevOps Architecture
Practical DevOps Architecture
Apr 2, 2025 · Operations

Nginx Server Configuration: Proxy Pass, URL Rewrites, SSL, and Error Pages

This article provides a step‑by‑step guide to configuring Nginx for both HTTP and HTTPS, including how to set up separate proxy passes for multiple APIs, define URL rewrite rules, configure SSL certificates, and customize error page handling using concrete configuration examples.

Error HandlingNginxSSL
0 likes · 3 min read
Nginx Server Configuration: Proxy Pass, URL Rewrites, SSL, and Error Pages
Code Mala Tang
Code Mala Tang
Apr 1, 2025 · Backend Development

Enforcing Python Function Timeouts: Libraries, Multiprocessing & Subprocess

This article explains why limiting a function's execution time is crucial for stability, and demonstrates multiple Python techniques—including the func-timeout library, custom multiprocessing, subprocess.run, and signal handling—to set and manage timeouts effectively.

Error HandlingMultiprocessingPython
0 likes · 8 min read
Enforcing Python Function Timeouts: Libraries, Multiprocessing & Subprocess
Code Mala Tang
Code Mala Tang
Mar 29, 2025 · Fundamentals

Better Ways to Handle Missing Values in Python Instead of Returning None

This article explains why returning None for missing values can cause unexpected errors in Python code and presents five practical alternatives—including default values, raising exceptions, special objects, type‑hinted optional returns, and dataclasses—to handle absent data safely and cleanly.

Error HandlingPythondataclasses
0 likes · 4 min read
Better Ways to Handle Missing Values in Python Instead of Returning None
Code Mala Tang
Code Mala Tang
Mar 27, 2025 · Fundamentals

Why Returning None Is Bad and Better Ways to Handle Missing Values in Python

Returning None for missing data can cause unexpected crashes, so this article explains why that approach is problematic and demonstrates safer alternatives in Python, such as using default values with dict.get, raising exceptions when appropriate, and employing result objects to clearly indicate success or failure.

Error HandlingNone handlingPython
0 likes · 3 min read
Why Returning None Is Bad and Better Ways to Handle Missing Values in Python
Sohu Tech Products
Sohu Tech Products
Mar 26, 2025 · Frontend Development

React TypeScript Development Guide: Components, Hooks, Events, and Asynchronous Requests

This comprehensive React‑TypeScript guide walks developers through type‑safe component declarations—including functional, class, and generic patterns—hooks usage, event handling, element typing, error boundaries, and both fetch and Axios asynchronous request wrappers, emphasizing best practices for readability, maintainability, and performance.

Async RequestsComponentsError Handling
0 likes · 23 min read
React TypeScript Development Guide: Components, Hooks, Events, and Asynchronous Requests
JD Tech Talk
JD Tech Talk
Mar 21, 2025 · Fundamentals

Go Language Basics: Syntax, Types, Concurrency, and Error Handling

This article introduces Go (Golang) fundamentals for developers familiar with other object‑oriented languages, covering basic syntax, variable and constant declarations, nil and zero values, methods, packages, pointers, struct‑based OOP, interfaces, goroutines, channels, mutexes, and the language's simple error‑handling mechanisms.

Error HandlingGoProgramming
0 likes · 25 min read
Go Language Basics: Syntax, Types, Concurrency, and Error Handling
FunTester
FunTester
Mar 19, 2025 · Backend Development

Common Go Error Handling Mistakes and Best Practices

This article examines typical Go error handling pitfalls—including misuse of panic, improper error wrapping, incorrect error comparisons, and neglecting error checks—provides illustrative code samples, explains their potential impacts, and offers best‑practice recommendations to write robust, maintainable Go programs.

BackendBest PracticesError Handling
0 likes · 18 min read
Common Go Error Handling Mistakes and Best Practices