How do we feel about Kotlin? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 8

How do we feel about Kotlin?

I'm considering switching my codebases to Kotlin from Java. Anyone want to convince me?

26th Sep 2018, 11:12 AM
iJustErik gah
iJustErik gah - avatar
9 ответов
+ 4
Looked at kotlin at the surface and language is like a mash between Java and some short-code ran backward from a scripting languages. fun main(args: Array<String>) { <--Main method line var str = "Hello World" str.let { println("$it!!") } <---String type println(str) <--Prints "$it!!" The formatting reminds me similar of software that have attempt to provide it's own 'language' but leaves parts out. Kotlin also seems to use "}" to incase parameters first instead of the traditional "(" Time will tell if its up to speed since Java is/was mainly used in mobile development. It's too bad Ubuntu isn't used for Mobile Development more. It would be nice to have more of a developer-type mobile device than the current phones on the market.
27th Sep 2018, 8:05 AM
Apple Blossom
Apple Blossom - avatar
+ 3
Firstly: DO NOT pick a language based on how you feel about it. pick a language for how it performs the task you are attempting. Many, many software projects have failed because the devs only had one tool in their tool box. if you want to be a career developer, develop the ability to adapt. As for your question. imagine Java but without all the boiler plate code and better handling of first class functions and you have Kotlin. It's still a young language so don't believe anyone who tells you it’ll replace Java soon, its too soon to tell. In fact, pretty much disregard anyone who makes a prediction on the future of anything in terms of coding languages.
27th Sep 2018, 7:53 AM
Ross Drew
Ross Drew - avatar
+ 1
黑暗的军队 cisco thanks for the extensive answer :)
26th Sep 2018, 6:56 PM
iJustErik gah
iJustErik gah - avatar
+ 1
I don't think Kotlin is as mature as Java yet, but you can give it a slow try :)
27th Sep 2018, 7:44 AM
42126ay - avatar
Java,Kotlin is a java library its easy and Damn hard so java
26th Sep 2018, 7:32 PM
Potato Hacker
Potato Hacker - avatar
ive heard it being said before. If you dont know java, learn it first before learning kotlin. if you know java, learn kotlin. reason being, java has a big community, and kotlin doesnt. and because the two languages are similar, you can easily find solutions for kotlin within the java community.
27th Sep 2018, 6:59 PM
Logomonic Learning
Logomonic Learning - avatar
Everybody are welcome to online at October 4-5
28th Sep 2018, 7:33 AM
Vadim Yangunaev
Vadim Yangunaev - avatar
Given you know both C++ and Java, I'll ask a simple question. Is it more natural for you to code in Java or C++? If your answer is Java, stay with it. If C++, switch to Kotlin as it adds guarenteed variable safety to C++ like functionality. It also allows you to avoid explict variable typing similar to Python as it detects your data's type. The only time you must explictly type is function parameters and places where your expression is not the correct type.
7th Oct 2018, 6:44 PM
John Wells
John Wells - avatar