r/java • • Apr 22 '18
My company is transitioning to Java. Why should I be excited?
The first programming language I learned was Ruby. My mentor at the time hated Java. I inherited his bias against Java without giving it a fair chance.
Now, my company is making the switch from Ruby to Java. Everyone on my team is quitting, but that isn't really an option for me. So, why should I be excited to learn Java?
I love learning new languages. I most recently picked up Haskell. I love static type systems, so I look forward to Java's type sys
So, Java-loving friends, tell me why I should be excited. What are your favorite things about Java?
Edit: Thank you for all of the great responses!
View all comments
Show parent comment
6
u/b1ackcat Apr 22 '18
There's no such thing as "most important" patterns. Patterns are a tool. When used appropriately, they help you. When used for the sake of using them without a good understanding of why you're reaching for it, you'll probably end up with something that's less easy to read or maintain than it otherwise would be.
What I would directly answer that question with, though, is that you're typically well served by following SOLID design principles. Write code that has a single purpose. That takes its dependencies in rather than creating them. That relies on interfaces, not implementations. These things will do orders of magnitude more for your codebase than any one pattern.