D
D
Danil Ochagov2018-11-14 15:20:32
Java
Danil Ochagov, 2018-11-14 15:20:32

How to maintain experience from java to kotlin?

Hello, I'm thinking of starting to learn kotlin already. But as I understand it, it will be necessary to support java as well (thus sometimes writing something on it, so as not to forget). And if I want to learn something new, do I need to learn it both in kotlin and java? So, as I kind of looked at code examples, sometimes one thing is done in Kotlin in a completely different way than in java.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Slavon93, 2018-12-21
@Slavon93

It all depends on what it is for. Some say that using kotlin, use kotlin without mixing with java. In fact, it all depends on the situation.
If you work and want to use kotlin in working projects, then it’s better to once again clarify whether you need to study it at all - maybe your company is not ready to switch to it and it will be superfluous to spend time studying it at all. If the transition is possible, it should be clarified for what purposes, in what volumes its use will be permissible. Again, perhaps the main logic will be in java, and kotlin will be only in some small things. Depending on this, choose what to study first.
If you are for yourself, you don’t have projects either there or here, it’s better to study in the “first java, then kotlin” format. Many success stories say that the transition from java to kotlin takes weeks for 2 leisurely reading of the docks and books like Kotlin in action.
In general, although kotlin is not java, it can be written in the java style, especially at first. And then, when you study it enough, you can already switch to the kotlin style.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question