Tagged articles

error handling

376 articles · Page 2 of 4
JD Cloud Developers
JD Cloud Developers
Mar 28, 2025 · Frontend Development

How to Build Effective Frontend Monitoring and Alerting Strategies

This article outlines a comprehensive approach to frontend monitoring, covering business value positioning, classification of metrics, monitoring and alert strategies, standardized response formats, and a step‑by‑step SOP for rapid fault detection and mitigation.

SOPalert strategyerror handling
0 likes · 9 min read
How to Build Effective Frontend Monitoring and Alerting Strategies
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.

None handlingPythonerror handling
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 RequestsEventsHooks
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.

GoSyntaxerror handling
0 likes · 25 min read
Go Language Basics: Syntax, Types, Concurrency, and Error Handling
Tencent Cloud Developer
Tencent Cloud Developer
Mar 18, 2025 · Fundamentals

Java vs Go: Syntax, OOP, Error Handling, Concurrency, Garbage Collection and Performance Comparison

The article compares Java and Go across syntax, variable declaration, object‑oriented features, error handling, concurrency models, garbage collection, resource usage, and ecosystem maturity, concluding that Go offers simpler code, lightweight concurrency and lower overhead, while Java provides a richer library ecosystem and more mature tooling, making the choice dependent on project requirements.

Garbage CollectionGoconcurrency
0 likes · 26 min read
Java vs Go: Syntax, OOP, Error Handling, Concurrency, Garbage Collection and Performance Comparison
php Courses
php Courses
Mar 14, 2025 · Backend Development

10 Common PHP Development Mistakes That Could Crash Applications in 2025 and How to Avoid Them

This article outlines ten frequent PHP development errors—such as outdated versions, insecure practices, overreliance on third‑party libraries, poor error handling, performance neglect, insufficient testing, maintainability issues, resource mismanagement, ignored user feedback, and flawed scaling strategies—and provides concrete code examples and solutions to prevent application crashes by 2025.

PHPbest practiceserror handling
0 likes · 9 min read
10 Common PHP Development Mistakes That Could Crash Applications in 2025 and How to Avoid Them
FunTester
FunTester
Mar 6, 2025 · Backend Development

Common Mistakes with Go's select Statement and How to Fix Them

This article examines frequent errors when using Go's select statement—such as omitting a default case, misunderstanding case order, handling nil channels, missing timeout logic, and duplicate cases—explaining their impact, offering best‑practice guidance, and providing corrected code examples for each scenario.

GoSELECTconcurrency
0 likes · 14 min read
Common Mistakes with Go's select Statement and How to Fix Them
KooFE Frontend Team
KooFE Frontend Team
Feb 15, 2025 · Frontend Development

Avoid Aggressive Error Messages: UI Design Rules for Better User Experience

This article explains how premature or overly aggressive error messages can frustrate users, outlines Nielsen's relevant usability principles, and provides practical guidelines with real‑world examples to help designers display errors only when necessary and use error styling appropriately.

Form ValidationUI designUsability
0 likes · 13 min read
Avoid Aggressive Error Messages: UI Design Rules for Better User Experience
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Feb 13, 2025 · Backend Development

Mastering Spring Boot 3: Real‑World Cases, ThreadLocal, Async & More

This article presents a continuously updated collection of over 90 practical Spring Boot 3 examples, covering request/response access, ThreadLocal handling, async interceptors, request metadata extraction, custom type converters, 404 error handling, and related source code to help developers build robust backend services.

Async ProcessingRequest HandlingSpring Boot
0 likes · 10 min read
Mastering Spring Boot 3: Real‑World Cases, ThreadLocal, Async & More
Subtle Storm
Subtle Storm
Feb 11, 2025 · Backend Development

Understanding Go's defer: Purpose, Design Philosophy, and Best Practices

This article explains Go's defer keyword, covering its purpose, LIFO execution, design goals for simplifying resource management and error handling, internal implementation details, common use cases like cleanup and logging, and performance considerations with practical code examples.

Godefererror handling
0 likes · 9 min read
Understanding Go's defer: Purpose, Design Philosophy, and Best Practices
FunTester
FunTester
Feb 8, 2025 · Backend Development

Uber Go Coding Style Guide and Best Practices

This guide outlines Uber's conventions and best practices for writing Go code, covering linting, formatting, interface usage, error handling, concurrency, performance, style, patterns, and code‑checking tools to ensure maintainable, efficient, and idiomatic backend services.

GoStyle Guidecoding standards
0 likes · 16 min read
Uber Go Coding Style Guide and Best Practices
Code Mala Tang
Code Mala Tang
Jan 31, 2025 · Backend Development

Mastering Retry Patterns in Node.js: From Basics to Advanced Strategies

This article explores the retry pattern as a resilient design technique for distributed systems, detailing its fundamentals, a simple Node.js implementation, and advanced strategies such as exponential backoff with jitter, circuit breaker integration, comprehensive logging, and best‑practice guidelines for robust error handling.

Node.jscircuit breakerdistributed systems
0 likes · 11 min read
Mastering Retry Patterns in Node.js: From Basics to Advanced Strategies
Code Ape Tech Column
Code Ape Tech Column
Jan 22, 2025 · Backend Development

Using Lua Scripts with Spring Boot and Redis: A Comprehensive Guide

This article introduces Lua scripting in Redis, explains its fundamentals and advantages, and provides step‑by‑step instructions for integrating and executing Lua scripts within a Spring Boot application, including code examples, performance optimization, error handling, security considerations, and best practices.

LuaRedisSpring Boot
0 likes · 19 min read
Using Lua Scripts with Spring Boot and Redis: A Comprehensive Guide
JavaScript
JavaScript
Jan 18, 2025 · Frontend Development

8 Essential JavaScript Error‑Handling Techniques for More Resilient Apps

Master robust JavaScript error handling with eight practical strategies—including async try‑catch, global handlers, custom error types, graceful degradation, error boundaries, promise chain management, log level structuring, and automatic recovery—to boost application stability and improve user experience.

JavaScriptasyncbest practices
0 likes · 6 min read
8 Essential JavaScript Error‑Handling Techniques for More Resilient Apps
Radish, Keep Going!
Radish, Keep Going!
Jan 13, 2025 · Fundamentals

Can Go’s New ‘?’ Operator Simplify Error Handling?

The proposal introduces a ‘?’ operator to automatically handle errors in Go, aiming to reduce boilerplate while preserving explicitness, but it raises concerns about code readability, variable shadowing, and the effort required to update existing codebases.

Goerror handlinglanguage proposal
0 likes · 8 min read
Can Go’s New ‘?’ Operator Simplify Error Handling?
Open Source Tech Hub
Open Source Tech Hub
Jan 11, 2025 · Backend Development

Streamline PHP Exception Handling with a Unified Elegant Approach

This article explores why excessive try‑catch blocks clutter PHP code, compares a messy controller implementation with a clean version, explains PHP exception fundamentals, and demonstrates how to centralize error handling in Webman using a custom TinywanHandler with practical configuration and examples.

Custom HandlerExceptionPHP
0 likes · 17 min read
Streamline PHP Exception Handling with a Unified Elegant Approach
360 Zhihui Cloud Developer
360 Zhihui Cloud Developer
Jan 3, 2025 · Backend Development

Mastering gRPC Retry: Strategies, Configurations, and Best Practices

This article examines common short‑term failure causes in shared‑resource environments, explains gRPC’s retry configuration options and implementation details, and provides practical guidance on setting retry policies, backoff strategies, and status code handling to improve service resilience.

Backofferror handlinggRPC
0 likes · 10 min read
Mastering gRPC Retry: Strategies, Configurations, and Best Practices
Tencent Cloud Developer
Tencent Cloud Developer
Dec 24, 2024 · Backend Development

From Java to Go: Key Differences Every Developer Must Know

This article compares Java and Go across syntax simplicity, type systems, object‑oriented features, pointers, error handling, concurrency, reflection, and community culture, providing concrete code examples and practical insights to help Java developers transition smoothly to Go.

GoLanguage comparisonbackend development
0 likes · 14 min read
From Java to Go: Key Differences Every Developer Must Know
Raymond Ops
Raymond Ops
Dec 20, 2024 · Fundamentals

Mastering Go Error Handling: From Errors to Panic and Recover

This article explains Go's error handling conventions, including returning error values, creating custom errors with the errors package, using fmt.Errorf, handling runtime panics, and recovering from them with defer, plus advanced patterns like panic‑recover wrappers and closure‑based error management, illustrated with comprehensive code examples.

custom errorserror handlingpanic
0 likes · 13 min read
Mastering Go Error Handling: From Errors to Panic and Recover
php Courses
php Courses
Dec 9, 2024 · Backend Development

Using curl_errno() in PHP to Retrieve cURL Error Codes

This article explains the PHP curl_errno() function for obtaining cURL request error codes, provides its syntax, demonstrates practical example code for initializing a cURL handle, executing requests, checking errors, handling common error codes, and summarizing how to improve error handling in backend development.

PHPcurl_errnoerror handling
0 likes · 4 min read
Using curl_errno() in PHP to Retrieve cURL Error Codes
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Dec 8, 2024 · Backend Development

Designing an Elegant Error‑Handling Framework for Go Applications

This article analyses the pitfalls of traditional error‑checking and panic handling in Go order‑processing code, demonstrates how excessive inline checks and scattered defer statements lead to maintenance nightmares, and proposes a reusable try‑catch‑finally library that cleanly separates business logic, unifies panic recovery, and guarantees resource cleanup.

Goerror handlingpanic recovery
0 likes · 19 min read
Designing an Elegant Error‑Handling Framework for Go Applications
Chen Tian Universe
Chen Tian Universe
Dec 5, 2024 · Operations

How to Build a Scalable Reconciliation System for High‑Volume Transactions

This article explains the concepts, models, architecture, data management, project configuration, engine design, and error‑handling procedures needed to implement an automated, systematic reconciliation system that can handle large‑scale online transaction volumes with high accuracy and efficiency.

AutomationData PipelineReconciliation
0 likes · 27 min read
How to Build a Scalable Reconciliation System for High‑Volume Transactions
php Courses
php Courses
Nov 22, 2024 · Backend Development

Optimizing Exception Handling in PHP: Best Practices

This article explains how PHP developers can improve code stability and maintainability by using try‑catch blocks, creating custom exception classes, employing multiple catch clauses, adding finally blocks, and leveraging additional functions like throw and set_exception_handler, providing clear examples for each technique.

custom-exceptionerror handlingexception-handling
0 likes · 5 min read
Optimizing Exception Handling in PHP: Best Practices
Taobao Frontend Technology
Taobao Frontend Technology
Nov 5, 2024 · Frontend Development

New JavaScript Proposals: Error.isError, RegExp.escape, Uint8Array Base64

These recent ECMAScript proposals—Error.isError for reliable error type checking, RegExp.escape to safely escape user‑provided strings, Uint8Array methods for seamless Base64 and hex conversions, and Temporal.TimeZone.prototype.equals for robust time‑zone comparison—aim to simplify development across browsers and Node.js by addressing long‑standing inconsistencies.

Base64ECMAScript proposalsJavaScript
0 likes · 8 min read
New JavaScript Proposals: Error.isError, RegExp.escape, Uint8Array Base64
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Oct 14, 2024 · Fundamentals

Understanding Exception Handling in Python

This article provides a comprehensive guide to Python exception handling, covering the concept of exceptions, built‑in exception types, the try‑except‑else‑finally structure, custom exception creation, debugging techniques with assert and logging, and a practical file‑operation example to build robust programs.

Exception HandlingPythonTutorial
0 likes · 8 min read
Understanding Exception Handling in Python
Full-Stack Cultivation Path
Full-Stack Cultivation Path
Oct 9, 2024 · Frontend Development

How the New JavaScript ?= Operator Can Eliminate Try‑Catch Boilerplate

JavaScript’s upcoming safe‑assignment operator ( ?= ) lets developers handle errors without traditional try‑catch blocks, reducing nesting, improving readability, and enabling seamless integration with async/await, Symbol.result, and recursive error handling, as demonstrated through multiple code examples and a polyfill link.

Async/AwaitJavaScriptPolyfill
0 likes · 5 min read
How the New JavaScript ?= Operator Can Eliminate Try‑Catch Boilerplate
JD Tech
JD Tech
Oct 9, 2024 · Fundamentals

Defensive Programming: Concepts, Core Principles, and Practical Java Examples

This article explains defensive programming as a proactive coding paradigm that anticipates and mitigates errors through input validation, error handling, assertions, and continuous testing, and demonstrates its application with detailed Java examples covering pagination, loop safety, exception management, and boundary checks.

Input ValidationSoftware Robustnessdefensive programming
0 likes · 15 min read
Defensive Programming: Concepts, Core Principles, and Practical Java Examples
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Sep 22, 2024 · Backend Development

Mastering RFC 7807 Problem Details in Spring Boot 3.2.5

This article explains how Spring Boot 3.2.5 implements the RFC 7807 Problem Details specification, covering the core abstractions, code examples for creating ProblemDetail and ErrorResponse objects, and practical patterns for global exception handling in Spring MVC applications.

Problem DetailsRFC 7807Spring Boot
0 likes · 8 min read
Mastering RFC 7807 Problem Details in Spring Boot 3.2.5
Full-Stack Cultivation Path
Full-Stack Cultivation Path
Sep 18, 2024 · Fundamentals

How the New JavaScript Safe Assignment Operator Eliminates try‑catch

The ECMAScript proposal‑safe‑assignment‑operator introduces the ?= operator, which returns an [error, result] tuple, allowing developers to replace verbose try‑catch blocks with concise, readable error handling that works with async functions, Promises, and any object implementing Symbol.result, while also improving code consistency and safety.

==Async/AwaitJavaScript
0 likes · 8 min read
How the New JavaScript Safe Assignment Operator Eliminates try‑catch
Python Programming Learning Circle
Python Programming Learning Circle
Sep 14, 2024 · Fundamentals

10 Useful Python Decorators with Code Examples

This article introduces ten practical Python decorators—including @timer, @memoize, @validate_input, and others—explaining their purpose, providing detailed code implementations, and demonstrating how they can improve performance, error handling, logging, validation, and visualization in data‑science and general programming tasks.

decoratorserror handlinglogging
0 likes · 10 min read
10 Useful Python Decorators with Code Examples
Java Tech Enthusiast
Java Tech Enthusiast
Sep 10, 2024 · Backend Development

Thread Pool Data Persistence in Java Systems

The article explains how using a database‑backed persistence layer for Java thread‑pool tasks prevents data loss during service downtime by storing tasks before submission, tracking status and retries, and employing idempotent processing with configurable pool sizes and scheduled reprocessing of failed or pending jobs.

Thread Poolbackend developmentdata persistence
0 likes · 7 min read
Thread Pool Data Persistence in Java Systems
Test Development Learning Exchange
Test Development Learning Exchange
Sep 10, 2024 · Fundamentals

Master Python Basics: Error Handling, Files, OOP, and More

This guide walks through essential Python concepts—including try/except error handling, file reading and writing, class definitions with inheritance, variable scopes, common built‑in functions, docstrings, comments, and command‑line argument processing—providing clear code examples for each topic.

Command LineDocstringsFile I/O
0 likes · 8 min read
Master Python Basics: Error Handling, Files, OOP, and More
Test Development Learning Exchange
Test Development Learning Exchange
Sep 5, 2024 · Backend Development

Build a Clean, Efficient MySQL Utility Class in Python

This article walks you through designing a lightweight, high‑performance MySQL helper class in Python, covering singleton connection management, robust exception handling, logging, context‑managed connections, and practical query/execute methods with example code and usage scenarios.

DatabaseMySQLPython
0 likes · 7 min read
Build a Clean, Efficient MySQL Utility Class in Python
Architecture Digest
Architecture Digest
Aug 30, 2024 · Fundamentals

MoonBit: A Next‑Generation Cloud‑Native Programming Language with Modern Generics, Precise Error Handling, and Efficient Iterators

MoonBit is a Chinese‑developed, Rust‑like programming language that offers zero‑cost generics, compile‑time precise error handling, and high‑performance iterators, delivering dramatically faster compilation and smaller WebAssembly binaries for cloud and edge computing workloads.

Cloud NativeIteratorsMoonBit
0 likes · 7 min read
MoonBit: A Next‑Generation Cloud‑Native Programming Language with Modern Generics, Precise Error Handling, and Efficient Iterators
FunTester
FunTester
Aug 22, 2024 · Fundamentals

Master Go Error Handling: Built-in Errors, Wrapping, and Panic/Recover

This article explains Go's unique error handling approach, covering the built-in error interface, creating errors with errors.New, wrapping errors using fmt.Errorf, defining custom error types, logging errors with the log package, and managing severe failures with panic and recover, complete with practical code examples.

Gocustom errorerror handling
0 likes · 15 min read
Master Go Error Handling: Built-in Errors, Wrapping, and Panic/Recover
Test Development Learning Exchange
Test Development Learning Exchange
Aug 17, 2024 · Backend Development

Python Decorator Examples for API Testing

This article presents ten practical Python decorator patterns—such as logging, performance measurement, exception handling, retry, status‑code validation, parameter checking, rate limiting, data‑driven testing, environment configuration, and concurrent execution—each illustrated with clear use‑case descriptions and complete code snippets for API testing.

api-testingconcurrencydecorator
0 likes · 9 min read
Python Decorator Examples for API Testing
php Courses
php Courses
Aug 1, 2024 · Backend Development

Optimizing Exception Handling in PHP

This article explains how PHP developers can improve code stability and maintainability by using try‑catch blocks, creating custom exception classes, employing multiple catch clauses, leveraging finally blocks, and utilizing additional functions like throw and set_exception_handler for robust error handling.

Exception Handlingerror handling
0 likes · 5 min read
Optimizing Exception Handling in PHP
JD Tech Talk
JD Tech Talk
Jul 29, 2024 · Backend Development

Best Practices for Service Design and API Development in Enterprise Systems

This article presents comprehensive guidelines for designing robust, secure, and maintainable enterprise services, covering API path conventions, request handling, input/output parameter design, business logic recommendations, exception handling, dependency management, monitoring, degradation strategies, encryption, and system admission practices.

API designencryptionerror handling
0 likes · 19 min read
Best Practices for Service Design and API Development in Enterprise Systems
JD Tech Talk
JD Tech Talk
Jul 26, 2024 · Fundamentals

Defensive Programming: Concepts, Core Principles, and Practical Cases

This article introduces defensive programming, explains its fundamental concepts and core principles such as risk identification and input validation, and demonstrates practical applications through multiple Java code examples covering pagination, loop prevention, exception handling, boundary checks, and assertions to improve software robustness.

Software Robustnessbest practicescode quality
0 likes · 13 min read
Defensive Programming: Concepts, Core Principles, and Practical Cases
JD Cloud Developers
JD Cloud Developers
Jul 25, 2024 · Fundamentals

Master Defensive Programming: Strategies to Build Robust Software

Defensive programming is a proactive coding paradigm that anticipates errors and exceptions, emphasizing input validation, error isolation, assertions, thorough testing, and clear error handling, with practical examples ranging from pagination parameter checks to loop safeguards, illustrating how to enhance software robustness and stability.

Input ValidationSoftware Robustnessdefensive programming
0 likes · 16 min read
Master Defensive Programming: Strategies to Build Robust Software
Test Development Learning Exchange
Test Development Learning Exchange
Jul 25, 2024 · Fundamentals

The Art of Exception Handling in Python: Using raise...from

This article explains how Python's raise...from statement can be used to link exceptions, providing clear examples that demonstrate basic usage, function integration, file handling, multi‑level chaining, network errors, class methods, database queries, serialization, loops, and decorators to improve error reporting and debugging.

error handlingexception-handlingprogramming
0 likes · 7 min read
The Art of Exception Handling in Python: Using raise...from
JD Tech
JD Tech
Jul 17, 2024 · Information Security

Service Design Tips and Security Practices for Robust API Development

This article presents comprehensive guidelines for designing flexible, secure, and maintainable API services, covering standardized paths, request handling, parameter design, business logic, exception management, dependency classification, monitoring, degradation strategies, handling legacy services, and encryption measures to ensure robust service architecture.

API designMonitoringencryption
0 likes · 19 min read
Service Design Tips and Security Practices for Robust API Development
Top Architect
Top Architect
Jun 28, 2024 · Backend Development

Designing a Unified API Response Structure for Backend Services

This article explains how to create a consistent JSON response format with status codes, messages, and data payloads, and how to automate its generation in Java Spring using a custom @ResponseResult annotation, interceptor, and controller advice to simplify backend development and improve front‑end integration.

APIAnnotationSpring
0 likes · 9 min read
Designing a Unified API Response Structure for Backend Services
Test Development Learning Exchange
Test Development Learning Exchange
Jun 16, 2024 · Fundamentals

Python Basics: Common Questions, Syntax, Data Types, Control Structures, Functions, Modules, and Error Handling

This article provides a comprehensive overview of Python fundamentals for beginners, covering the language’s purpose, basic syntax, data types, control structures, functions, modules, exception handling, input/output, common built‑in functions, advanced concepts like list comprehensions and generators, and typical runtime errors with troubleshooting tips.

Control structuresProgramming BasicsPython
0 likes · 8 min read
Python Basics: Common Questions, Syntax, Data Types, Control Structures, Functions, Modules, and Error Handling
Alibaba Cloud Developer
Alibaba Cloud Developer
Jun 14, 2024 · Backend Development

Master Java Logging: 12 Essential Practices for Clean, Efficient Logs

This article presents twelve practical guidelines for Java logging, covering interface‑layer usage, avoiding separator lines, preventing logging‑induced exceptions, leveraging Fastjson features, preserving exception stacks, limiting message length, merging stack traces, skipping costly placeholders, avoiding console output, discarding redundant utilities, and adhering to Alibaba's logging specification.

best practiceserror handlingperformance
0 likes · 11 min read
Master Java Logging: 12 Essential Practices for Clean, Efficient Logs
Python Programming Learning Circle
Python Programming Learning Circle
Jun 11, 2024 · Databases

SQL Best Practices: Avoid Common Mistakes and Write Efficient Queries

This article presents a reverse‑analysis of common SQL pitfalls—such as ambiguous column names, selecting all columns, unnecessary joins, missing WHERE clauses, lack of ORDER BY, unclear aliases, absent error handling, redundant subqueries, and missing comments—and provides clear "Don’t" and "Do" examples with code to help you write clean, optimized, and reliable SQL statements.

Query Optimizationbest practiceserror handling
0 likes · 7 min read
SQL Best Practices: Avoid Common Mistakes and Write Efficient Queries
Ops Development & AI Practice
Ops Development & AI Practice
Jun 7, 2024 · Operations

How to Build a Robust Shell Function for Capturing Command Output and Errors

This guide explains how to capture command output and error messages in shell scripts, demonstrates basic output capture with $(), shows conditional handling using if statements, and provides a reusable run_command function—both simple and enhanced versions—to improve script robustness and maintainability.

Shell scriptingbash functioncommand output
0 likes · 5 min read
How to Build a Robust Shell Function for Capturing Command Output and Errors
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Jun 6, 2024 · Frontend Development

Common JavaScript Pitfalls and Best Practices for Frontend Development

This article examines frequent JavaScript errors such as improper data handling, unsafe destructuring, unreliable default values, misuse of array methods, object method calls, async/await error handling, JSON parsing, mutable references, concurrent async operations, and over‑defensive coding, and provides concise ES6‑compatible refactorings to prevent white‑screen crashes and improve robustness.

best practiceserror handlinges6
0 likes · 10 min read
Common JavaScript Pitfalls and Best Practices for Frontend Development
DevOps Cloud Academy
DevOps Cloud Academy
Jun 3, 2024 · Fundamentals

Understanding NULL: The Silent Killer in Code and How to Mitigate Its Risks

NULL, the ubiquitous placeholder for missing values, can silently introduce bugs, crashes, and data inconsistencies across languages and databases, but by understanding its pitfalls and applying strategies like optional types, default values, Null Object patterns, and proper database constraints, developers can significantly improve code reliability.

DatabaseNULLOptional
0 likes · 10 min read
Understanding NULL: The Silent Killer in Code and How to Mitigate Its Risks
Go Programming World
Go Programming World
May 30, 2024 · Backend Development

Standardizing RESTful API Error Handling with Business Error Codes and an Error Package in Go

This article explains how to design a unified business error‑code system for RESTful APIs, demonstrates the structure and format of such codes, provides a Go implementation with structs, interfaces and formatting methods, and shows practical usage in a Gin web server including logging and notification strategies.

GinGoRESTful API
0 likes · 22 min read
Standardizing RESTful API Error Handling with Business Error Codes and an Error Package in Go
php Courses
php Courses
Apr 30, 2024 · Backend Development

Using curl_errno() in PHP to Retrieve cURL Error Codes

This article explains the PHP curl_errno() function, its definition, usage, and provides sample code demonstrating how to retrieve and handle cURL error codes, along with a list of common error numbers and their meanings to improve network request error handling.

PHPcurl_errnoerror handling
0 likes · 4 min read
Using curl_errno() in PHP to Retrieve cURL Error Codes
IT Niuke
IT Niuke
Apr 19, 2024 · Backend Development

Why You Should Switch from RestTemplate to Spring’s Official WebClient

The article explains that RestTemplate is deprecated in Spring 5+, outlines WebClient’s non‑blocking I/O, functional style, streaming support and improved error handling, and provides step‑by‑step code examples for synchronous and asynchronous requests, timeout configuration, and error processing.

ReactiveSpringWebClient
0 likes · 13 min read
Why You Should Switch from RestTemplate to Spring’s Official WebClient
macrozheng
macrozheng
Apr 18, 2024 · Backend Development

Boost Spring Boot Performance with Redis Lua Scripts: A Complete Guide

This tutorial explains Lua scripting fundamentals, why Lua is ideal for Redis, common use cases, and step‑by‑step integration of Lua scripts into Spring Boot applications—including dependency setup, configuration, code examples, performance benefits, error handling, security considerations, and best‑practice recommendations.

Lua ScriptingSpring Bootbackend development
0 likes · 21 min read
Boost Spring Boot Performance with Redis Lua Scripts: A Complete Guide
21CTO
21CTO
Apr 16, 2024 · Backend Development

Essential Backend Development Practices to Boost Efficiency and Scalability

Backend development underpins every software application, and mastering practices such as input validation, robust error handling, separation of concerns, and thorough testing and documentation ensures applications are secure, maintainable, and scalable, empowering developers to build resilient server‑side systems.

Input Validationbackend developmentbest practices
0 likes · 6 min read
Essential Backend Development Practices to Boost Efficiency and Scalability
Ops Development & AI Practice
Ops Development & AI Practice
Apr 11, 2024 · Backend Development

Mastering Error Codes: Best Practices for Clear, Scalable Error Handling

This article outlines practical guidelines for designing systematic error codes and user‑friendly messages, covering classification, templating, dynamic generation, documentation, automation, and references to open‑source specifications such as HTTP, gRPC, Microsoft REST, Google JSON, and Linux errno.

best practiceserror codeserror handling
0 likes · 14 min read
Mastering Error Codes: Best Practices for Clear, Scalable Error Handling
Code Ape Tech Column
Code Ape Tech Column
Mar 29, 2024 · Backend Development

Using Lua Scripts with Spring Boot and Redis: A Comprehensive Guide

This article explains how to integrate Lua scripts into Spring Boot applications for Redis, covering Lua fundamentals, performance benefits, common use cases, step‑by‑step implementation with Spring Data Redis, error handling, security considerations, and best‑practice recommendations.

LuaSpring Bootbackend development
0 likes · 20 min read
Using Lua Scripts with Spring Boot and Redis: A Comprehensive Guide
php Courses
php Courses
Mar 26, 2024 · Backend Development

Using curl_errno() in PHP to Retrieve cURL Error Codes

This article explains the PHP curl_errno() function, detailing its definition, usage, and return values, provides a complete example showing how to initialize a cURL handle, execute a request, check for errors, retrieve error codes, and close the handle, and lists common cURL error codes.

PHPcurlcurl_errno
0 likes · 4 min read
Using curl_errno() in PHP to Retrieve cURL Error Codes
php Courses
php Courses
Mar 15, 2024 · Backend Development

Using curl_error() to Retrieve cURL Error Messages in PHP

This article explains how to use PHP's curl_error() function to retrieve and handle error messages from cURL HTTP requests, including a step‑by‑step example that creates a cURL handle, sets a URL, executes the request, checks for errors, and closes the handle.

HTTP requestPHPcurl
0 likes · 4 min read
Using curl_error() to Retrieve cURL Error Messages in PHP
MaGe Linux Operations
MaGe Linux Operations
Mar 14, 2024 · Backend Development

Mastering Go Error Handling: Panic, Recover, and Best Practices

This article explains Go's error handling conventions, the built‑in error interface, how to use panic and recover for runtime exceptions, and presents practical patterns—including closure‑based handling and custom package guidelines—to write robust backend code.

Goerror handlingpanic
0 likes · 12 min read
Mastering Go Error Handling: Panic, Recover, and Best Practices
php Courses
php Courses
Mar 14, 2024 · Backend Development

Comprehensive Guide to Common PHP Errors and Their Solutions

This comprehensive guide explains the ten most common PHP errors—including ParseError, DivisionByZeroError, TypeError, and UnexpectedValueException—detailing their causes, prevention strategies, and step‑by‑step remediation techniques, while also highlighting best practices and tools such as Zipy for proactive error monitoring.

DebuggingExceptionserror handling
0 likes · 22 min read
Comprehensive Guide to Common PHP Errors and Their Solutions
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Mar 11, 2024 · Backend Development

Mastering @ResponseStatus in Spring Boot: Real‑World Examples & Custom Error Handling

This tutorial explains how Spring Boot's @ResponseStatus annotation works, demonstrates practical ways to throw ResponseStatusException, create custom exception classes, annotate controller methods, and replace the default error view with a custom JSON response, complete with code samples and diagrams.

ResponseStatusSpring Bootbackend development
0 likes · 6 min read
Mastering @ResponseStatus in Spring Boot: Real‑World Examples & Custom Error Handling
JD Tech
JD Tech
Feb 28, 2024 · Databases

Detecting and Monitoring Database Deadlocks with EasyBI: A Practical Case Study

This article recounts how a production database deadlock was uncovered during testing, explains the use of the EasyBI monitoring tool to collect and visualize error and claim statistics, and shares the step‑by‑step configuration, analysis, and lessons learned for preventing similar issues in future systems.

DatabaseDeadlockEasyBI
0 likes · 8 min read
Detecting and Monitoring Database Deadlocks with EasyBI: A Practical Case Study
Python Programming Learning Circle
Python Programming Learning Circle
Feb 17, 2024 · Fundamentals

Common Python Decorators: Usage, Examples, and Implementation

This article introduces Python decorators, explains their syntax, and provides ten practical examples—including timing, caching, input validation, logging, error suppression, output validation, retry logic, visualization, debugging, and deprecation—complete with code snippets and usage guidance for data‑science and general development tasks.

cachingdecoratorserror handling
0 likes · 9 min read
Common Python Decorators: Usage, Examples, and Implementation
Baidu Geek Talk
Baidu Geek Talk
Dec 27, 2023 · Mobile Development

Mastering Swift in Baidu App: Common Pitfalls and Practical Solutions

This guide explores Swift's advantages for iOS development, outlines suitable migration scenarios, and provides detailed solutions for common issues such as string handling, error management, access control, JSON parsing, initialization rules, Objective‑C interop, modulemap configuration, and Library Evolution constraints.

InitializationLibrary EvolutionModulemap
0 likes · 16 min read
Mastering Swift in Baidu App: Common Pitfalls and Practical Solutions
php Courses
php Courses
Dec 19, 2023 · Backend Development

PHP Error Handling Functions and Examples

This article explains PHP error handling by describing common error types, introducing built‑in functions such as die(), error_get_last(), error_reporting(), set_error_handler(), and error_log(), and providing code examples that demonstrate how to capture, display, customize, and log errors in backend applications.

PHPerror handling
0 likes · 6 min read
PHP Error Handling Functions and Examples
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Dec 19, 2023 · Frontend Development

7 Advanced JavaScript async/await Techniques

This article explains seven advanced JavaScript async/await patterns—including higher‑order functions, concurrency control, recursive processing, asynchronous class initialization, method chaining, event‑loop integration, and streamlined error handling—to help developers write clearer, more maintainable asynchronous code.

Advanced TechniquesAsync/AwaitAsynchronous Programming
0 likes · 15 min read
7 Advanced JavaScript async/await Techniques
JavaEdge
JavaEdge
Dec 17, 2023 · Cloud Computing

Mastering AWS Lambda Error Handling: Best Practices and Advanced Strategies

This guide explains AWS Lambda error types and presents practical best‑practice solutions—including dead‑letter queues, exponential‑backoff retries, structured logging, custom error responses, and advanced techniques like X‑Ray tracing and fault injection—to help you build resilient serverless applications.

AWS LambdaCloud Computingbest practices
0 likes · 10 min read
Mastering AWS Lambda Error Handling: Best Practices and Advanced Strategies
php Courses
php Courses
Dec 14, 2023 · Fundamentals

Understanding Different Types of Value Objects and Their Implementation in PHP

This article explores simple, complex, and composite value objects in PHP, providing guidelines for their design, validation, immutability, string representation, equality checks, while also discussing alternative error handling approaches such as Either types and union types.

Domain-Driven DesignFactory MethodPHP
0 likes · 16 min read
Understanding Different Types of Value Objects and Their Implementation in PHP
Python Programming Learning Circle
Python Programming Learning Circle
Dec 9, 2023 · Fundamentals

Practical Python Decorators: Timing, Caching, Validation, Logging, and More

This article introduces ten practical Python decorators—including @timer, @memoize, @validate_input, @log_results, @suppress_errors, @validate_output, @retry, @visualize_results, @debug, and @deprecated—explaining their purpose, showing full code implementations, and demonstrating how they can improve performance, reliability, and maintainability of data‑science and general Python projects.

cachingdecoratorserror handling
0 likes · 9 min read
Practical Python Decorators: Timing, Caching, Validation, Logging, and More
Tencent Cloud Developer
Tencent Cloud Developer
Dec 6, 2023 · Backend Development

Exception Handling in Software Development: A Comprehensive Analysis

The article systematically distinguishes unrecoverable errors from recoverable exceptions and surveys five major handling strategies—global error codes, return‑value conventions, parameter‑based collectors, language‑level exception mechanisms, and OS‑level support—concluding that the optimal approach depends on performance constraints, code‑base design, and portability requirements.

CoroutinesProgramming Paradigmsbackend-development
0 likes · 47 min read
Exception Handling in Software Development: A Comprehensive Analysis
Open Source Tech Hub
Open Source Tech Hub
Dec 3, 2023 · Backend Development

Standardizing API Response Formats and Error Handling in PHP

This guide outlines a unified JSON response structure, defines standard HTTP status codes, presents common data payload formats, provides reusable PHP functions for broadcasting messages, and demonstrates custom error handling within a WebSocket gateway to improve backend consistency and robustness.

APIPHPdata format
0 likes · 6 min read
Standardizing API Response Formats and Error Handling in PHP
DaTaobao Tech
DaTaobao Tech
Nov 29, 2023 · Frontend Development

Error Message Governance System: A Frontend Solution for Better User Experience

The article describes a frontend error‑message governance system that dynamically maps cryptic error codes to clear, context‑aware messages, lets operators configure responses by code, URL or endpoint, and improves user experience and system stability while enabling future features such as efficiency metrics, guides, and surveys.

Data ProcessingOperational Configurationerror handling
0 likes · 7 min read
Error Message Governance System: A Frontend Solution for Better User Experience
php Courses
php Courses
Nov 25, 2023 · Backend Development

PHP Error Handling Functions: Usage, Examples, and Best Practices

This article explains PHP's error handling functions—including error_reporting, set_error_handler, trigger_error, and error_log—describes their purposes, shows how to define custom handlers, and provides a complete code example demonstrating error level configuration, logging, email alerts, and user-friendly messages.

ExceptionPHPerror handling
0 likes · 7 min read
PHP Error Handling Functions: Usage, Examples, and Best Practices
Selected Java Interview Questions
Selected Java Interview Questions
Nov 23, 2023 · Backend Development

Common Issues and Solutions When Integrating Third‑Party APIs

This article outlines typical problems such as unreachable domains, signature errors, token expiration, timeouts, HTTP 500/404 responses, pagination inconsistencies, undocumented field changes, and billing issues, and provides practical troubleshooting and mitigation strategies for backend developers working with third‑party APIs.

API integrationRetry MechanismSignature
0 likes · 15 min read
Common Issues and Solutions When Integrating Third‑Party APIs
php Courses
php Courses
Nov 18, 2023 · Backend Development

Understanding PHP Exception Handling with Try/Catch/Finally

This article explains how PHP developers can use try, catch, and finally blocks, along with union types and multiple catch clauses, to gracefully handle errors and exceptions, ensuring robust and maintainable backend applications.

Exception Handlingerror handlingfinally
0 likes · 7 min read
Understanding PHP Exception Handling with Try/Catch/Finally
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Nov 9, 2023 · Frontend Development

Elegant Handling of async/await Exceptions in JavaScript

This article examines why try‑catch is often overused for async/await errors, outlines common scenarios that cause request failures, and presents two cleaner alternatives—using Promise .catch with conditional logic and the lightweight await‑to‑js utility—to simplify error handling and reduce code redundancy.

JavaScriptasyncawait
0 likes · 7 min read
Elegant Handling of async/await Exceptions in JavaScript
21CTO
21CTO
Nov 4, 2023 · Fundamentals

Is Python a Compiled or Interpreted Language? Uncover the Truth

This article explores whether Python is a compiled or interpreted language by examining its compilation stages, error‑message generation, differences across Python versions, and the broader distinction between static and dynamic language features, ultimately showing that Python combines both compilation and interpretation.

CompilationInterpretationPython
0 likes · 17 min read
Is Python a Compiled or Interpreted Language? Uncover the Truth
php Courses
php Courses
Nov 4, 2023 · Backend Development

Implementing Logging and Error Tracking in PHP Projects

This guide explains how to set up log files, configure PHP's error_log directive, use the error_log function, enable full error reporting, and apply try‑catch blocks or custom error handlers to effectively record and trace errors in PHP applications.

PHPerror handling
0 likes · 4 min read
Implementing Logging and Error Tracking in PHP Projects
JD Retail Technology
JD Retail Technology
Oct 23, 2023 · Backend Development

Understanding Java Exceptions and Custom Assertions for Elegant Error Handling

This article explains Java's Error and Exception hierarchy, differentiates compile-time and runtime exceptions, demonstrates standard try‑catch handling, shows how to throw custom exceptions, and introduces custom assertion interfaces that combine readable assertions with tailored exception types for cleaner backend code.

Custom AssertionExceptionbackend
0 likes · 9 min read
Understanding Java Exceptions and Custom Assertions for Elegant Error Handling
Python Programming Learning Circle
Python Programming Learning Circle
Oct 21, 2023 · Fundamentals

Highlights of Python 3.12: Improved Error Messages, Expanded f‑string Capabilities, and Type Annotation Enhancements

Python 3.12 introduces enhanced error messages for NameError, SyntaxError, and ImportError, expands f‑string capabilities with unrestricted expressions and deeper nesting, adds inline collection optimizations, and brings numerous type‑annotation improvements such as TypedDict unpacking, the override decorator, and new parameter‑type syntax.

3.12PEPerror handling
0 likes · 12 min read
Highlights of Python 3.12: Improved Error Messages, Expanded f‑string Capabilities, and Type Annotation Enhancements