Tagged articles
31 articles
Page 1 of 1
Top Architect
Top Architect
Feb 21, 2026 · Backend Development

Mastering Unified Exception Handling in Spring: Clean Code, Enums, and Assertions

This article explains how to replace repetitive try‑catch blocks in Java Spring applications with a unified exception handling strategy that leverages @ControllerAdvice, custom enums, and assertion utilities, providing clean, maintainable code, internationalized error messages, and consistent response structures for both business and system errors.

BackendEnumsException Handling
0 likes · 21 min read
Mastering Unified Exception Handling in Spring: Clean Code, Enums, and Assertions
Java One
Java One
Dec 23, 2025 · Fundamentals

Master Python Numbers & Strings: Tips, Pitfalls, and Best Practices

This guide covers Python's core numeric and string types—including ints, floats, complex numbers, booleans, and bytes—explains common pitfalls like floating‑point precision, demonstrates formatting options, shows how to use enums and SQLAlchemy for cleaner code, and offers practical advice for readable and efficient scripting.

DecimalEnumsNumbers
0 likes · 21 min read
Master Python Numbers & Strings: Tips, Pitfalls, and Best Practices
Open Source Tech Hub
Open Source Tech Hub
Dec 18, 2025 · Backend Development

Mastering PHP 8.1 Enums: From Basics to Advanced Patterns

This article explains how PHP 8.1 enums—both plain and backed—can be used to model task priorities, add type safety, serialize to databases, define custom methods, and integrate with notification senders, demonstrating clean architecture and design benefits for backend applications.

EnumsPHPbacked-enums
0 likes · 7 min read
Mastering PHP 8.1 Enums: From Basics to Advanced Patterns
Open Source Tech Hub
Open Source Tech Hub
Oct 10, 2025 · Backend Development

Master PHP 8's match Expression: Safer, Cleaner Alternatives to switch

This guide explains PHP 8's match expression, highlighting its strict comparison, return capabilities, and practical examples—including basic rewrites, conditional branches, enum integration, and a driver factory pattern—to help developers replace switch statements with more robust code.

Code RefactoringEnumsFactory Pattern
0 likes · 5 min read
Master PHP 8's match Expression: Safer, Cleaner Alternatives to switch
Top Architect
Top Architect
Jan 4, 2025 · Backend Development

A Comprehensive Guide to Java Enums: Basics, Advanced Techniques, and Design Patterns

This article explains what Java enums are, why they are preferable to constants, demonstrates basic and custom enum definitions, shows how to compare, switch, and extend enums with properties, methods and constructors, and explores advanced uses such as EnumSet, EnumMap, Singleton and Strategy patterns, including Java 8 stream examples and JSON serialization.

Design PatternsEnumMapEnumSet
0 likes · 16 min read
A Comprehensive Guide to Java Enums: Basics, Advanced Techniques, and Design Patterns
php Courses
php Courses
Nov 11, 2023 · Backend Development

Four Compelling Reasons to Use PHP Enums

This article explains why developers should replace class‑constant patterns with PHP enums, highlighting four benefits: the built‑in cases method, type hinting, enum‑specific methods, and the uniqueness of enum types that improve code safety and readability.

Backend DevelopmentEnumsPHP
0 likes · 3 min read
Four Compelling Reasons to Use PHP Enums
Architecture Digest
Architecture Digest
Nov 9, 2023 · Backend Development

Elegant Unified Exception Handling in Spring Using Assertions and Enums

This article explains how to replace repetitive try‑catch blocks in Spring applications with a clean, assertion‑based approach combined with @ControllerAdvice and enum‑driven error codes, providing a unified way to handle service‑layer, controller‑layer, and unknown exceptions while keeping responses consistent and internationalized.

BackendControllerAdviceEnums
0 likes · 20 min read
Elegant Unified Exception Handling in Spring Using Assertions and Enums
Architecture Digest
Architecture Digest
Aug 4, 2023 · Backend Development

Unified Exception Handling in Spring: Using @ControllerAdvice, Assertions, and Enums for Clean Error Management

The article explains how to replace repetitive try‑catch blocks in Java Spring applications with a unified exception handling mechanism that leverages @ControllerAdvice, custom BaseException, Assert utilities, and enum‑based error codes to produce consistent, environment‑aware error responses.

BackendEnumsJava
0 likes · 20 min read
Unified Exception Handling in Spring: Using @ControllerAdvice, Assertions, and Enums for Clean Error Management
Top Architect
Top Architect
Dec 2, 2022 · Backend Development

Unified Exception Handling in Spring Boot with Custom Assertions and Enum‑Based Error Codes

This article explains how to implement a comprehensive unified exception handling mechanism in Spring Boot by using @ControllerAdvice, custom BaseException/BusinessException classes, enum‑based error codes, assertion utilities, and standardized response objects to simplify error management across controller and service layers.

EnumsException HandlingJava
0 likes · 22 min read
Unified Exception Handling in Spring Boot with Custom Assertions and Enum‑Based Error Codes
21CTO
21CTO
Feb 12, 2022 · Backend Development

What’s New in PHP 8.1? Enums, Read‑only Properties, Async & Serverless Insights

The article reports Alexa’s shutdown and TIOBE’s shift to Similarweb, highlights the February TIOBE Top‑20 rankings with Python, C and Java gains, and dives into PHP 8.1’s new features—including enums, read‑only properties, async support, serverless frameworks, and a thriving ecosystem.

8.1AsyncEnums
0 likes · 5 min read
What’s New in PHP 8.1? Enums, Read‑only Properties, Async & Serverless Insights
Laravel Tech Community
Laravel Tech Community
Dec 27, 2021 · Backend Development

New Features in PHP 8.1

The article outlines PHP 8.1’s major enhancements—including enums, readonly properties, advanced callable syntax, fibers, intersection types, never return type, final class constants, octal literals, and performance improvements—providing code comparisons that illustrate the new syntax and behavior.

8.1EnumsFibers
0 likes · 9 min read
New Features in PHP 8.1
Kuaishou Tech
Kuaishou Tech
Dec 22, 2021 · Mobile Development

Swift Performance Optimization: Compilation Speed, Memory Usage, and Runtime Improvements

This article examines various Swift performance optimization techniques—including compilation speed improvements, memory allocation strategies, struct versus class trade‑offs, enum usage, collection handling, lazy sequences, bridge reduction, and function dispatch—providing practical code examples and analysis to help developers write faster, more efficient Swift code.

CollectionsCompilationEnums
0 likes · 16 min read
Swift Performance Optimization: Compilation Speed, Memory Usage, and Runtime Improvements
php Courses
php Courses
Dec 8, 2021 · Backend Development

Top 10 New Features in PHP 8.1

This article introduces the ten most important new features of PHP 8.1—including enums, fibers, the never return type, readonly properties, final class constants, array_is_list(), fsync/fdatasync, string‑key array unpacking, the $_FILES full_path key, and the IntlDatePatternGenerator class—each explained with clear code examples.

BackendEnumsFibers
0 likes · 15 min read
Top 10 New Features in PHP 8.1
php Courses
php Courses
Nov 11, 2021 · Backend Development

PHP 8.1 Enums: Introduction and Usage

This article explains PHP 8.1’s native enum feature, covering basic enum definitions, typed properties, methods, backed enums, serialization, case listing, reflection, traits, and practical code examples to help backend developers adopt enums in their projects.

BackendEnumsPHP
0 likes · 6 min read
PHP 8.1 Enums: Introduction and Usage
Laravel Tech Community
Laravel Tech Community
Apr 6, 2021 · Backend Development

Upcoming PHP 8.1 Features and Release Timeline

PHP 8.1 is being developed with an Alpha release slated for June and a GA launch in November, introducing enums, new fsync/fdatasync functions, inheritance cache performance gains, Fiber support for async programming, and added xxHash and MurmurHash V3 hashing algorithms.

EnumsFibersPHP8.1
0 likes · 2 min read
Upcoming PHP 8.1 Features and Release Timeline
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Dec 29, 2020 · Fundamentals

Understanding Java Syntactic Sugar: Generics, Autoboxing, Enums, Inner Classes, Varargs and More

This article explains the concept of syntactic sugar in Java, covering generics, autoboxing/unboxing, enums, inner classes, variable‑length arguments, enhanced for‑loops, switch on strings, conditional compilation, assertions, try‑with‑resources, and string concatenation, with code examples and byte‑code analysis.

AutoboxingEnumsGenerics
0 likes · 17 min read
Understanding Java Syntactic Sugar: Generics, Autoboxing, Enums, Inner Classes, Varargs and More
Java Backend Technology
Java Backend Technology
Mar 26, 2020 · Fundamentals

Mastering Java Enums: From Basics to Advanced Design Patterns

This article explains what Java enums are, why they are useful, how to define simple and custom enum types, compare them safely, use them in switch statements, enrich them with fields, methods and constructors, and apply them in advanced scenarios such as EnumSet, EnumMap, Singleton and Strategy patterns, as well as Java 8 stream APIs and JSON serialization.

EnumMapEnumSetEnums
0 likes · 17 min read
Mastering Java Enums: From Basics to Advanced Design Patterns
Amap Tech
Amap Tech
Oct 23, 2019 · Fundamentals

Java Programming Techniques: Collections, ThreadLocal, Pair, Enum, Union, and Generics

The article presents a toolbox of practical Java techniques—including using HashSet for fast duplicate detection, HashMap for building hierarchical structures, ThreadLocal for thread‑specific data, Pair and custom holder classes for multiple return values, enum definitions, union‑style classes, and generic and wildcard patterns—to streamline everyday coding tasks.

CollectionsEnumsJava
0 likes · 22 min read
Java Programming Techniques: Collections, ThreadLocal, Pair, Enum, Union, and Generics
Java Captain
Java Captain
Sep 28, 2017 · Backend Development

Four Java Optimization Techniques: Purposeful Optimization, Using Enums for Constants, Overriding equals(), and Leveraging Polymorphism

This article presents four practical Java optimization strategies—targeted performance tuning, replacing primitive constants with enums, correctly overriding the equals() method, and increasing the use of polymorphism—to improve system efficiency and code readability while highlighting when each technique should be applied.

EnumsJavaequals
0 likes · 18 min read
Four Java Optimization Techniques: Purposeful Optimization, Using Enums for Constants, Overriding equals(), and Leveraging Polymorphism