Tagged articles
14 articles
Page 1 of 1
Top Architect
Top Architect
Dec 20, 2025 · Backend Development

Master Null Checks in Java: When to Use StringUtils, ObjectUtils, and CollectionUtils

This article explains how to replace repetitive null‑checks in Java with the appropriate utility classes—StringUtils for strings, ObjectUtils for objects, arrays, lists and maps, and CollectionUtils for collections—providing step‑by‑step guidance, code examples, and a discussion of each method's limitations.

BestPracticesCollectionUtilsJava
0 likes · 8 min read
Master Null Checks in Java: When to Use StringUtils, ObjectUtils, and CollectionUtils
Java Tech Enthusiast
Java Tech Enthusiast
Nov 2, 2025 · Backend Development

Master Elegant Null Checks in Java with StringUtils and ObjectUtils

This article explains how to replace repetitive !=null checks in Java with concise, type‑aware utility methods such as StringUtils, ObjectUtils, Collections, and CollectionUtils, providing code examples and discussing the underlying implementations and their limitations for different data types.

BestPracticesJavaObjectUtils
0 likes · 8 min read
Master Elegant Null Checks in Java with StringUtils and ObjectUtils
macrozheng
macrozheng
Oct 31, 2025 · Fundamentals

Master Java Generics: Decoding T, E, K, V, and ? Symbols

This comprehensive guide explains the purpose and proper use of Java generic symbols T, E, K, V, and ?, covering their history, practical code examples, scope nuances, wildcard rules, advanced constraints, and best‑practice recommendations for writing safer, more flexible code.

BestPracticesGenericsJava
0 likes · 20 min read
Master Java Generics: Decoding T, E, K, V, and ? Symbols
Top Architect
Top Architect
Feb 11, 2025 · Backend Development

Avoiding the Pitfalls of Java Stream and Lambda: Best Practices and Optimizations

The article examines how Java Stream and Lambda, while powerful for concise code, can become cumbersome when overused, and offers practical tips such as proper line breaks, function extraction, predicate reuse, cautious Optional handling, and mindful use of parallel streams to maintain readability and performance.

BestPracticesCodeOptimizationJava
0 likes · 11 min read
Avoiding the Pitfalls of Java Stream and Lambda: Best Practices and Optimizations
Java Architect Essentials
Java Architect Essentials
Jan 3, 2025 · Backend Development

Using Java 8 Optional to Prevent NullPointerException: Methods, Examples, and Best Practices

This article introduces Java 8's Optional class as a robust solution for avoiding NullPointerException, explains its creation methods, demonstrates common operations such as get, isPresent, ifPresent, filter, map, flatMap, orElse, orElseGet, orElseThrow, and provides practical usage scenarios and cautions for developers.

BestPracticesJavajava8
0 likes · 16 min read
Using Java 8 Optional to Prevent NullPointerException: Methods, Examples, and Best Practices
Code Ape Tech Column
Code Ape Tech Column
Jul 19, 2024 · Backend Development

Common Pitfalls and Best Practices for Using Java Thread Pools

This article summarizes the common pitfalls, monitoring techniques, configuration guidelines, naming conventions, and practical code examples for safely using Java ThreadPoolExecutor, helping developers avoid OOM, deadlocks, and performance issues while optimizing thread‑pool usage.

BestPracticesJavaThreadPool
0 likes · 17 min read
Common Pitfalls and Best Practices for Using Java Thread Pools
Code Ape Tech Column
Code Ape Tech Column
Jul 17, 2023 · Backend Development

Best Practices and Common Pitfalls When Using Java Thread Pools

This article summarizes the key pitfalls and recommended practices for creating, configuring, monitoring, and naming Java thread pools, including proper declaration, parameter tuning for CPU‑ and I/O‑bound workloads, avoiding OOM and deadlocks, and leveraging dynamic pool frameworks.

BestPracticesJavaThreadPool
0 likes · 17 min read
Best Practices and Common Pitfalls When Using Java Thread Pools
Top Architect
Top Architect
Oct 20, 2022 · Backend Development

Mastering Java Optional: Preventing NullPointerException with Java 8

This article explains how Java 8's Optional class can be used to avoid NullPointerException by providing a comprehensive guide that covers creation, common methods, practical use‑cases, and recent JDK 9 enhancements, complete with code examples and best‑practice recommendations.

BestPracticesFunctionalProgrammingJava
0 likes · 14 min read
Mastering Java Optional: Preventing NullPointerException with Java 8
YunZhu Net Technology Team
YunZhu Net Technology Team
Apr 21, 2022 · Databases

Common MySQL Query Pitfalls and How to Avoid Them

This article outlines several frequent MySQL query pitfalls—including missing table aliases in multi‑table operations, unsupported FULL JOIN syntax, unexpected REPLACE INTO side effects, auto‑increment edge cases, data‑type mismatches, nondeterministic functions, and warning‑driven query behavior—providing examples and best‑practice recommendations to prevent data loss and performance issues.

BestPracticesDataIntegritySQL
0 likes · 14 min read
Common MySQL Query Pitfalls and How to Avoid Them
Meituan Technology Team
Meituan Technology Team
Oct 25, 2018 · Mobile Development

iOS Navigation Bar Transition: Challenges and Solutions

In large iOS apps like Meituan, navigation‑bar transitions require a systematic approach—using viewWillAppear/WillDisappear to modify styles, employing fake bars during pushes and pops, and following best‑practice rules—to avoid hard‑coded hacks, reduce coupling, and maintain scalable, reliable UI state.

BestPracticesMobileDevelopmentNavigationBar
0 likes · 29 min read
iOS Navigation Bar Transition: Challenges and Solutions
Java Captain
Java Captain
Feb 20, 2018 · Fundamentals

Understanding and Proper Use of Checked Exceptions in Java

This article explains Java's exception hierarchy, distinguishes checked from unchecked exceptions, illustrates common pitfalls of overusing throws, and provides best‑practice guidelines for handling, documenting, and wrapping checked exceptions to improve API design and application robustness.

APIDesignBestPracticesCheckedException
0 likes · 14 min read
Understanding and Proper Use of Checked Exceptions in Java
21CTO
21CTO
Nov 30, 2015 · Backend Development

What Makes an API Great? Proven Design Principles from Joshua Bloch

This article explains why APIs are valuable assets, outlines the essential traits of a good API, and provides a step‑by‑step design process—including requirements gathering, naming, documentation, performance considerations, exception handling, and refactoring examples—illustrated with Java code snippets.

APIBestPracticesDesign
0 likes · 14 min read
What Makes an API Great? Proven Design Principles from Joshua Bloch