Tagged articles
error-handling
25 articles · Page 1 of 1
This article reveals common logging pitfalls that cause silent failures, explains three levels of logging maturity from rookie to expert, and provides concrete Java code examples, structured‑logging techniques, MDC usage, and automated alerting to turn logs into a powerful observability tool.
LoggingMDCObservability
0 likes · 14 min read

This article presents ten practical Go code‑review guidelines—covering error handling, premature abstraction, concurrency, scope, safety, early returns, file organization, declaration order, semantic naming, and purposeful comments—to help teams write more reliable and maintainable backend code.
Gobest-practicescode review
0 likes · 9 min read

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.
SDKerror-handling
0 likes · 31 min read

This article explains how PHP 7 and PHP 8 handle division‑by‑zero errors, outlines common causes of zero‑division, and presents six practical techniques—including input validation, conditional checks, ternary operators, custom error handlers, try‑catch blocks, and avoiding the @ operator—supported by clear code examples and a real‑world financial‑app case study.
BackendExceptiondivision-by-zero
0 likes · 6 min read

This article explores practical Go backend development techniques, covering project organization, package naming, internal packages, init usage, layer separation (controller, service, dao), dependency injection, global variable pitfalls, observability with logging, tracing and monitoring, comprehensive error handling, and DAO layer automation.
BackendObservabilitydependency-injection
0 likes · 23 min read

This article explains PHP's throw keyword, covering exception fundamentals, the try‑catch mechanism, the exception class hierarchy, and provides detailed code examples demonstrating how to throw and handle both built‑in and custom exceptions for robust error management.
BackendThrowcode-example
0 likes · 5 min read

This article explains Go's error‑handling shortcomings, introduces the popular third‑party pkg/errors library, demonstrates how to wrap errors with additional context and stack traces, and provides a detailed line‑by‑line walkthrough of its source files (errors.go, go113.go, stack.go) to reveal the underlying design and implementation.
error-handlingerrorsgo13
0 likes · 25 min read

This article introduces ten lesser‑known PHP tricks—including memory management, Composer dependency handling, the built‑in web server, anonymous classes, try‑catch error handling, generators, traits, built‑in functions, PDO, and namespaces—to help developers write more efficient, maintainable, and secure code.
BackendComposerPDO
0 likes · 9 min read

This article describes how a large enterprise front‑end team implements real‑time monitoring, scheduled inspections, alert strategies, performance metrics, error handling, custom reporting, and mobile/native monitoring to ensure system stability, improve user experience, and continuously optimize application performance.
alertingerror-handlingfrontend
0 likes · 23 min read

This article introduces the PrettyError library for Python, explains how to install it, demonstrates quick start examples, and details its key features such as colored output, timestamps, configurable stack traces, code context, and environment‑based settings to make debugging faster and more readable.
ConfigurationLoggingerror-handling
0 likes · 9 min read

This article explains the PHP curl_errno() function, shows how to use it to obtain cURL error codes with example code, lists common error numbers, and demonstrates proper error handling to improve application stability.
BackendNetworkingcurl
0 likes · 4 min read

Go 1.13 introduced new error‑handling utilities—Unwrap methods, errors.Is and errors.As functions, and the %w formatting verb—allowing developers to wrap, inspect, and propagate underlying errors more effectively, with examples illustrating legacy patterns, custom error types, and best‑practice decisions on when to wrap.
error-handlingerrors packageerrors.As
0 likes · 13 min read

This article explains how Go's defer statement works, when it may be skipped, how return statements interact with it, and provides practical guidelines to ensure reliable resource cleanup in robust Go programs.
Backendbest-practicesdefer
0 likes · 5 min read

This guide explains how to customize Spring Boot's default error handling—including enabling RFC‑7807 problem details, extending BasicErrorController, using @ControllerAdvice for JSON responses, creating custom HTML error pages, and registering error pages directly with the embedded servlet container.
BackendCustom Error Pageerror-handling
0 likes · 7 min read

This article introduces a lightweight Go library named Retry that provides functional‑programming‑style retry mechanisms, explains the pain points of manual loop retries, describes its architecture, backoff algorithms, configuration options, and demonstrates both singleton and factory usage with complete code examples.
LibraryRetrybackoff
0 likes · 12 min read

This article introduces essential PHP debugging methods—including enabling error reporting, logging, breakpoints with Xdebug, try‑catch exception handling, and using var_dump/print_r—providing practical code examples to help developers efficiently locate and fix errors.
LoggingXdebugdebugging
0 likes · 5 min read

This article explains Python's exception handling with try‑except‑finally blocks, demonstrates common error‑handling patterns, and presents ten practical debugging techniques—including print statements, assertions, logging, breakpoints, traceback, unit testing, and profiling—each illustrated with clear code examples.
Exception Handlingerror-handlingprogramming-fundamentals
0 likes · 6 min read

This article explains the PHP fclose() function, demonstrates how to close a single file, handle errors, close multiple files in a loop, and provides important usage notes with clear code examples for reliable file management.
Tutorialerror-handlingfclose
0 likes · 4 min read

This article explains Python decorators, a powerful feature for modifying functions or classes, and provides ten practical custom decorators—including @timer, @memoize, @validate_input, @log_results, @suppress_errors, @validate_output, @retry, @visualize_results, @debug, and @deprecated—each with clear explanations and complete code samples.
CachingLoggingPython
0 likes · 9 min read

This article explains the Throwable interface, the Error and Exception base classes, their properties and methods, provides a hierarchical overview of PHP exception types, and outlines the upcoming PHP 8.3 release schedule and repository details.
BackendErrorException
0 likes · 6 min read

This article explains Python error handling using try...except...finally, demonstrates how to interpret tracebacks, and introduces debugging techniques such as print statements, assertions, and the pdb module, providing code examples and practical guidance for developers.
PDBPythondebugging
0 likes · 7 min read

This article explains how to create a front‑end monitoring client that captures global JavaScript errors, tracks resource loading and page performance metrics, intercepts AJAX and fetch requests, gathers PV/UV statistics, and reports data using various strategies such as image beacons, POST, and IndexedDB storage.
AJAXIndexedDBbeacon
0 likes · 14 min read

This article explains how to configure Kafka Connect error handling options—including stopping on failure, silently ignoring malformed messages, and routing failed records to a dead‑letter queue—while providing practical examples, monitoring techniques, and code snippets for robust data pipelines.
ConfigurationDead Letter Queueerror-handling
0 likes · 21 min read

This article reviews the major PHP7 enhancements—including scalar type declarations, the null‑coalescing operator, anonymous classes, improved error handling, the spaceship operator, and array constants—providing clear explanations and code examples for each feature.
Anonymous ClassBackenderror-handling
0 likes · 4 min read


ITPUBMar 29, 2016 · Fundamentals
The article explains Go's lack of try/catch, demonstrates how to use error return values with examples, shows how to create custom error types, and presents an optimized pattern that aggregates error checks to produce cleaner, more efficient code without performance loss.
BackendGocustom error
0 likes · 5 min read
