#javadev search results

💡 Spring Boot: To better handle circular dependencies, use constructor injection instead of field injection. ✅ Forces all required dependencies to be provided at creation time, allowing early detection. #SpringBoot #JavaDev

mario_casari's tweet image. 💡 Spring Boot: To better handle circular dependencies, use constructor injection instead of field injection.

✅ Forces all required dependencies to be provided at creation time, allowing early detection.
#SpringBoot #JavaDev

💡Java tip: Use HashMap as Map implementation when you need greatest general-purpose performance. #Java #JavaDev

mario_casari's tweet image. 💡Java tip: Use HashMap as Map implementation when you need greatest general-purpose performance.
#Java  #JavaDev

💡Java tip: Starting from Java 14 you can use switch expressions for shorter and cleaner multi-branch logic. #Java #JavaDev

mario_casari's tweet image. 💡Java tip: Starting from Java 14 you can use switch expressions for shorter and cleaner multi-branch logic.
#Java #JavaDev

💡Spring Boot tip: Use H2 if you need an in-memory database for dev/testing. #SpringBoot #JavaDev

mario_casari's tweet image. 💡Spring Boot tip: Use H2 if you need an in-memory   database for dev/testing.
 #SpringBoot #JavaDev

💡 Spring Boot: You can run jobs at fixed intervals without setting up Quartz or external schedulers. #SpringBoot #JavaDev

mario_casari's tweet image. 💡 Spring Boot: You can run jobs at fixed intervals without setting up Quartz or external schedulers.
#SpringBoot #JavaDev

💡Spring Boot tip: Use @Profile to group and load beans/configurations in specific environments. #SpringBoot #JavaDev

mario_casari's tweet image. 💡Spring Boot tip: Use @Profile to group and load beans/configurations in specific environments.
#SpringBoot #JavaDev

💡 Spring Boot tip: Use spring-boot-starter-logging (Logback) for logging, it is already included as default. ✅ spring-boot-starter-logging is already included in most starters (spring-boot-starter-web, spring-boot-starter-data-jpa, etc.) #SpringBoot #JavaDev

mario_casari's tweet image. 💡 Spring Boot tip: Use spring-boot-starter-logging (Logback) for logging, it is already included as default.

✅ spring-boot-starter-logging is already included in most starters (spring-boot-starter-web, spring-boot-starter-data-jpa, etc.)
#SpringBoot #JavaDev

💡 Java tip: From Java 9 you can use Objects.checkIndex(...) to replace manual if checks for validating index bounds. ✅It is a small feature that helps making the code cleaner. #Java #JavaDev

mario_casari's tweet image. 💡 Java tip: From Java 9 you can use Objects.checkIndex(...) to replace manual if checks for validating index bounds. 

✅It is a small feature that helps making the code cleaner. 

#Java #JavaDev

🚀 JUnit 5 Tip 🚀 Since JUnit 5, leverage package-private visibility for classes and methods to enhance encapsulation in your tests. This helps keep your testing logic close to the code it's testing while maintaining a clean and organized codebase. #JUnit #Testing #JavaDev

mnhocktweets's tweet image. 🚀 JUnit 5 Tip 🚀

Since JUnit 5, leverage package-private visibility for classes and methods to enhance encapsulation in your tests.  This helps keep your testing logic close to the code it's testing while maintaining a clean and organized codebase.

#JUnit #Testing #JavaDev

💡 Java tip: Starting from Java 8, you can remove nulls easily with list.removeIf(Objects::isNull). #Java #JavaDev

mario_casari's tweet image. 💡 Java tip: Starting from Java 8, you can remove nulls easily with list.removeIf(Objects::isNull).
#Java #JavaDev

🚀 Use ReentrantReadWriteLock Java concurrence utility if you have to deal with frequent reads and fewer writes. #Java #JavaDev

mario_casari's tweet image. 🚀 Use ReentrantReadWriteLock Java concurrence utility if you have to deal with frequent reads and fewer writes. #Java #JavaDev

💡 Java tip: Use Stream.peek() for debugging in pipelines, not for business logic. ✅ Stream.peek() lets you perform logging or inspection on each element as it flows through a stream without modifying it. #Java #JavaDev

mario_casari's tweet image. 💡 Java tip: Use Stream.peek() for debugging in pipelines, not for business logic.

✅ Stream.peek() lets you perform logging or inspection on each element as it flows through a stream without modifying it.
#Java #JavaDev

🚀 Java: With CompletableFuture.allOf(...) you can wait on multiple async tasks without manual join handling. #Java #JavaDev

mario_casari's tweet image. 🚀 Java: With CompletableFuture.allOf(...) you can wait on multiple async tasks without manual join handling.
#Java #JavaDev

💡Java tip: Starting from Java 8 prefer java.time over Date and Calendar. #ModernJava #JavaDev

mario_casari's tweet image. 💡Java tip: Starting from Java 8 prefer java.time over Date and Calendar.
#ModernJava #JavaDev

💡 Java tip: List.reversed() returns an unmodifiable reversed view of the original list. #Java #JavaDev

mario_casari's tweet image. 💡 Java tip: List.reversed() returns an unmodifiable reversed view of the original list. #Java #JavaDev

💡 Java tip: Stream.toArray(Type[]::new) is a clean, type-safe way to get arrays from streams. ✅ Avoids Object[] and casting. #Java #JavaDev

mario_casari's tweet image. 💡 Java tip: Stream.toArray(Type[]::new) is a clean, type-safe way to get arrays from streams. 

✅ Avoids Object[] and casting.
#Java #JavaDev

🚀 Use Files.isSameFile(path1, path2) to check if two paths refer to the same file. It resolves symlinks too. ✅ It checks whether two Path objects refer to the same actual file in the file system. #Java #JavaDev

mario_casari's tweet image. 🚀  Use Files.isSameFile(path1, path2) to check if two paths refer to the same file. It resolves symlinks too.

✅ It checks whether two Path objects refer to the same actual file in the file system.
#Java #JavaDev

🚀 With Collectors.summarizingInt() you can get count, sum, min, max, avg in one pass. #Java #JavaDev

mario_casari's tweet image. 🚀 With Collectors.summarizingInt() you can get count, sum, min, max, avg in one pass.
#Java #JavaDev

💡 Java tip: Starting from Java 8 you can use ChronoUnit.between(start, end) to calculate time intervals in a specific unit (days, hours, minutes) without manual math. #Java #JavaDev

mario_casari's tweet image. 💡 Java tip: Starting from Java 8 you can use ChronoUnit.between(start, end) to calculate time intervals in a specific unit (days, hours, minutes) without manual math.
#Java #JavaDev

💡 Spring Boot: To better handle circular dependencies, use constructor injection instead of field injection. ✅ Forces all required dependencies to be provided at creation time, allowing early detection. #SpringBoot #JavaDev

mario_casari's tweet image. 💡 Spring Boot: To better handle circular dependencies, use constructor injection instead of field injection.

✅ Forces all required dependencies to be provided at creation time, allowing early detection.
#SpringBoot #JavaDev

💡 Java tip: From Java 9 you can use Objects.checkIndex(...) to replace manual if checks for validating index bounds. ✅It is a small feature that helps making the code cleaner. #Java #JavaDev

mario_casari's tweet image. 💡 Java tip: From Java 9 you can use Objects.checkIndex(...) to replace manual if checks for validating index bounds. 

✅It is a small feature that helps making the code cleaner. 

#Java #JavaDev

Step into tech at Maersk Bangalore as an Associate Software Engineer! Build scalable Customs platforms with Java, Spring, Azure & more. 🚀 #SoftwareJobs #MaerskCareers #JavaDev #AgileTech #Bangalore Jobshttps://jobformore.com/maersk-off-campus-drive/


🧠 Dive deep into FlatLaf, the Look & Feel that’s redefining Swing’s aesthetics. #JavaDev #DesktopApps


💡 Java tip: Starting from Java 8, you can remove nulls easily with list.removeIf(Objects::isNull). #Java #JavaDev

mario_casari's tweet image. 💡 Java tip: Starting from Java 8, you can remove nulls easily with list.removeIf(Objects::isNull).
#Java #JavaDev

🚀 JUnit 5 Tip 🚀 Since JUnit 5, leverage package-private visibility for classes and methods to enhance encapsulation in your tests. This helps keep your testing logic close to the code it's testing while maintaining a clean and organized codebase. #JUnit #Testing #JavaDev

mnhocktweets's tweet image. 🚀 JUnit 5 Tip 🚀

Since JUnit 5, leverage package-private visibility for classes and methods to enhance encapsulation in your tests.  This helps keep your testing logic close to the code it's testing while maintaining a clean and organized codebase.

#JUnit #Testing #JavaDev

🎯 Learn everything about Eclipse OpenJ9 — from architecture to tuning tips — in one comprehensive guide. #JavaDev #Performance


💡Spring Boot tip: Use @Profile to group and load beans/configurations in specific environments. #SpringBoot #JavaDev

mario_casari's tweet image. 💡Spring Boot tip: Use @Profile to group and load beans/configurations in specific environments.
#SpringBoot #JavaDev

💡Spring Boot tip: Use H2 if you need an in-memory database for dev/testing. #SpringBoot #JavaDev

mario_casari's tweet image. 💡Spring Boot tip: Use H2 if you need an in-memory   database for dev/testing.
 #SpringBoot #JavaDev

💡Java tip: With pattern matching for the instanceof operator, Java lets you declare a variable directly inside the instanceof check. #Java #JavaDev

mario_casari's tweet image. 💡Java tip: With pattern matching for the instanceof operator, Java lets you declare a variable directly inside the instanceof check.
#Java #JavaDev

⚙️ Learn how Records improve serialization, pattern matching, and JSON integration in modern Java apps. #JavaDev


☁️ Cloud-native Java starts here! Learn how OpenJ9 reduces container memory usage and boosts performance. #JavaDev #Containers


💡Java tip: Starting from Java 8 prefer java.time over Date and Calendar. #ModernJava #JavaDev

mario_casari's tweet image. 💡Java tip: Starting from Java 8 prefer java.time over Date and Calendar.
#ModernJava #JavaDev

Customize table naming to uppercase with a Spring Boot naming strategy. bootify.io/spring-data/up… #SpringBoot #JavaDev #JPA #Database


✨ No more getters, setters, or constructors! Discover how Record Classes make your Java code cleaner. #JavaDev


💡 Want a faster startup and smaller memory footprint? Time to explore Eclipse OpenJ9 — the JVM for modern cloud apps. #JavaDev


💡Java tip: Starting from Java 14 you can use switch expressions for shorter and cleaner multi-branch logic. #Java #JavaDev

mario_casari's tweet image. 💡Java tip: Starting from Java 14 you can use switch expressions for shorter and cleaner multi-branch logic.
#Java #JavaDev

💡Spring Boot tip: Use H2 if you need an in-memory database for dev/testing. #SpringBoot #JavaDev

mario_casari's tweet image. 💡Spring Boot tip: Use H2 if you need an in-memory   database for dev/testing.
 #SpringBoot #JavaDev

💡Java tip: Use HashMap as Map implementation when you need greatest general-purpose performance. #Java #JavaDev

mario_casari's tweet image. 💡Java tip: Use HashMap as Map implementation when you need greatest general-purpose performance.
#Java  #JavaDev

💡 Spring Boot: To better handle circular dependencies, use constructor injection instead of field injection. ✅ Forces all required dependencies to be provided at creation time, allowing early detection. #SpringBoot #JavaDev

mario_casari's tweet image. 💡 Spring Boot: To better handle circular dependencies, use constructor injection instead of field injection.

✅ Forces all required dependencies to be provided at creation time, allowing early detection.
#SpringBoot #JavaDev

🚀 Use ReentrantReadWriteLock Java concurrence utility if you have to deal with frequent reads and fewer writes. #Java #JavaDev

mario_casari's tweet image. 🚀 Use ReentrantReadWriteLock Java concurrence utility if you have to deal with frequent reads and fewer writes. #Java #JavaDev

💡 Java tip: Use Stream.peek() for debugging in pipelines, not for business logic. ✅ Stream.peek() lets you perform logging or inspection on each element as it flows through a stream without modifying it. #Java #JavaDev

mario_casari's tweet image. 💡 Java tip: Use Stream.peek() for debugging in pipelines, not for business logic.

✅ Stream.peek() lets you perform logging or inspection on each element as it flows through a stream without modifying it.
#Java #JavaDev

🚀 Java: With CompletableFuture.allOf(...) you can wait on multiple async tasks without manual join handling. #Java #JavaDev

mario_casari's tweet image. 🚀 Java: With CompletableFuture.allOf(...) you can wait on multiple async tasks without manual join handling.
#Java #JavaDev

💡 Spring Boot tip: Use spring-boot-starter-logging (Logback) for logging, it is already included as default. ✅ spring-boot-starter-logging is already included in most starters (spring-boot-starter-web, spring-boot-starter-data-jpa, etc.) #SpringBoot #JavaDev

mario_casari's tweet image. 💡 Spring Boot tip: Use spring-boot-starter-logging (Logback) for logging, it is already included as default.

✅ spring-boot-starter-logging is already included in most starters (spring-boot-starter-web, spring-boot-starter-data-jpa, etc.)
#SpringBoot #JavaDev

💡 Spring Boot: You can run jobs at fixed intervals without setting up Quartz or external schedulers. #SpringBoot #JavaDev

mario_casari's tweet image. 💡 Spring Boot: You can run jobs at fixed intervals without setting up Quartz or external schedulers.
#SpringBoot #JavaDev

💡 Java tip: Starting from Java 8, you can remove nulls easily with list.removeIf(Objects::isNull). #Java #JavaDev

mario_casari's tweet image. 💡 Java tip: Starting from Java 8, you can remove nulls easily with list.removeIf(Objects::isNull).
#Java #JavaDev

💡 Java tip: From Java 9 you can use Objects.checkIndex(...) to replace manual if checks for validating index bounds. ✅It is a small feature that helps making the code cleaner. #Java #JavaDev

mario_casari's tweet image. 💡 Java tip: From Java 9 you can use Objects.checkIndex(...) to replace manual if checks for validating index bounds. 

✅It is a small feature that helps making the code cleaner. 

#Java #JavaDev

🚀 JUnit 5 Tip 🚀 Since JUnit 5, leverage package-private visibility for classes and methods to enhance encapsulation in your tests. This helps keep your testing logic close to the code it's testing while maintaining a clean and organized codebase. #JUnit #Testing #JavaDev

mnhocktweets's tweet image. 🚀 JUnit 5 Tip 🚀

Since JUnit 5, leverage package-private visibility for classes and methods to enhance encapsulation in your tests.  This helps keep your testing logic close to the code it's testing while maintaining a clean and organized codebase.

#JUnit #Testing #JavaDev

💡Spring Boot tip: Use @Profile to group and load beans/configurations in specific environments. #SpringBoot #JavaDev

mario_casari's tweet image. 💡Spring Boot tip: Use @Profile to group and load beans/configurations in specific environments.
#SpringBoot #JavaDev

💡 Java tip: List.reversed() returns an unmodifiable reversed view of the original list. #Java #JavaDev

mario_casari's tweet image. 💡 Java tip: List.reversed() returns an unmodifiable reversed view of the original list. #Java #JavaDev

💡 Java tip: Stream.toArray(Type[]::new) is a clean, type-safe way to get arrays from streams. ✅ Avoids Object[] and casting. #Java #JavaDev

mario_casari's tweet image. 💡 Java tip: Stream.toArray(Type[]::new) is a clean, type-safe way to get arrays from streams. 

✅ Avoids Object[] and casting.
#Java #JavaDev

💡 Java tip: Starting from Java 8 you can use ChronoUnit.between(start, end) to calculate time intervals in a specific unit (days, hours, minutes) without manual math. #Java #JavaDev

mario_casari's tweet image. 💡 Java tip: Starting from Java 8 you can use ChronoUnit.between(start, end) to calculate time intervals in a specific unit (days, hours, minutes) without manual math.
#Java #JavaDev

💡Java tip: Starting from Java 8 prefer java.time over Date and Calendar. #ModernJava #JavaDev

mario_casari's tweet image. 💡Java tip: Starting from Java 8 prefer java.time over Date and Calendar.
#ModernJava #JavaDev

Loading...

Something went wrong.


Something went wrong.


United States Trends