Posts con #javaDev

#javaDev

Posts públicos de X que usan #javaDev.

Hashtags relacionados

  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
    Descargar
    1121205.1K
  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
    Descargar
    17683.8K
  3. 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
    Descargar
    013912.8K
  4. Riya Tyagi@RiyaTyagi155121
    Getting back on track with Java. Implemented a HashMap today and revised its core operations. More to come. #BackToCode #JavaDev
    Descargar
    21461.6K
  5. Mario Casari✓@mario_casari
    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
    Descargar
    114983.7K
  6. Mario Casari✓@mario_casari
    🚀 Open/Closed Principle (OCP): OCP is a SOLID principle that states classes should be open for extension but closed for modification. ✅Instead of touching existing implementation, you should use Java interfaces and inheritance to add new behavior. #Java #JavaDev
    Descargar
    561034.2K
  7. 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
    Descargar
    07451.8K
  8. Mario Casari✓@mario_casari
    💡 Spring Boot: To better handle circular dependencies, use constructor injection instead of field injection. ✅ Forces all required dependencies to be provided at creation time, allowing early detection. #SpringBoot #JavaDev
    Descargar
    3161235K
  9. Mario Casari✓@mario_casari
    🚀 Java: Use ReentrantReadWriteLock Java concurrence utility if you have to deal with frequent reads and fewer writes. #Java #JavaDev
    Descargar
    112922.5K
  10. Mostrar más posts