This week's book giveaway is in the Programmer Certification forum.
We're giving away four copies of OCP Oracle Certified Professional Java SE 11 Programmer I Study Guide: Exam 1Z0-815 and have Jeanne Boyarsky & Scott Selikoff on-line!
See this thread for details.
Win a copy of OCP Oracle Certified Professional Java SE 11 Programmer I Study Guide: Exam 1Z0-815 this week in the Programmer Certification 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
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

Anybody using Ktor

 
Ranch Hand
Posts: 502
10
Android Open BSD Slackware
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you have opinions? I guess could become the next Spring
 
Bartender
Posts: 1200
38
IBM DB2 Netbeans IDE Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ciao Giovanni,

I'm not a Ktor user but I think that Spring will rule the Java world for a long time to come. Mainly for its completeness and because, differently from old fashioned Java EE,  Spring is very quick in embracing new technologies and frameworks. Moreover, you can use Spring and Kotlin together, so I would guess that Ktor could be offered as an option for Spring developers, instead of replacing Spring.
 
Giovanni Montano
Ranch Hand
Posts: 502
10
Android Open BSD Slackware
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Claude Moore wrote:Ciao Giovanni,

I'm not a Ktor user but I think that Spring will rule the Java world for a long time to come. Mainly for its completeness and because, differently from old fashioned Java EE,  Spring is very quick in embracing new technologies and frameworks. Moreover, you can use Spring and Kotlin together, so I would guess that Ktor could be offered as an option for Spring developers, instead of replacing Spring.



Well good point Clotlin is Claude.  Ktor is really fast to deploy, Java is in relation to Kotlin as Spring to Ktor.  This means that once you get used to Kotlin, you do not want to go back to Java. In my experience as Android dev that uses now Kotlin as standard language, I have never heard a dev saying he/she regrets java. At the beginning I did not want to learn the language, because was to esoteric to me, but once I got used to the more concise syntax, java is becoming just overwhelming, especially with intelliJ ide. Everybody told me the same, once the learning curve is complete nobody want to spend extra 30 per cent reading more code, writing much more lines, typing the keyboard much more. Never heard somebody telling me that  a data class is less efficient than  a Pojo. Then using RXKotlin, the java stream concept remains so limited(but this happens also with Java and RXJava have to admit).

I am saying you this, not because I want to advocate Kotlin, but because Spring and Ktor have been built in my opnion, to maintain the same efficiency that Kotlin has over Java. Ktor is so fast, that I do not see the need to use Spring Boot, although I have to admit that the knowledge (limited) I had in Spring, was on Spring MVC not Boot.

Of course I am speaking as Kotlin, ex-Java enthusiast. And is clear that Spring has his share and Kotlin/Ktor should be more a future tool of today Java Spring developers:)
 
Claude Moore
Bartender
Posts: 1200
38
IBM DB2 Netbeans IDE Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Giovanni Montano wrote:
Ktor is so fast, that I do not see the need to use Spring Boot, although I have to admit that the knowledge (limited) I had in Spring, was on Spring MVC not Boot.
Of course I am speaking as Kotlin, ex-Java enthusiast. And is clear that Spring has his share and Kotlin/Ktor should be more a future tool of today Java Spring developers:)



When you say that Ktor is really fast (and I presume you mean is really faster than Spring / Java), do you mean to say that Kotlin generates a more efficient bytecode with respect to classic Java , or that it requires much less code to do the same thing ?
I'm asking that for this simple reason. Kotlin attracted me from day zero, mainly for the claim that it could be compiled to work in a JVM, as a native executable, or to target browser.  And personally, I think that being able to create a multitarget compiled code is a great feature for a programming language.
By the way, there's nothing wrong being a fan of this or that platform / language, so any enthusiasm is really welcome !!

 
Giovanni Montano
Ranch Hand
Posts: 502
10
Android Open BSD Slackware
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Claude Moore wrote:

Giovanni Montano wrote:

When you say that Ktor is really fast (and I presume you mean is really faster than Spring / Java), do you mean to say that Kotlin generates a more efficient bytecode with respect to classic Java , or that it requires much less code to do the same thing ?
I'm asking that for this simple reason. Kotlin attracted me from day zero, mainly for the claim that it could be compiled to work in a JVM, as a native executable, or to target browser.  And personally, I think that being able to create a multitarget compiled code is a great feature for a programming language.
By the way, there's nothing wrong being a fan of this or that platform / language, so any enthusiasm is really welcome !!


yeah faster to write, deploy.

 
I’m tired of walking, and will rest for a minute and grow some wheels. This is the promise of 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!