+ 8
How do we feel about Kotlin?
I'm considering switching my codebases to Kotlin from Java. Anyone want to convince me?
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!!"
https://www.journaldev.com/19467/kotlin-let-run-also-apply-with
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.
https://docs.ubuntu.com/phone/en/devices/
It would be nice to have more of a developer-type mobile device than the current phones on the market.
+ 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.
+ 1
黑暗的军队 cisco thanks for the extensive answer :)
+ 1
I don't think Kotlin is as mature as Java yet, but you can give it a slow try :)
0
Java,Kotlin is a java library its easy and Damn hard
so java
0
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.
0
Everybody are welcome to online http://KotlinConf.com at October 4-5
0
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.