Learn effective Java coding practices, including using descriptive names, following naming conventions, formatting code consistently, and more.
Table of contents
Coding is easy, writing simple and maintainable code is hardUse Descriptive and Meaningful NamesFollow the Java Naming ConventionsFormat Code ConsistentlyWrite Short MethodsDocument Your CodeChoosing the Right Set Implementation for Your Needs in JavaUse the Right Data Structures and CollectionsChoosing the Right List Implementation for Optimal Performance in JavaRemove Dead and Duplicated CodeMinimize Object CreationThe String Concatenation Trap: Why You Should Avoid It in Loops and How to Fix ItProperly Handle ExceptionsWrite Tests/Perform Thorough TestingUse the Right Design PatternsOptimize PerformanceEnum Comparison Best Practices in Java with 4 ReasonsAvoid Premature OptimizationKeep Your Codebase Clean14 Comments
Sort: