r/programming • • Mar 07 '24

"Java is here to stay": Popular programming language to remain on business hit lists in 2024

https://www.itpro.com/software/development/java-is-here-to-stay-popular-programming-language-to-remain-on-business-hit-lists-in-2024
994 Upvotes

577 comments sorted by

View all comments

Show parent comments

12

u/__loam Mar 07 '24

When there's old libraries that solve your problem that are battle tested.

4

u/utdconsq Mar 07 '24

Unless they are truly ancient, they can almost always be used in kotlin with almost no hacks, though?

8

u/__loam Mar 07 '24

Yeah you can call them from kotlin. You're still using Java code. If the library is internal you also need to maintain it.

1

u/DreadSocialistOrwell Mar 07 '24

Yep. I've worked on a couple of projects that are a hybrid blend of Java and Kotlin. Even worked on one that was Java, Kotlin and Scala all in the same project for a few weeks.

1

u/LiveFrom2004 Mar 07 '24

You got some example?

0

u/__loam Mar 07 '24

Not off hand but I think it's pretty obvious.

-5

u/Bloodshoot111 Mar 07 '24

You can call Java code in Kotlin. Try again

1

u/Fermi-4 Mar 07 '24

Or just write java

1

u/Bloodshoot111 Mar 08 '24

First, no never. Second it was an direct answer when Java is better as kotlin (maybe I don’t use any), where just that argument is not really a good one.

1

u/Fermi-4 Mar 08 '24

Noob

1

u/Bloodshoot111 Mar 08 '24

Ah I see, when you’re out of arguments you start using ad hominem fallacy.