Posts with #javaDev

#javaDev

Public posts on X that use #javaDev.

Related hashtags

  1. Mario Casari✓@mario_casari
    💡 Java: Records are not limited to data only, you can add custom constructors or methods for validation. ✅ They can have constructors, static methods, and instance methods: #Java #JavaDev
    Download
    1121205.1K
  2. Mario Casari✓@mario_casari
    🚀 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
    Download
    5231685.6K
  3. Mario Casari✓@mario_casari
    Java Tip💡: Starting from Java 14 you can use "record" to create short, immutable, data-carrying objects. ✅ They are shorter than ordinary POJOs ✅ They have built-in equals(), hashCode(), toString() ✅ They are immutable by default #Java #JavaDev
    Download
    9111114.5K
  4. Mario Casari✓@mario_casari
    🚀 Spring Boot: You can enable /actuator/beans to debug missing beans. By hitting the actuator endpoint, you will see information like: ✅ Bean name ✅ Bean type ✅ Bean scope ✅ Bean dependencies #SpringBoot #JavaDev
    Download
    07701.9K
  5. Mario Casari✓@mario_casari
    💡Java: Use Deque instead of Stack for LIFO (last-in, first-out) lists. ✅ Stack is a legacy class, it extends Vector and synchronizes every operation ✅ Deque supports the same push, pop, peek calls ✅ ArrayDeque is faster than Stack #JavaDev
    Download
    07451.8K
  6. Mario Casari✓@mario_casari
    🚀 Spring Boot: It has built-in support for pagination with Pageable. ✅You should use pagination in your repositories instead of fetching all. #SpringBoot #JavaDev
    Download
    26591.8K
  7. Mario Casari✓@mario_casari
    💡Java tip: Starting from Java 14 you can use switch expressions for shorter and cleaner multi-branch logic. #Java #JavaDev
    Download
    0131233.8K
  8. Mario Casari✓@mario_casari
    Java tip: Starting from Java 9 you can use Stream.takeWhile() for easy slicing of lists by streams. #Java #JavaDev
    Download
    310923K
  9. Mario Casari✓@mario_casari
    🚀 Java: A very interesting library by named Sift, replaces the cryptic, string-based approach of the Java Regex engine with a fluent API. #Java #JavaDev 🧵A link to the GitHub project to follow
    Download
    510814K
  10. Martin Hock@mnhocktweets
    🚀 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
    Download
    17683.8K
  11. Mario Casari✓@mario_casari
    Java tip💡: If you have a list of elements, you want to remove duplicates, and sort them in natural order or by a custom comparator, you can use TreeSet. #Java #JavaDev
    Download
    08792K
  12. Mario Casari✓@mario_casari
    💡 Java tip: Starting from Java 8 you can use List.removeIf(<predicate>) to clean up collections in one line. #Java #JavaDev
    Download
    012822.9K
  13. Mario Casari✓@mario_casari
    🚀 Spring Boot: A webhook is when another system sends a POST request to your app when something happens. In Spring Boot, you implement it simply by exposing an endpoint that receives that POST request. #SpringBoot #JavaDev
    Download
    09843K
  14. Show more posts