Tagged articles
null check
24 articles · Page 1 of 1
This article explains how to replace repetitive !=null checks with efficient, type‑specific utility methods like StringUtils and ObjectUtils, offering a three‑step approach, code examples, and insights into their implementations for robust null handling in Java applications.
BackendObjectUtilsStringUtils
0 likes · 8 min read

This article explains how to replace repetitive !=null checks in Java by identifying the data type and using the appropriate utility classes—StringUtils for strings, ObjectUtils for objects, and CollectionUtils for collections—to perform concise and reliable null or empty evaluations, including code examples and discussion of edge cases.
CollectionUtilsJavaObjectUtils
0 likes · 8 min read

This article explains how the PHP is_null function can be used to determine whether a variable holds a null value, demonstrates its behavior with example code, and discusses the practical implications for conditional logic in backend development.
IS NULLnull checkphp-functions
0 likes · 4 min read

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.
REST APIStreamassertions
0 likes · 13 min read

This article explores ten effective techniques for handling null values in Java, ranging from traditional if‑else checks to modern Optional usage, Lombok annotations, AOP interceptors, the Null Object pattern, Guava utilities, Kotlin‑style safety, and JDK 14 preview features, helping developers write cleaner, more robust code.
Best PracticesJavaOptional
0 likes · 11 min read

This article explains how to replace repetitive !=null checks in Java by identifying data types and using the appropriate Spring/Apache utility classes such as StringUtils, ObjectUtils, Collections, and CollectionUtils, providing code examples and best‑practice guidelines.
Coding Best PracticesObjectUtilsStringUtils
0 likes · 8 min read

This guide explains how to efficiently and elegantly handle null pointer checks in Java by identifying data types, selecting the right utility classes such as StringUtils, ObjectUtils, Arrays, Collections, and applying their isEmpty methods to reduce repetitive code.
JavaObjectUtilsStringUtils
0 likes · 7 min read

The article compares using Optional.ofNullable with map() versus a traditional null‑check ternary operator for retrieving a Hyperlink's link property, evaluates their readability, performance, and suitability, and extends the discussion to native versus utility‑based collection‑empty checks in Java.
Code styleJavaOptional
0 likes · 6 min read

This article explains how to perform efficient and elegant null checks in Java by first identifying the data type, then selecting the appropriate utility class such as StringUtils, ObjectUtils, Collections or CollectionUtils, and finally applying the class’s isEmpty method with code examples for strings, arrays, lists, maps, and more.
JavaObjectUtilsStringUtils
0 likes · 7 min read

This article explains how to efficiently perform null checks in Java by selecting appropriate utility classes such as StringUtils, ObjectUtils, Collections, and CollectionUtils for different data types, and also includes a brief notice about a free programmer book giveaway.
JavaObjectUtilsStringUtils
0 likes · 9 min read

This article discusses the proper use of null‑checking in Java, distinguishes between valid and invalid null returns, proposes alternatives such as returning empty collections, using assertions or throwing exceptions, and demonstrates the Null Object pattern with concrete code examples while also noting related community resources.
JavaNull Objectdefensive programming
0 likes · 9 min read

This article explains how the PHP built‑in function is_null can be used to determine whether a variable holds a null value, demonstrates its behavior with example code, and describes the resulting true or false outcomes for different variable types.
IS NULLPHPnull check
0 likes · 4 min read

This article explains common null‑checking techniques for objects, Lists, and Strings in Java, introduces the Optional class with its creation methods and typical usage scenarios, and compares various utility libraries to help avoid NullPointerException in real‑world projects.
ListOptionalString
0 likes · 6 min read

This article explains common Java null‑checking techniques for objects, Lists, and Strings, compares different utility methods, and introduces the Optional class with its creation patterns and typical usage scenarios to help avoid NullPointerException in backend development.
ListOptionalbest-practices
0 likes · 7 min read

The article explains why overusing null‑checks in Java leads to cluttered code, distinguishes between valid and invalid null returns, and recommends using assertions, explicit exceptions, empty collections, or the Null Object pattern to write cleaner, safer backend implementations.
ExceptionJavaNull Object pattern
0 likes · 5 min read

This article explains why excessive null‑checking in Java code is problematic, distinguishes when null is a valid response versus an error, and offers practical techniques such as using assertions, throwing exceptions, returning empty collections, and applying the Null Object pattern to write cleaner, safer code.
JavaNull Object patternOptional
0 likes · 7 min read

The article explains why excessive null‑checking in Java code is problematic, distinguishes between null as a valid response and null as an error, and offers practical techniques such as returning empty collections, using assertions, throwing exceptions, and applying the Null Object pattern to write cleaner, safer code.
BackendDesign PatternJava
0 likes · 7 min read

The article explains why excessive null‑checking in Java code is problematic, distinguishes between null as a valid response and as an error, and offers practical techniques such as assertions, throwing exceptions, returning empty collections, and applying the Null Object pattern to write cleaner, safer backend code.
JavaNull Object patternnull check
0 likes · 7 min read

This article reveals frequent JDK pitfalls such as missing null checks in String.valueOf, fragile Integer.parseInt conversions, BigDecimal division errors, unmodifiable Collections.emptyList, and unsafe list iteration, providing concrete code examples and safe handling recommendations for Java developers.
JDKJavabigdecimal
0 likes · 10 min read

This article explains the differences between Apache Commons Lang's StringUtils.isEmpty, isBlank, and their complementary methods, shows their source implementations, and offers a recommendation to prefer isBlank for more comprehensive null and whitespace checks.
Apache CommonsJavaStringUtils
0 likes · 3 min read

This article explains Java's explicit null checks, introduces the JVM's implicit null check mechanism via ImplicitNullCheckStub, and details how the C1 and C2 compilers perform null‑check elimination using data‑flow analysis and SSA, highlighting performance implications and optimization strategies.
C1C2Implicit Null Check
0 likes · 9 min read

This article examines why excessive null‑checking in Java leads to cluttered code, distinguishes valid versus invalid null returns, and presents practical techniques—including assertions, exceptions, and the Null Object pattern—to reduce or remove unnecessary null checks.
JavaNull Object patternassert
0 likes · 7 min read

The article explains why Java developers often litter code with null‑checks, distinguishes when null is a valid response versus an error, and proposes using assertions, exceptions, empty collections, or the Null Object pattern to write cleaner, safer code.
Best PracticesException HandlingNull Object pattern
0 likes · 7 min read

This article explains why overusing null‑check statements and try‑catch blocks makes Java code messy, distinguishes valid and invalid null returns, and offers practical techniques such as assertions, exceptions, empty collections, and the Null Object pattern to write safer, more concise code.
Best PracticesJavaNull Object
0 likes · 6 min read
