#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

💡 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

⚙️ Learn how Records improve serialization, pattern matching, and JSON integration in modern Java apps. #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

🚀 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 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: 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

🚀 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

💡 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

💡 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

🚀 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

💡 Java tip: Use Optional.filter(...) to add inline conditions to an Optional object. ✅ It lets you apply a condition directly and it returns the original Optional if the predicate passes, an empty one otherwise. #Java #JavaDev

mario_casari's tweet image. 💡 Java tip: Use Optional.filter(...) to add inline conditions to an Optional object.

✅ It lets you apply a condition directly and it returns the original Optional if the predicate passes, an empty one otherwise.
#Java #JavaDev

💡 Java tip: Starting from Java 12 you can use String.transform(Function) to apply lambdas directly to strings. #Java #JavaDev

mario_casari's tweet image. 💡 Java tip: Starting from Java 12 you can use String.transform(Function) to apply lambdas directly to strings.
#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: 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


static vs instance methods explained: Static: Math.max(5, 10) ✅ Belongs to CLASS No object needed Instance: list.add(5) ✅ Belongs to OBJECT Needs object first Static = shared across all Instance = unique per object 🎯 #JavaDev #Programming


This is gold. I’ve always defaulted to cron jobs, but @Scheduled in Spring Boot feels so natural for small recurring jobs. Example: @Scheduled(cron = "0 0/5 * * * ?") // every 5 mins Big fan of how Spring keeps things simple 🙏 #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

🎯 Focus on business logic, not persistence noise. Hibernate Panache takes care of the rest. #JavaDev


🛠️ Developers who use SpotBugs spend less time fixing and more time building. Start clean, stay clean. #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: 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: 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

💡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

🚀 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 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: 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

💡 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: 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: Use Optional.filter(...) to add inline conditions to an Optional object. ✅ It lets you apply a condition directly and it returns the original Optional if the predicate passes, an empty one otherwise. #Java #JavaDev

mario_casari's tweet image. 💡 Java tip: Use Optional.filter(...) to add inline conditions to an Optional object.

✅ It lets you apply a condition directly and it returns the original Optional if the predicate passes, an empty one otherwise.
#Java #JavaDev

💡 Java tip: Starting from Java 12 you can use String.transform(Function) to apply lambdas directly to strings. #Java #JavaDev

mario_casari's tweet image. 💡 Java tip: Starting from Java 12 you can use String.transform(Function) to apply lambdas directly to strings.
#Java #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

🚀 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 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: 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

💡Java tip: Use ThreadLocal.withInitial(...) to provide each thread its own safe default value. ✅ The value is created lazily #Java #JavaDev

mario_casari's tweet image. 💡Java tip: Use ThreadLocal.withInitial(...) to provide each thread its own safe default value.

✅ The value is created lazily
#Java #JavaDev

🚀 JUnit 5 Tip🚀 In 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. #JUnit5 #Testing #JavaDev

mnhocktweets's tweet image. 🚀 JUnit 5 Tip🚀

In 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. 

#JUnit5 #Testing #JavaDev

Loading...

Something went wrong.


Something went wrong.


United States Trends