#javadev search results

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

kingsleycodes_'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

💡 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: Use Collectors.groupingBy(...) to group stream results by a classifier. #Java #JavaDev

mario_casari's tweet image. 💡Java tip: Use Collectors.groupingBy(...) to group stream results by a classifier.
#Java #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

🎯 Focus on business logic, not persistence noise. Hibernate Panache takes care of the rest. #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 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

💡 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

🚀 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

🧠 Knowledge + AI → Build reasoning apps with LangChain4j for Java. #LLM #JavaDev


Built my 2nd Spring Boot API — FootballZone ⚽💻 You can search players by name, country, position & more 👀 Full CRUD + PostgreSQL 🗄️ Debugging was pain ngl 😩 but we move 💪 #SpringBoot #JavaDev #100DaysOfCode #buildinginpublic


🎯 Focus on business logic, not persistence noise. Hibernate Panache takes care of the rest. #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

kingsleycodes_'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

🛠️ 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

Built my 2nd Spring Boot API — FootballZone ⚽💻 You can search players by name, country, position & more 👀 Full CRUD + PostgreSQL 🗄️ Debugging was pain ngl 😩 but we move 💪 #SpringBoot #JavaDev #100DaysOfCode #buildinginpublic


💡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

⚡ Faster coding, fewer lines. Hibernate Panache = modern persistence for modern developers. #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

🚀 Less boilerplate, more productivity — discover how Panache streamlines your ORM code in Quarkus. #JavaDev #ORM


🕵️‍♂️ Find bugs automatically — even the ones you didn’t know existed. Meet SpotBugs, your new static analysis ally. #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: 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: 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 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

🚀 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

💡 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: Use Collectors.groupingBy(...) to group stream results by a classifier. #Java #JavaDev

mario_casari's tweet image. 💡Java tip: Use Collectors.groupingBy(...) to group stream results by a classifier.
#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 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

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

Loading...

Something went wrong.


Something went wrong.


United States Trends