Beiträge mit #javaDev

#javaDev

Öffentliche Beiträge auf X, die #javaDev verwenden.

Verwandte Hashtags

  1. 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
    Herunterladen
    07701.9K
  2. 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
    Herunterladen
    17683.8K
  3. 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
    Herunterladen
    5231665.6K
  4. Mario Casari✓@mario_casari
    💡Java tip : Return Collections.emptyList(), List.of() or Set.of() instead of null collections to avoid null checks in calling code. #Java #JavaDev
    Herunterladen
    27751.8K
  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
    Herunterladen
    07451.8K
  6. 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
    Herunterladen
    08792K
  7. Mario Casari✓@mario_casari
    💡 Java tip: Records are not limited to data only, you can add custom constructors or methods for validation. #Java #JavaDev
    Herunterladen
    2141416K
  8. Mario Casari✓@mario_casari
    💡 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
    Herunterladen
    04671.9K
  9. Mehr Beiträge anzeigen