Tagged articles
396 articles
Page 2 of 4
Satori Komeiji's Programming Classroom
Satori Komeiji's Programming Classroom
Nov 7, 2024 · Fundamentals

How Does Python’s VM Implement and Throw Exceptions?

The article dissects Python’s exception mechanism, showing how the interpreter and virtual machine raise, record, and propagate errors via thread‑state objects, traceback chains, and C‑level APIs, while also illustrating generator return values, Java checked exceptions, and the final printing of tracebacks.

C APIException HandlingRuntime
0 likes · 16 min read
How Does Python’s VM Implement and Throw Exceptions?
Selected Java Interview Questions
Selected Java Interview Questions
Nov 5, 2024 · Backend Development

Best Practices for Handling Exceptions in Java

This article presents comprehensive Java exception‑handling guidelines, covering why exceptions should not be ignored, how to use global handlers, capture specific exceptions, properly close I/O streams, employ try‑with‑resources, avoid returning in finally blocks, log detailed errors, and design custom exceptions for clean, maintainable backend code.

Exception HandlingJavaSpringBoot
0 likes · 13 min read
Best Practices for Handling Exceptions in Java
Top Architecture Tech Stack
Top Architecture Tech Stack
Nov 5, 2024 · Backend Development

When to Place try‑catch Inside or Outside a for Loop in Java

This article explains the functional differences, performance impact, and practical considerations of placing a try‑catch block either outside or inside a Java for loop, illustrating each approach with code examples, execution results, and recommendations based on business requirements.

Backend DevelopmentException HandlingJava
0 likes · 6 min read
When to Place try‑catch Inside or Outside a for Loop in Java
Code Ape Tech Column
Code Ape Tech Column
Oct 30, 2024 · Backend Development

Project Initialization, Version Management, and Core Scaffold for a Spring Boot Application

This article walks through setting up a Spring Boot project, explains version compatibility between Spring Cloud, Spring Boot, and Kafka, demonstrates common pitfalls, and provides essential scaffold code such as global exception handling, logging, CORS configuration, Swagger setup, and response wrappers.

Exception HandlingJavaSpring Boot
0 likes · 9 min read
Project Initialization, Version Management, and Core Scaffold for a Spring Boot Application
Su San Talks Tech
Su San Talks Tech
Oct 24, 2024 · Backend Development

Mastering Java Exception Handling: 13 Best Practices for Cleaner Code

This guide walks through common pitfalls and 13 practical best‑practice techniques for handling exceptions in Java, covering everything from avoiding ignored errors and using global handlers to proper logging, try‑with‑resources, custom exceptions, and avoiding exception‑driven control flow.

Exception HandlingJavaSpringBoot
0 likes · 13 min read
Mastering Java Exception Handling: 13 Best Practices for Cleaner Code
Architect
Architect
Oct 20, 2024 · Backend Development

Spring Boot Project Setup: Initialization, Version Management, and Core Scaffold Code

This article walks through creating a Spring Boot project, handling IDE setup, managing Spring Cloud and Kafka version compatibility, using Maven for dependency management, and provides essential scaffold code such as global exception handling, logging aspects, CORS configuration, and Swagger integration.

CORSException HandlingSpring Boot
0 likes · 12 min read
Spring Boot Project Setup: Initialization, Version Management, and Core Scaffold Code
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.

Error HandlingException HandlingPython
0 likes · 8 min read
Understanding Exception Handling in Python
Java Tech Enthusiast
Java Tech Enthusiast
Oct 10, 2024 · Fundamentals

Understanding Try-with-Resources in Java: A Comprehensive Guide

This guide explains Java's try-with-resources statement introduced in JDK 7, showing how it automatically closes AutoCloseable resources, eliminates boilerplate finally blocks, manages closure order and suppressed exceptions, avoids common decorator pitfalls, and provides best‑practice examples for robust production code.

Exception HandlingJDK7Java
0 likes · 10 min read
Understanding Try-with-Resources in Java: A Comprehensive Guide
php Courses
php Courses
Oct 8, 2024 · Backend Development

PHP Logging and Error Debugging Techniques

This article explains how to use PHP's built‑in functions and custom helpers for logging program execution and debugging errors, covering error_log(), custom log functions, error_reporting settings, try‑catch exception handling, and a comprehensive example that combines logging with exception tracking.

Exception HandlingPHPerror-debugging
0 likes · 8 min read
PHP Logging and Error Debugging Techniques
Test Development Learning Exchange
Test Development Learning Exchange
Oct 3, 2024 · Fundamentals

Master Python OOP: Classes, Inheritance, Magic Methods & More

This comprehensive guide walks through Python's object‑oriented programming essentials, covering class definitions, attributes, common magic methods, inheritance, polymorphism, exception handling, as well as module and package creation and usage, complete with clear code examples for each concept.

Exception HandlingInheritanceModules
0 likes · 12 min read
Master Python OOP: Classes, Inheritance, Magic Methods & More
Architecture Digest
Architecture Digest
Sep 26, 2024 · Backend Development

Should try‑catch be placed inside or outside a for loop in Java?

The article explains the trade‑offs of placing a Java try‑catch block inside versus outside a for‑loop, illustrating both approaches with code examples, and advises choosing the placement based on whether you need unified error handling or per‑iteration resilience, while also noting a free book promotion.

Backend DevelopmentException HandlingJava
0 likes · 4 min read
Should try‑catch be placed inside or outside a for loop in Java?
Java Backend Technology
Java Backend Technology
Sep 26, 2024 · Backend Development

How to Quickly Bootstrap a Spring Boot Project and Avoid Common Version Pitfalls

This guide walks you through the pain points of environment setup, shows step‑by‑step creation of a Spring Boot project, explains version compatibility between Spring Cloud, Spring Boot and Kafka, and provides ready‑to‑use Maven configurations, global exception handling, logging, CORS, Swagger, and a curated list of useful development tools.

Exception HandlingJavaSpring Boot
0 likes · 11 min read
How to Quickly Bootstrap a Spring Boot Project and Avoid Common Version Pitfalls
Python Programming Learning Circle
Python Programming Learning Circle
Sep 20, 2024 · Fundamentals

Java vs Python: A Comparative Look at Syntax, Exception Handling, and Use Cases

The article compares Java and Python, highlighting Java’s strict, verbose syntax and robust exception handling versus Python’s concise, flexible style, illustrating differences with code examples and discussing appropriate scenarios where each language excels, from large-scale enterprise projects to quick scripting tasks.

ComparisonException HandlingJava
0 likes · 6 min read
Java vs Python: A Comparative Look at Syntax, Exception Handling, and Use Cases
Architecture Digest
Architecture Digest
Sep 19, 2024 · Backend Development

Using Java 8 Functional Interfaces to Simplify Conditional Logic

This article explains how Java 8 functional interfaces such as Supplier, Consumer, Runnable, and custom interfaces can replace repetitive if‑else statements, streamline exception handling, and improve code readability in backend development.

BackendException HandlingFunctional Interface
0 likes · 5 min read
Using Java 8 Functional Interfaces to Simplify Conditional Logic
macrozheng
macrozheng
Sep 19, 2024 · Backend Development

Refactor Spring Boot Controllers for Clean Architecture and Unified Responses

This article explains the essential duties of a Spring MVC Controller, identifies common pitfalls such as duplicated validation and inconsistent responses, and demonstrates how to introduce a unified result wrapper, ResponseBodyAdvice, proper message‑converter ordering, JSR‑303 validation, custom validators, and global exception handling to produce concise, maintainable backend code.

ControllerException HandlingJava
0 likes · 19 min read
Refactor Spring Boot Controllers for Clean Architecture and Unified Responses
Architect
Architect
Aug 22, 2024 · Backend Development

How to Turn Bloated Spring Controllers into Clean, Maintainable Code

The article compares messy Spring MVC controllers packed with try‑catch, field checks, and business logic to concise, well‑structured versions that use @Valid, service delegation, and global exception handling, and provides a step‑by‑step refactoring guide.

@ValidCode CleanlinessController Refactoring
0 likes · 9 min read
How to Turn Bloated Spring Controllers into Clean, Maintainable Code
Architecture Digest
Architecture Digest
Aug 19, 2024 · Backend Development

Java 8 Functional Interfaces: Simplifying Conditional Logic with Function, Supplier, Consumer, and Runnable

This article explains how Java 8 functional interfaces such as Function, Supplier, Consumer, and Runnable can replace repetitive if‑else statements, providing code examples for exception handling, branch processing, and present‑or‑else logic to improve readability and maintainability in backend development.

Backend DevelopmentException HandlingFunctionalInterface
0 likes · 6 min read
Java 8 Functional Interfaces: Simplifying Conditional Logic with Function, Supplier, Consumer, and Runnable
Code Ape Tech Column
Code Ape Tech Column
Aug 16, 2024 · Backend Development

Using Java 8 Functional Interfaces to Replace if…else Statements

This article demonstrates how Java 8’s functional interfaces—such as Supplier, Consumer, Runnable, and Function—can replace repetitive if‑else statements for exception handling and branch logic, providing clear code examples, custom interfaces, and utility methods to simplify backend development.

BackendException HandlingFunctional Interface
0 likes · 9 min read
Using Java 8 Functional Interfaces to Replace if…else Statements
macrozheng
macrozheng
Aug 14, 2024 · Backend Development

How to Refactor Bloated Spring Controllers into Clean, Maintainable Code

This article demonstrates how to transform overly complex Spring Boot controllers—filled with try‑catch blocks, validation logic, and business code—into elegant, concise implementations by applying @Valid, separating concerns, and using global exception handling, illustrated with side‑by‑side code comparisons and practical tips for cleaner backend development.

Backend DevelopmentController RefactoringException Handling
0 likes · 10 min read
How to Refactor Bloated Spring Controllers into Clean, Maintainable Code
macrozheng
macrozheng
Aug 14, 2024 · Backend Development

When to Put try‑catch Inside or Outside a for Loop? Practical Insights

This article explains the different effects of placing a try‑catch block inside versus outside a for loop in Java, covering usage scenarios, performance impact, memory consumption, and practical recommendations for choosing the appropriate approach during development.

Backend DevelopmentException HandlingJava
0 likes · 6 min read
When to Put try‑catch Inside or Outside a for Loop? Practical Insights
macrozheng
macrozheng
Aug 1, 2024 · Backend Development

Refactor Spring Boot Controllers for Cleaner Code and Unified Responses

This article explains the role of Controllers in Spring Boot, identifies common pitfalls such as duplicated validation and inconsistent responses, and demonstrates how to refactor them using a unified response structure, ResponseBodyAdvice, proper message converter ordering, JSR‑303 validation, custom validators, and centralized exception handling.

ControllerException HandlingParameter Validation
0 likes · 19 min read
Refactor Spring Boot Controllers for Cleaner Code and Unified Responses
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.

Error HandlingException Handling
0 likes · 5 min read
Optimizing Exception Handling in PHP
Top Architect
Top Architect
Jul 6, 2024 · Backend Development

Improving Controller Layer Logic, Unified Response Structure, and Parameter Validation in Spring Boot

This article explains how to design a clean Controller layer in Spring Boot, introduces a unified response format with Result and ResponseBodyAdvice, demonstrates parameter validation using JSR‑303 and Spring Validation, and shows custom validation annotations and global exception handling to keep controller code concise and maintainable.

ControllerException HandlingJava
0 likes · 18 min read
Improving Controller Layer Logic, Unified Response Structure, and Parameter Validation in Spring Boot
Java Architect Essentials
Java Architect Essentials
Jul 3, 2024 · Backend Development

From Messy to Elegant Spring Boot Controllers: Validation, Refactoring, and Global Exception Handling

This article demonstrates how to transform overly complex Spring Boot controllers—filled with repetitive try‑catch blocks and manual field checks—into clean, maintainable code by applying @Valid validation, reducing boilerplate, and implementing a centralized exception‑handling strategy.

Backend DevelopmentControllerException Handling
0 likes · 9 min read
From Messy to Elegant Spring Boot Controllers: Validation, Refactoring, and Global Exception Handling
Top Architect
Top Architect
Jun 19, 2024 · Backend Development

Standardizing Java API Interfaces and Controller Practices with ResultBean and AOP

The article explains common pitfalls in Java API design—such as inconsistent return formats, missing error handling, unnecessary parameters, and complex inputs—then proposes a unified ResultBean response model, controller conventions, and AOP-based logging and exception handling to improve code readability and maintainability.

ControllerException HandlingJava
0 likes · 12 min read
Standardizing Java API Interfaces and Controller Practices with ResultBean and AOP
Python Programming Learning Circle
Python Programming Learning Circle
Jun 15, 2024 · Fundamentals

Six Practical Python Tips to Improve Coding Efficiency

This article presents six practical Python techniques—including exception handling, list comprehensions, regular expressions, web scraping with BeautifulSoup, lambda functions, and simple data visualizations using matplotlib—to help developers write cleaner, more efficient code and enhance their programming workflow.

Data visualizationException HandlingPython
0 likes · 6 min read
Six Practical Python Tips to Improve Coding Efficiency
Test Development Learning Exchange
Test Development Learning Exchange
Jun 11, 2024 · Fundamentals

Comprehensive Guide to Python Exception Handling

This article explains Python exception handling fundamentals, covering basic try‑except, multiple exception catches, else/finally blocks, custom exceptions, exception propagation, raise‑from chaining, context manager handling, assert statements, generic suppression, and selective suppression with contextlib.

AssertException Handlingcontext manager
0 likes · 4 min read
Comprehensive Guide to Python Exception Handling
Java High-Performance Architecture
Java High-Performance Architecture
May 30, 2024 · Backend Development

How to Build a Clean, Robust Java Controller Layer with Unified Responses and Validation

This article explains how to design an effective Java controller layer by separating concerns, introducing a unified response structure, applying global response wrapping, leveraging Spring's validation mechanisms, and handling custom exceptions to produce concise, maintainable backend code.

Backend DevelopmentControllerException Handling
0 likes · 18 min read
How to Build a Clean, Robust Java Controller Layer with Unified Responses and Validation
Java Architect Essentials
Java Architect Essentials
May 20, 2024 · Backend Development

Standardizing Spring Boot Controller Layer: Parameter Reception, Unified Status Codes, Validation, Response Wrapping, and Exception Handling

This article provides a comprehensive guide to standardizing the Spring Boot controller layer by explaining how to receive parameters, define unified status codes, apply validation annotations, wrap responses consistently, and handle exceptions globally, all illustrated with practical Java code examples.

BackendControllerException Handling
0 likes · 19 min read
Standardizing Spring Boot Controller Layer: Parameter Reception, Unified Status Codes, Validation, Response Wrapping, and Exception Handling
Su San Talks Tech
Su San Talks Tech
May 16, 2024 · Backend Development

Does Try‑Catch Inside a Java Loop Really Slow Down Performance?

A developer debates whether placing a try‑catch block inside a Java for‑loop impacts performance, runs JMH benchmarks comparing try‑catch inside the loop versus around it, examines bytecode differences, references Effective Java’s warnings, and concludes the overhead is minimal unless exceptions are actually thrown.

BenchmarkException HandlingJMH
0 likes · 7 min read
Does Try‑Catch Inside a Java Loop Really Slow Down Performance?
DaTaobao Tech
DaTaobao Tech
May 8, 2024 · Fundamentals

Comprehensive Overview of Java Fundamentals

This article surveys Java fundamentals, explaining OOP principles, differences from C++, polymorphism, static/final keywords, abstract classes versus interfaces, generics with type erasure, reflection, exception handling, core data structures, HashMap internals, serialization, key design patterns, and essential language constructs for developers.

Exception HandlingGenericsHashMap
0 likes · 16 min read
Comprehensive Overview of Java Fundamentals
Architect's Guide
Architect's Guide
May 1, 2024 · Fundamentals

Effect of Placing try‑catch Inside vs Outside a for Loop in Java

This article explains the behavioral and performance differences of positioning a try‑catch block either outside or inside a Java for‑loop, illustrating each case with code examples, execution results, memory analysis, and practical recommendations for handling exceptions during batch processing.

/loopException HandlingJava
0 likes · 5 min read
Effect of Placing try‑catch Inside vs Outside a for Loop in Java
Alibaba Cloud Developer
Alibaba Cloud Developer
Apr 15, 2024 · Backend Development

Mastering Java Pitfalls: NPE, Thread Safety, and Performance Best Practices

This article compiles common Java bugs such as NullPointerException, thread‑safety issues, improper exception handling, and performance traps, and provides practical solutions including annotations, Optional, MapStruct, concurrent utilities, immutable objects, proper resource management, and Spring transaction safeguards.

Exception Handlingbest practicesconcurrency
0 likes · 23 min read
Mastering Java Pitfalls: NPE, Thread Safety, and Performance Best Practices
Test Development Learning Exchange
Test Development Learning Exchange
Apr 12, 2024 · Fundamentals

10 Essential Python Flow‑Control Examples

This article presents ten practical Python code examples that illustrate conditional statements, loops, list comprehensions, and exception handling, helping readers master the core flow‑control constructs essential for writing clear and efficient programs.

Exception HandlingFlow ControlLoops
0 likes · 5 min read
10 Essential Python Flow‑Control Examples
Java Captain
Java Captain
Mar 25, 2024 · Fundamentals

Understanding Exception Handling in Java SE

This article provides a comprehensive guide to Java SE exception handling, covering the concepts and classifications of checked and unchecked exceptions, the try‑catch‑finally structure, custom exception creation, exception chaining, and best‑practice recommendations for writing robust, maintainable Java code.

Exception HandlingJavabest practices
0 likes · 6 min read
Understanding Exception Handling in Java SE
Java Captain
Java Captain
Mar 1, 2024 · Fundamentals

Getting Started with Java: Fundamentals for Beginners

This article introduces Java’s origins, key characteristics, environment setup, basic syntax, object‑oriented concepts, exception handling, common libraries, and simple practice projects, providing beginners with a comprehensive foundation to start programming in Java.

Exception HandlingIDEJava
0 likes · 5 min read
Getting Started with Java: Fundamentals for Beginners
Java Backend Technology
Java Backend Technology
Mar 1, 2024 · Backend Development

How Graceful Response Simplifies Spring Boot API Development

Graceful Response is a Spring Boot component that provides unified response wrapping, global exception handling, and custom error codes, helping developers reduce boilerplate, improve code readability, and accelerate API development while maintaining consistent error responses.

APIException HandlingJava
0 likes · 10 min read
How Graceful Response Simplifies Spring Boot API Development
Python Programming Learning Circle
Python Programming Learning Circle
Feb 27, 2024 · Fundamentals

20 Essential Python Exception Handling Techniques

This article presents twenty practical Python exception‑handling techniques—from basic try‑except structures and custom exceptions to advanced concepts like exception chaining, dynamic exception classes, and generator cleanup—providing developers with clear examples and explanations to write more robust, readable, and Pythonic code.

Exception HandlingPythonerror-management
0 likes · 11 min read
20 Essential Python Exception Handling Techniques
php Courses
php Courses
Feb 2, 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, adding finally blocks, and leveraging throw and set_exception_handler for comprehensive exception management.

BackendException HandlingPHP
0 likes · 4 min read
Optimizing Exception Handling in PHP
Architecture Digest
Architecture Digest
Feb 1, 2024 · Backend Development

Best Practices for Designing the Controller Layer in Spring Boot: Unified Response, Validation, and Exception Handling

This article explains how to build a clean and maintainable Spring Boot controller layer by separating responsibilities, unifying response structures, applying comprehensive parameter validation (including custom rules), and implementing centralized exception handling to keep business logic concise and robust.

Backend DevelopmentControllerException Handling
0 likes · 18 min read
Best Practices for Designing the Controller Layer in Spring Boot: Unified Response, Validation, and Exception Handling
Architect
Architect
Jan 22, 2024 · Backend Development

Designing a Unified API Response and Global Exception Handling in Spring Boot

This article walks through creating a standardized JSON response structure with a Result enum and wrapper class, demonstrates how to return it from controllers, implements a @ControllerAdvice‑based global exception handler with custom exceptions, and configures Logback for comprehensive logging in Spring Boot applications.

Exception HandlingJavaSpring Boot
0 likes · 17 min read
Designing a Unified API Response and Global Exception Handling in Spring Boot
Tencent Cloud Developer
Tencent Cloud Developer
Jan 19, 2024 · Backend Development

Should You Use Exceptions in Modern C++? A Deep Dive into Consistency, Coroutines, and Real‑World Trade‑offs

This article revisits a 2017 decision to ban exceptions in a large codebase, examines the technical and organizational reasons behind that rule, analyzes exception mechanics, coroutine interactions, and performance impacts with concrete C++ examples, and finally proposes a pragmatic action plan for safely adopting exception‑driven design.

CConsistencyException Handling
0 likes · 33 min read
Should You Use Exceptions in Modern C++? A Deep Dive into Consistency, Coroutines, and Real‑World Trade‑offs
Java Captain
Java Captain
Jan 15, 2024 · Backend Development

Custom Exception Handling for Feign Calls in Spring Distributed Services

This article explains how to implement unified, user‑friendly exception handling for Feign‑based service calls in a Spring distributed architecture by customizing ErrorDecoder, defining result objects, and using global @ControllerAdvice to return clear error codes and messages to front‑end users.

BackendException HandlingJava
0 likes · 12 min read
Custom Exception Handling for Feign Calls in Spring Distributed Services
Java High-Performance Architecture
Java High-Performance Architecture
Jan 11, 2024 · Backend Development

Master Unified Exception Handling in Spring Boot: Clean Code with Assertions and Enums

This article explains how to replace repetitive try‑catch blocks in Java Spring applications with a unified exception handling strategy using @ControllerAdvice, custom Assert utilities, and enum‑based error codes, providing clean, maintainable code and consistent API responses.

AssertBackend DevelopmentException Handling
0 likes · 23 min read
Master Unified Exception Handling in Spring Boot: Clean Code with Assertions and Enums
Tencent Cloud Developer
Tencent Cloud Developer
Jan 3, 2024 · Backend Development

Exception Handling: Requirements, Modeling, and Best Practices in Backend Development

The article outlines backend exception‑handling best practices, detailing business requirements such as memory‑safe multithreaded throws, clear separation of concerns, framework fallback strategies, simple macro‑based APIs, unified error‑code monitoring, rich debugging information, extensible type‑erased models, and appropriate handling of critical, recoverable, and checked exceptions across development and production environments.

C++DebuggingException Handling
0 likes · 28 min read
Exception Handling: Requirements, Modeling, and Best Practices in Backend Development
Architect
Architect
Jan 2, 2024 · Fundamentals

Should try‑catch Live Inside or Outside a Loop? A Detailed Java Analysis

This article compares placing a try‑catch block inside versus outside a Java for‑loop, showing concrete code examples, execution results, memory‑usage measurements, and practical recommendations based on how exceptions affect loop termination and performance.

Exception HandlingJavaMemory Usage
0 likes · 7 min read
Should try‑catch Live Inside or Outside a Loop? A Detailed Java Analysis
Selected Java Interview Questions
Selected Java Interview Questions
Dec 29, 2023 · Backend Development

Common Intermittent Issues in Backend Development and Their Case Studies

The article examines various intermittent problems that surface only in production environments—such as concurrency bugs, cache inconsistencies, dirty data, boundary‑value failures, and resource constraints—provides concrete code examples for each, and shares practical lessons to help developers diagnose and prevent these elusive issues.

Exception Handlingcachingintermittent bugs
0 likes · 15 min read
Common Intermittent Issues in Backend Development and Their Case Studies
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Dec 25, 2023 · Backend Development

Comprehensive Guide to Interface Exception Handling in Spring Boot

This article explains how to classify interface exceptions, implement unified handling using Spring Boot's @ControllerAdvice and custom ErrorController, and provides practical code examples for business, system, client, and filter exceptions, including redirect and error page strategies.

Backend DevelopmentControllerAdviceErrorController
0 likes · 19 min read
Comprehensive Guide to Interface Exception Handling in Spring Boot
Python Programming Learning Circle
Python Programming Learning Circle
Dec 21, 2023 · Fundamentals

Advanced Python Concepts: Exception Handling, Collections, itertools, Lambdas, Decorators, Generators, and More

This article presents a comprehensive guide to advanced Python topics—including exception handling, the collections and itertools modules, lambda functions, decorators, generators, process/thread basics, dunder methods, logging, and context managers—providing code examples and explanations to help developers deepen their expertise.

Exception HandlingPython
0 likes · 12 min read
Advanced Python Concepts: Exception Handling, Collections, itertools, Lambdas, Decorators, Generators, and More
Tencent Cloud Developer
Tencent Cloud Developer
Dec 19, 2023 · Fundamentals

Object-Oriented Analysis and Design: Exception Handling, RAII, and Error‑Code Practices

The article explains how object‑oriented analysis and design should treat exceptions by using RAII for automatic resource cleanup, avoiding error‑code patterns, and adopting a throw‑by‑default policy with strongly‑typed exceptions, illustrating concepts with C++ and VB.NET examples and framework design recommendations.

C++Error CodesException Handling
0 likes · 38 min read
Object-Oriented Analysis and Design: Exception Handling, RAII, and Error‑Code Practices
dbaplus Community
dbaplus Community
Dec 13, 2023 · Fundamentals

How to Design Scalable, Maintainable Software Architecture: From Principles to Practice

This article explores how to build a robust engineering architecture by prioritizing product value, defining clear layered and DDD structures, selecting appropriate technologies, and establishing standards for exception, logging, monitoring, and team collaboration to achieve scalability, maintainability, reliability, security, and high performance.

Domain-Driven DesignException HandlingMicroservices
0 likes · 27 min read
How to Design Scalable, Maintainable Software Architecture: From Principles to Practice
Java High-Performance Architecture
Java High-Performance Architecture
Dec 9, 2023 · Backend Development

Simplify Spring Boot API Development with Graceful Response

Graceful Response is a Spring Boot component that unifies response wrapping, global exception handling, and custom error codes, helping developers reduce boilerplate, improve readability, and accelerate API development while supporting validation and customizable response styles.

APIException HandlingGraceful Response
0 likes · 12 min read
Simplify Spring Boot API Development with Graceful Response
Top Architect
Top Architect
Dec 5, 2023 · Backend Development

Unified Exception Handling and Assertion Practices in Spring Boot Backend Development

This article explains how to implement unified exception handling in Spring Boot applications using @ControllerAdvice, custom Assert utilities, and enum-based error codes, demonstrating code examples, response structures, and best practices for reducing try-catch clutter, improving readability, and handling various HTTP and business exceptions consistently.

AssertException HandlingJava
0 likes · 24 min read
Unified Exception Handling and Assertion Practices in Spring Boot Backend Development
Architect
Architect
Dec 4, 2023 · Backend Development

Mastering Unified Exception Handling in Spring: Clean Code, Better Readability

This article analyzes the problem of scattered try‑catch blocks in Java services, explains why per‑controller exception methods are cumbersome, and presents a unified exception handling solution using @ControllerAdvice, custom Assert utilities, enum‑based error codes, and environment‑aware response formatting, all illustrated with concrete code examples and test results.

AssertBackendException Handling
0 likes · 24 min read
Mastering Unified Exception Handling in Spring: Clean Code, Better Readability
Architecture Digest
Architecture Digest
Nov 28, 2023 · Backend Development

Unified User Login Permission Validation, Exception Handling, and Data Formatting in Spring Boot

This article demonstrates how to implement unified user login permission checks, centralized exception handling, and consistent response formatting in Spring Boot using AOP, HandlerInterceptor, @ControllerAdvice, and ResponseBodyAdvice, providing step‑by‑step code examples and configuration details.

Backend DevelopmentException HandlingInterceptor
0 likes · 12 min read
Unified User Login Permission Validation, Exception Handling, and Data Formatting in Spring Boot
Architect's Guide
Architect's Guide
Nov 27, 2023 · Backend Development

Unified Exception Handling in Spring Boot: Design, Implementation, and Best Practices

This article provides a comprehensive guide to designing and implementing a unified exception handling framework in Spring Boot, covering the use of @ControllerAdvice, custom assertion interfaces, enum‑based error codes, standardized response structures, and practical testing scenarios to improve code readability and robustness.

BackendException HandlingJava
0 likes · 20 min read
Unified Exception Handling in Spring Boot: Design, Implementation, and Best Practices
php Courses
php Courses
Nov 24, 2023 · Backend Development

Best Practices for Exception Handling and Error Logging in PHP

This article explains how to use PHP's try‑catch mechanism and the error_log() function to handle exceptions and record error logs, and outlines best‑practice guidelines such as wrapping critical code, logging detailed information, and employing logging libraries like Monolog for reliable backend development.

Error LoggingException HandlingPHP
0 likes · 5 min read
Best Practices for Exception Handling and Error Logging in PHP
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.

Error HandlingException Handlingfinally
0 likes · 7 min read
Understanding PHP Exception Handling with Try/Catch/Finally
Architecture Digest
Architecture Digest
Nov 10, 2023 · Backend Development

Understanding Spring Boot @Async: Usage, Pitfalls, and Best Practices

This article explains how to enable and configure Spring Boot's @Async annotation, demonstrates proper thread‑pool setup, highlights common mistakes such as calling async methods within the same class or mixing with @Transactional, and provides guidance on handling blocking tasks and exceptions for robust asynchronous execution.

AsyncAsynchronousException Handling
0 likes · 10 min read
Understanding Spring Boot @Async: Usage, Pitfalls, and Best Practices
Liangxu Linux
Liangxu Linux
Oct 22, 2023 · Backend Development

How to Eliminate 95% of Try‑Catch Blocks with Unified Exception Handling in Spring

This article explains why excessive try‑catch blocks hurt readability, introduces Spring's @ControllerAdvice and custom Assert utilities combined with enums to create a clean, centralized exception handling framework, and demonstrates the approach with full code examples and practical test scenarios.

AssertBackendException Handling
0 likes · 22 min read
How to Eliminate 95% of Try‑Catch Blocks with Unified Exception Handling in Spring
Open Source Tech Hub
Open Source Tech Hub
Oct 20, 2023 · Backend Development

Master PHP Exception Handling with Tinywan: Install, Configure, and Customize Errors

This guide explains the distinction between exceptions and errors in PHP, shows how to install the Tinywan exception‑handler package, configure it for Webman, use built‑in and custom exception classes, customize JSON responses, and extend the handler for advanced scenarios such as DingTalk notifications.

BackendException Handlingerror-management
0 likes · 9 min read
Master PHP Exception Handling with Tinywan: Install, Configure, and Customize Errors
JD Tech
JD Tech
Oct 11, 2023 · Fundamentals

Key Considerations for Building System Engineering Architecture: Design, Technology Selection, and Consensus

This article comprehensively discusses the essential aspects of constructing a system engineering architecture, emphasizing value‑first decision making, layered and DDD architectural patterns, technology selection criteria, exception handling, logging, monitoring, and the importance of establishing shared consensus among teams.

DDDException HandlingSoftware Architecture
0 likes · 26 min read
Key Considerations for Building System Engineering Architecture: Design, Technology Selection, and Consensus
Test Development Learning Exchange
Test Development Learning Exchange
Oct 4, 2023 · Fundamentals

Python Exception Handling and Debugging Techniques

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
Python Exception Handling and Debugging Techniques
Java Architect Essentials
Java Architect Essentials
Oct 2, 2023 · Backend Development

Standardizing the Controller Layer: Parameter Validation, Unified Response, and Exception Handling in Spring Boot

This article explains how to structure a Spring Boot controller by describing the four parts of a request, demonstrating elegant parameter validation, implementing a unified response wrapper with status codes, and handling both validation and business exceptions through centralized advice and custom exception classes.

ControllerException HandlingJava
0 likes · 22 min read
Standardizing the Controller Layer: Parameter Validation, Unified Response, and Exception Handling in Spring Boot
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Sep 29, 2023 · Backend Development

Mastering Global Exception Handling in Spring MVC with @RestControllerAdvice

This guide explains how Spring MVC's @ControllerAdvice, @RestControllerAdvice, and @ExceptionHandler annotations enable both local and global exception handling, including selective handling by custom annotations, specific controllers, or packages, with practical code examples for Java developers.

Backend DevelopmentException HandlingJava
0 likes · 7 min read
Mastering Global Exception Handling in Spring MVC with @RestControllerAdvice
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Sep 29, 2023 · Frontend Development

Frontend Monitoring: Importance, Types, and SDK Design

The article explains why frontend monitoring is essential, outlines its four main categories—exception monitoring, user data monitoring, performance monitoring, and alerting—describes key metrics and alert strategies, and compares manual, visual, and no‑tracking SDK approaches for collecting user behavior data.

Exception HandlingSDK designfrontend monitoring
0 likes · 13 min read
Frontend Monitoring: Importance, Types, and SDK Design
Selected Java Interview Questions
Selected Java Interview Questions
Sep 28, 2023 · Backend Development

Using CompletableFuture for Asynchronous Programming in Java: Examples, APIs, and Best Practices

This article explains how Java's Future and CompletableFuture interfaces enable asynchronous task execution, demonstrates common pitfalls of Future, shows how to replace it with CompletableFuture for more elegant code, and covers creation methods, result retrieval, callback chaining, task composition, and practical usage tips.

CompletableFutureException HandlingFuture
0 likes · 20 min read
Using CompletableFuture for Asynchronous Programming in Java: Examples, APIs, and Best Practices
Top Architect
Top Architect
Sep 27, 2023 · Backend Development

Unified Exception Handling in Spring Boot: Principles, Implementation, and Best Practices

This article provides a detailed guide on implementing unified exception handling in Spring Boot applications, covering background concepts, the use of @ControllerAdvice and @ExceptionHandler, custom assertion utilities, error response structures, and practical examples for handling various controller and service layer exceptions efficiently.

Exception HandlingJavaSpring Boot
0 likes · 23 min read
Unified Exception Handling in Spring Boot: Principles, Implementation, and Best Practices
Architect
Architect
Sep 24, 2023 · Backend Development

Mastering Unified Exception Handling in Spring Boot: Clean Code with Assertions

This article explains how to replace repetitive try‑catch blocks with a unified exception handling framework in Spring Boot, using @ControllerAdvice, custom Assert utilities, and enum‑based error codes, while showing concrete code examples, configuration steps, and runtime results.

BackendException HandlingJava
0 likes · 24 min read
Mastering Unified Exception Handling in Spring Boot: Clean Code with Assertions
Sohu Tech Products
Sohu Tech Products
Sep 20, 2023 · Backend Development

Java CompletableFuture Tutorial: Asynchronous Programming and Task Composition

This tutorial explains Java 8's CompletableFuture, showing how to create, compose, and handle asynchronous tasks with methods like supplyAsync, thenApply, allOf, and anyOf, while emphasizing custom thread pools, non‑blocking patterns, and robust exception handling for real‑world concurrent programming.

CompletableFutureException HandlingJava
0 likes · 17 min read
Java CompletableFuture Tutorial: Asynchronous Programming and Task Composition
Architect's Tech Stack
Architect's Tech Stack
Sep 10, 2023 · Backend Development

Analyzing the Performance Impact of try‑catch in Java: JVM Exception Handling and Compilation Optimizations

This article investigates whether using try‑catch blocks in Java significantly degrades performance by examining JVM exception handling mechanisms, bytecode generation, JIT and AOT compilation modes, and extensive benchmark tests, concluding that the impact is negligible in typical single‑threaded code.

BenchmarkException HandlingJIT
0 likes · 17 min read
Analyzing the Performance Impact of try‑catch in Java: JVM Exception Handling and Compilation Optimizations
Java High-Performance Architecture
Java High-Performance Architecture
Aug 30, 2023 · Backend Development

How to Unify Controller Parameters, Responses, Validation, and Exceptions in Spring Boot

This article explains how to standardize Spring Boot controller handling by receiving parameters, defining unified status codes, applying global validation, wrapping responses consistently, and managing exceptions with custom advice, using annotations, enums, and AOP techniques to improve code readability and front‑end integration.

ControllerException HandlingJava
0 likes · 20 min read
How to Unify Controller Parameters, Responses, Validation, and Exceptions in Spring Boot
macrozheng
macrozheng
Aug 11, 2023 · Backend Development

When to Put try-catch Inside or Outside a Loop? Pros, Cons, and Best Practices

This article examines the advantages and disadvantages of placing try-catch blocks inside versus outside loops in Java, provides concrete code examples, references performance guidelines from the Alibaba Java Development Manual, and outlines scenarios to help developers choose the most appropriate approach.

/loopException HandlingJava
0 likes · 5 min read
When to Put try-catch Inside or Outside a Loop? Pros, Cons, and Best Practices
Top Architect
Top Architect
Aug 10, 2023 · Backend Development

Optimizing Controller Layer Logic in Spring MVC: Best Practices and Refactoring

This article explains the responsibilities of the MVC controller layer, shows a typical Spring Boot controller implementation, and then demonstrates a series of refactorings—including delegating to the service layer, using validation annotations, standardizing response objects, and centralizing exception handling—to produce cleaner, more maintainable backend code.

ControllerException HandlingJava
0 likes · 12 min read
Optimizing Controller Layer Logic in Spring MVC: Best Practices and Refactoring
Architect
Architect
Aug 7, 2023 · Backend Development

How to Build a Clean Unified Exception Handling System in Spring Boot

This article walks through the problem of scattered try‑catch blocks in Java back‑ends, explains the use of Spring's @ControllerAdvice together with a custom Assert‑based validation and error‑code enum, and demonstrates a complete unified exception handling solution with production‑ready response formatting and extensive code examples.

AssertBackendException Handling
0 likes · 25 min read
How to Build a Clean Unified Exception Handling System in Spring Boot
JD Retail Technology
JD Retail Technology
Aug 2, 2023 · Backend Development

Key Principles and Practices for Engineering Architecture Design

This article explores engineering architecture design, emphasizing value‑first decision making, layered and DDD architectures, technology selection criteria, and best practices for consensus, exception, logging, and monitoring to build scalable, maintainable, and secure software systems.

DDDException HandlingMicroservices
0 likes · 23 min read
Key Principles and Practices for Engineering Architecture Design
php Courses
php Courses
Jul 28, 2023 · Backend Development

Developing Stable and Reliable API Interfaces with ThinkPHP6

This tutorial explains how to design request/response structures, configure routing, implement controllers, perform parameter validation, and handle exceptions when building robust API endpoints using the ThinkPHP6 framework, complete with practical code examples.

APIBackendException Handling
0 likes · 6 min read
Developing Stable and Reliable API Interfaces with ThinkPHP6