Win a copy of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams this week in the Reactive Progamming forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

Does Kotlin look like Ruby on Rails?

 
Ranch Hand
Posts: 701
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why would I choose Kotlin as a language? What kind of projects Kotlin is made for?
What's the difference in programming with Kotlin than using Ruby on Rails, Scala, and so on?
 
Author
Posts: 105
5
Android Python Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Rogerio,

Kotlin is a general purpose language, and it can be used anywhere Java can run (inside Java servers; on Android phones), hooked into JavaScript and even compiled down to native code. It's particularly well suited for the creation of libraries which might need to run on different platforms. It's lambda support and multi-tasking make it a very good choice for event based coding, such as mobile apps.

It is really closer to Scala than Ruby. It's type safe, and is quite good at inferring the type of objects reference by variables. It is also very good at knowing when code is likely to have problems with null pointers, and complain at compile. It is less like Ruby, which has a looser type system. But can (and is) used for web application development, both inside Java frameworks like Spring and in Kotlin specific frameworks like the excellent Ktor https://ktor.io

Hope this helps, and thanks for the question

D+D
 
I do some of my very best work in water. Like this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!