Postări cu #JavaDev

#JavaDev

Postări publice de pe X care folosesc #JavaDev.

Hashtaguri înrudite

  1. 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
    Descarcă
    5231675.6K
  2. 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
    Descarcă
    07451.8K
  3. Mario Casari✓@mario_casari
    Java tip: Starting from Java 9 you can use Stream.takeWhile() for easy slicing of lists by streams. #Java #JavaDev
    Descarcă
    310923K
  4. Mario Casari✓@mario_casari
    💡 Java tip: Starting from Java 8, you can remove nulls easily with list.removeIf(Objects::isNull). #Java #JavaDev
    Descarcă
    0111022.8K
  5. Mario Casari✓@mario_casari
    💡Java tip: Starting from Java 14 you can use switch expressions for shorter and cleaner multi-branch logic. #Java #JavaDev
    Descarcă
    0131243.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
    Descarcă
    08792K
  7. Mario Casari✓@mario_casari
    💡 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
    Descarcă
    17902.5K
  8. 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
    Descarcă
    1121205.1K
  9. Mario Casari✓@mario_casari
    💡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
    Descarcă
    013912.8K
  10. Arată mai multe postări