Hacker News new | ask | show | jobs
by dexwiz 3669 days ago
Use the right tool for the right job. This includes picking the correct language and the correct patterns for that langauge. Of course Ruby's patterns that take advantage of metaprogramming don't work in Java. But Java has a very mature Web library, Spring. It uses heavily uses dependency injection. I find DI to be a nightmare in dynamic languages like Ruby or JS but works great in Java.

We need good languages and good libraries. Just as we need good math and good physics in mechanical engineering. They exist at different layers and are not exclusive.

2 comments

I'm curious, what's the problem with DI in dynamic languages? I don't really get what you're missing other than type safety, which is inherent to everything you do in dynamic languages.
CDI, JPA, and JAX-RS already make for a super simple, light, and lightning fast backend for Angular like apps.

I think the upcoming JavaEE MVC framework (Ozark) will fill the last gap in the equation.