So I've been considering learning Ruby. Just for background info, I am relatively new to programming, do it in my free time for fun, and know some java and basic python. Would anyone here have any suggestions as to how to go about doing this? Perhaps suggested resources or books I should look at? (Note: I recognize that people have asked somewhat similar questions here, but that was a full 7 years ago. Maybe there are more up-to-date resources?)
To some degree, it's a matter of individual taste. But I prefer...in this order...
1. Spring Boot autoconfiguration for any configuration that is essentially boilerplate.
2. Component-scanning/autowiring (e.g., @Component/@Controller/@Repository/@Service/etc and @Autowired) for the beans whose code is in my control.
3. JavaConfig (e.g., @Bean methods) for beans that aren't covered by #1 and #2
4. XML almost never...usually only when I'm (temporarily) leveraging some existing config that is already written in XML.
Patterns are essential design tools for Java developers. Java EE Design Patterns and Best Practices helps developers attain better code quality and progress to higher levels of architectural creativity by examining the purpose of each available pattern and demonstrating its implementation with various code examples. This book will take you through a number of patterns and their Java EE-specific implementations.
Lamdas are useful but for the most part they are matter of programming preference . I would say people should only use them if it feels more natural to them as opposed to a "best practice"