#javadev search results

💡Spring Boot tip: Use TaskScheduler to implement lightweight dynamic tasks (consider Quartz for more complex requirements). #SpringBoot #JavaDev 🧵Text example to follow:

mario_casari's tweet image. 💡Spring Boot tip: Use TaskScheduler to implement lightweight dynamic tasks (consider Quartz for more complex requirements).
#SpringBoot #JavaDev 
🧵Text example to follow:

🚀 Spring Boot: Spring Data JPA has a built-in support for pagination with Pageable. ✅You should use pagination in your repositories instead of fetching all. #SpringBoot #JavaDev

mario_casari's tweet image. 🚀 Spring Boot: Spring Data JPA has a built-in support for pagination with Pageable. 

✅You should use pagination in your repositories instead of fetching all.
#SpringBoot #JavaDev

💡Spring Boot tip: If you need to implement integrations tests for Spring MVC controllers, and mock everything else, use @WebMvcTest to load only MVC-related beans. #SpringBoot #JavaDev

mario_casari's tweet image. 💡Spring Boot tip: If you need to implement integrations tests for Spring MVC controllers, and mock everything else, use @WebMvcTest to load only MVC-related beans.
#SpringBoot #JavaDev

💡 Java tip: Catch mistakes at compile time annotating overridden methods with @Override. #Java #JavaDev

mario_casari's tweet image. 💡 Java tip: Catch mistakes at compile time annotating overridden methods with @Override.
#Java #JavaDev

💡 Java tip: Use Files.readString() and Files.writeString() for straightforward file I/O. #Java #JavaDev

mario_casari's tweet image. 💡 Java tip: Use Files.readString() and Files.writeString() for straightforward file I/O.
#Java #JavaDev

💡 SOLID Principles: Interface Segregation Principle (ISP) states that clients shouldn’t depend on methods they don’t use. ✅ Large, general-purpose interfaces should be broken down into smaller, more specific ones. #Java #JavaDev

mario_casari's tweet image. 💡 SOLID Principles: Interface Segregation Principle (ISP) states that clients shouldn’t depend on methods they don’t use.

✅ Large, general-purpose interfaces should be broken down into smaller, more specific ones. 
#Java #JavaDev

💡 Java tip: Use parallelStream() with care. It's ideal for CPU-intensive tasks, not I/O operations. #Java #JavaDev

mario_casari's tweet image. 💡 Java tip: Use parallelStream() with care. It's ideal for CPU-intensive tasks, not I/O operations.
#Java #JavaDev

💡 Java tip: Avoid boxing overhead by using primitive streams. #Java #JavaDev

mario_casari's tweet image. 💡 Java tip: Avoid boxing overhead by using primitive streams.
#Java #JavaDev

💡Java tip: Use WeakHashMap for caching when the unreferenced keys should be garbage-collected. #Java #JavaDev

mario_casari's tweet image. 💡Java tip: Use WeakHashMap for caching when the unreferenced keys should be garbage-collected.
#Java #JavaDev

💡Java tip: Use List.copyOf(list) for a safe, unmodifiable copy, while avoiding accidental changes. #Java #JavaDev

mario_casari's tweet image. 💡Java tip: Use List.copyOf(list) for a safe, unmodifiable copy, while avoiding accidental changes.  #Java #JavaDev

🚀 Spring Boot: In development phase, use spring.main.lazy-initialization=true to speed up the startup of the application. #SpringBoot #JavaDev

mario_casari's tweet image. 🚀 Spring Boot: In development phase, use spring.main.lazy-initialization=true to speed up the startup of the application.
#SpringBoot #JavaDev

💡 Java tip: Starting from Java 8 you can use List.removeIf(<predicate>) to clean up collections in one line. #Java #JavaDev

mario_casari's tweet image. 💡 Java tip: Starting from Java 8 you can use List.removeIf(&amp;lt;predicate&amp;gt;) to clean up collections in one line. 
#Java #JavaDev

💡 Java tip: Use Objects.requireNonNullElse(value, defaultValue) to avoid null checks. #Java #JavaDev

mario_casari's tweet image. 💡 Java tip: Use Objects.requireNonNullElse(value, defaultValue) to avoid null checks.
#Java #JavaDev

Java tip: Starting from Java 11, if you need to repeat n times a specific string, you can use the String method repeat(n). #Java #JavaDev

mario_casari's tweet image. Java tip: Starting from Java 11, if you need to repeat n times a specific string, you can use the String method repeat(n). 
#Java #JavaDev

💡 Java tip: Starting from Java 11, you can use String.strip() instead of trim(), since it handles Unicode whitespaces correctly. #Java #JavaDev

mario_casari's tweet image. 💡 Java tip: Starting from Java 11, you can use String.strip() instead of trim(), since it handles Unicode whitespaces correctly.
#Java #JavaDev

🚀 You can use async logging in Spring Boot by configuring logback (logback-spring.xml). ✅ Log messages are sent into a queue, and are elaborated by a separate background thread. ✅ This reduces I/O bottlenecks. #SpringBoot #JavaDev

mario_casari's tweet image. 🚀 You can use async logging in Spring Boot by configuring logback (logback-spring.xml).

✅ Log messages are sent into a queue,  and are elaborated by a separate background thread.

✅ This reduces I/O bottlenecks.
#SpringBoot #JavaDev

Java tip : Starting from Java 19 you can explore a feature called "virtual threads". ✅ Virtual threads are lightweight threads managed by the JVM rather than the OS. #Java #JavaDev

mario_casari's tweet image. Java tip : Starting from Java 19 you can explore a feature called &quot;virtual threads&quot;. 

✅ Virtual threads are lightweight threads managed by the JVM rather than the OS.
#Java #JavaDev

💡Java tip: Starting from Java 15 you can use String.formatted(...) for string formatting instead of String.format(...). #Java #JavaDev

mario_casari's tweet image. 💡Java tip: Starting from Java 15 you can use String.formatted(...) for string formatting instead of String.format(...).
#Java #JavaDev

💡SOLID principles: Dependency Inversion Principle (DIP) states that high-level modules should not depend on low-level modules; instead, both should depend on abstractions. #Java #JavaDev

mario_casari's tweet image. 💡SOLID principles: Dependency Inversion Principle (DIP) states that high-level modules should not depend on low-level modules; instead, both should depend on abstractions.
#Java #JavaDev

No results for "#javadev"
No results for "#javadev"
Loading...

Something went wrong.


Something went wrong.


United States Trends