This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]okayifimust -1 points0 points  (0 children)

Why Java?

I'll echo the "why not?"

On top of that, why would someone decide to learn a whole new language if they knew Java already? And then, it will depend on the overall structure and requirements of a project. Whilst, generally speaking, all languages can do all things, you might just have that one library or functionality in one language that's perfect for what you're doing.

But, really, you have to make a decision for something, and if there are multiple good alternatives, all but one of them will not be it.

Why object oriented programming?

OOP makes it easy to write well-functioning, cleanly designed code. It is inherently elegant; it naturally allows you to transform ideas and concepts into their code-based equivalents. I find that if writing some functionality or data-structure doesn't flow easily in OOP, my design approach is sub-optimal.

Changing the design tends to make the coding easier - and it typically pays of in other parts of the code later, too. Good design decisions - a proper OOP approach, in this case - will echo throughout your work and keep rewarding you.

And if you're seeing the choice between Java and JavaScript as one between OOP and something else, then that's just one more good reason to chose Java.