Tag

enums

0 views collected around this technical thread.

Java Captain
Java Captain
Apr 17, 2025 · Backend Development

Java Development Tips: Enums, RESTful API Standards, Bean Conversion, Stream Operations, and Null/Assertion Handling

This article shares practical Java backend development techniques, covering safe enum usage, RESTful API design guidelines, generic bean conversion via JSON, effective Stream API patterns, and comprehensive null‑checking and assertion strategies to improve code reliability and maintainability.

AssertionsREST APIStream
0 likes · 13 min read
Java Development Tips: Enums, RESTful API Standards, Bean Conversion, Stream Operations, and Null/Assertion Handling
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.

EnumMapEnumSetdesign patterns
0 likes · 16 min read
A Comprehensive Guide to Java Enums: Basics, Advanced Techniques, and Design Patterns
Top Architecture Tech Stack
Top Architecture Tech Stack
Nov 18, 2024 · Fundamentals

Understanding and Using Java Enums: Definitions, Basic and Advanced Techniques

This article introduces Java enums, explains their definition, basic usage such as declaring, accessing, and iterating values, demonstrates advanced features like adding fields, implementing interfaces, using them in switch statements, and shows how enums can implement design patterns such as Singleton and Strategy.

backenddesign patternsenums
0 likes · 6 min read
Understanding and Using Java Enums: Definitions, Basic and Advanced Techniques
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.

PHPType Hintingcode
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.

AssertionsControllerAdviceException Handling
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.

AssertionsExceptionHandlingREST
0 likes · 20 min read
Unified Exception Handling in Spring: Using @ControllerAdvice, Assertions, and Enums for Clean Error Management
Top Architect
Top Architect
Feb 17, 2023 · Backend Development

Unified Exception Handling in Spring Boot Using @ControllerAdvice, Assertions, and Enums

This article explains how to replace repetitive try‑catch blocks in Spring Boot applications with a unified exception handling mechanism that leverages @ControllerAdvice, custom Assert utilities, and enum‑based error codes to produce clean, maintainable backend code.

AssertionsException HandlingSpring
0 likes · 22 min read
Unified Exception Handling in Spring Boot Using @ControllerAdvice, Assertions, and Enums
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.

AssertionsException HandlingMyBatis-Plus
0 likes · 22 min read
Unified Exception Handling in Spring Boot with Custom Assertions and Enum‑Based Error Codes
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.1PHPPerformance
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.

CollectionsCompilationMemory Management
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.

ReadOnlyarray_is_listbackend
0 likes · 15 min read
Top 10 New Features in PHP 8.1
Laravel Tech Community
Laravel Tech Community
Nov 28, 2021 · Backend Development

What's New in PHP 8.1.0: Enums, Read‑only Properties, First‑class Callable Syntax, Fibers and More

PHP 8.1.0 introduces enums, read‑only properties, first‑class callable syntax, new initializers, intersection types, never return type, final class constants, explicit octal literals, fibers, string‑keyed array unpacking, and numerous performance optimizations, providing developers with richer language features and faster execution.

PHPPerformanceReadonly Properties
0 likes · 5 min read
What's New in PHP 8.1.0: Enums, Read‑only Properties, First‑class Callable Syntax, Fibers and More
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.

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

PHP 8.1 Alpha Release Highlights and Upcoming Schedule

PHP 8.1 has entered Alpha, introducing enums, fsync/fdatasync, Fibers, expanded resource-to-object conversion, macOS process renaming, new hashing algorithms, enhanced Sodium encryption, inheritance cache, and performance tweaks, with a release schedule leading to a GA version expected by November 2021.

FeaturesPHPbackend
0 likes · 3 min read
PHP 8.1 Alpha Release Highlights and Upcoming Schedule
Laravel Tech Community
Laravel Tech Community
Jul 4, 2021 · Backend Development

PHP 8.1 Alpha Released with New Features and Upcoming Release Timeline

PHP 8.1 has entered the Alpha stage, introducing enums, Fibers, new hashing algorithms, improved resource handling, macOS‑specific PHP‑FPM enhancements, and performance optimizations, with a detailed schedule for subsequent Alpha, Beta, and final GA releases later this year.

PHPbackendenums
0 likes · 3 min read
PHP 8.1 Alpha Released with New Features and Upcoming Release Timeline
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.

Performancebackendenums
0 likes · 2 min read
Upcoming PHP 8.1 Features and Release Timeline
Architecture Digest
Architecture Digest
Apr 5, 2021 · Backend Development

Improving Java Backend Code Readability with Enums and Proper Value Matching

This article discusses common pitfalls in Java code such as string and numeric matching, explains why using raw literals can cause bugs, and demonstrates how to improve readability and maintainability by employing enums, value conversion, and state‑machine patterns for backend development.

Best PracticesCode readabilitybackend
0 likes · 8 min read
Improving Java Backend Code Readability with Enums and Proper Value Matching
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.

Inner ClassesVarargsautoboxing
0 likes · 17 min read
Understanding Java Syntactic Sugar: Generics, Autoboxing, Enums, Inner Classes, Varargs and More
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Dec 9, 2020 · Fundamentals

Understanding Java Syntactic Sugar: Generics, Autoboxing, Enums, and More

This article explains the concept of syntactic sugar in Java, covering generics, autoboxing/unboxing, enums, inner classes, var‑args, enhanced for‑loops, switch on strings, conditional compilation, assertions, try‑with‑resources, and string concatenation, while showing the underlying bytecode transformations.

Inner Classesautoboxingenums
0 likes · 18 min read
Understanding Java Syntactic Sugar: Generics, Autoboxing, Enums, and More
360 Tech Engineering
360 Tech Engineering
Oct 16, 2020 · Frontend Development

A Comprehensive Guide to TypeScript: Basics, Types, Enums, Interfaces, and Functions

This guide introduces TypeScript, covering its definition, advantages, data types, enums, interfaces, classes, function definitions, parameter handling, overloads, and best practices, with code examples illustrating each concept for developers seeking to write safer, more maintainable JavaScript.

Frontend DevelopmentFunctionsenums
0 likes · 12 min read
A Comprehensive Guide to TypeScript: Basics, Types, Enums, Interfaces, and Functions