Posts avec #javaDev

#javaDev

Les posts publics sur X qui utilisent #javaDev.

Hashtags associés

  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
    Télécharger
    5231685.6K
  2. 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
    Télécharger
    17892.5K
  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
    Télécharger
    9111114.5K
  4. Mario Casari✓@mario_casari
    🚀 Spring Boot: To make your services return a paginated response, instead of a giant list, you can use Page<T> and Pageable. #SpringBoot #JavaDev 🧵A link to an example to follow:
    Télécharger
    2121063.7K
  5. Mario Casari✓@mario_casari
    💡 Java tip: Starting from Java 11, you can use String.strip() instead of trim(), since it handles Unicode whitespaces correctly. #Java #JavaDev
    Télécharger
    010732.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
    Télécharger
    26591.8K
  7. Mario Casari✓@mario_casari
    💡 Java tip: From Java 9 you can use Objects.checkIndex(...) to replace manual if checks for validating index bounds. ✅It is a small feature that helps making the code cleaner. #Java #JavaDev
    Télécharger
    26741.9K
  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
    Télécharger
    1121205.1K
  9. 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
    Télécharger
    08792K
  10. Mario Casari✓@mario_casari
    🚀Java: Starting from Java 14, you can use records 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 #JavaDev #Records
    Télécharger
    09641.8K
  11. Afficher plus de posts