Build APIs with Ktor and Kotlin

Поділитися
Вставка
  • Опубліковано 3 жов 2024

КОМЕНТАРІ • 65

  • @potatosheep
    @potatosheep Рік тому +6

    Please produce more content regarding the Kotlin ecosystem. I'm a new follower!

  • @veritatas678
    @veritatas678 Рік тому +2

    amazing content. Would like to see more about ktor and kotlin

    • @awesome-coding
      @awesome-coding  Рік тому

      Thank you for the feedback! More content to come for certain!

  • @robertosaldana7844
    @robertosaldana7844 Рік тому +7

    Informative video as always.
    I have only seen ktor used in API dev and interested to see a full web app built with it.
    I imagine AlpineJS will be used in the frontend as a jQuery replacement.
    So I'm also interested on the comparison with Astro.

    • @awesome-coding
      @awesome-coding  Рік тому

      Thank you for the feedback!

    • @pxnx
      @pxnx Рік тому +2

      give Kobweb a shot then ;)

  • @aliBoumedyen
    @aliBoumedyen Рік тому +4

    Very interesting subject, we would videos explaining the ecosystem of web development using Kotlin

    • @awesome-coding
      @awesome-coding  Рік тому +2

      Thank you for the feedback! More Kotlin content to come for certain!

    • @pxnx
      @pxnx Рік тому

      Kobweb it is ;)

  • @davidfry3552
    @davidfry3552 Рік тому +2

    Yes! more Ktor Content!!

    • @awesome-coding
      @awesome-coding  Рік тому +1

      I'd love to! However, it looks like it's not a vary popular topic overall 😅

    • @davidfry3552
      @davidfry3552 Рік тому

      @@awesome-coding Ya, I am using it instead of retrofit in the company I work for in our Android App. I think we need more content creates see the light then it would become more popular. It also seem like most people want to write JavaScript.Thanks again!!

  • @samdroid37
    @samdroid37 Рік тому +1

    very helpful video thank you!

  • @rkalla
    @rkalla Рік тому +8

    The amount of setup and configuration was unreal... The actual route handling was like 11 lines, DB was 20 - the other 200 were all setup and config. Ugh

    • @awesome-coding
      @awesome-coding  Рік тому +2

      Haha! I agree. This is the Java ecosystem for you.
      In all fairness, you need to do all this config process only once, and it'll give you a lot of flexibility in the long run.
      People are using this stack to build enterprise level apps, and, to some extent, I get the need of configuration over convention.
      But yes, it is a pain to look at 😅

    • @rkalla
      @rkalla Рік тому

      @@awesome-coding Good point, it might become more magical with a real project but not so obvious with a toy project. Absolutely love the video though. Thank you for putting it together

    • @sharkpyro93
      @sharkpyro93 Рік тому +4

      @@rkalla the same amount of configuration would be needed to create an enterprise level application with other tech stacks too, its not that different

    • @LucasAlfare
      @LucasAlfare 3 місяці тому +1

      Bro thinks any environment should be like python hello world 💀

    • @LucasAlfare
      @LucasAlfare 3 місяці тому +1

      Also, embeddedServer() initialization approach should be more friendly to begin with Ktor instead of using module configurations.

  • @darlingtonolelewe1212
    @darlingtonolelewe1212 Рік тому +2

    Nice video. You could have at least run the application then perform some CRUD operations on postman

    • @awesome-coding
      @awesome-coding  Рік тому +1

      You are right! Thank you for the suggestion!

  • @itrrmp
    @itrrmp 3 місяці тому

    I want more of this kotlin ktor stuff!

  • @TechBuddy_
    @TechBuddy_ Рік тому +3

    This is a fantastic video❤️
    Edit: I need go and Rust backend videos now 🙂
    Comparing astro to ktor is uhm.. I don't know man it's hard to swallow. Yes both can be used to build MPAs but can ktor use solid js islands with partial hydration ? Can astro be used to build highly scalable backend software with complex needs ? I don't think so. It's like comparing Java and javascript yes both are full of shit and have Java In the name but they are two different kinds of shit

    • @awesome-coding
      @awesome-coding  Рік тому +1

      I'm glad you liked the video.
      Regarding the Ktor vs Astro comparison, I get what you are saying. Both of them can be used to create MPAs, but with different approaches:
      - Astro has its Islands Architecture. In Ktor (plus Thymeleaf maybe) you need to leverage progressive enhancement strategies and a library such as Alpine or Petite vue to get close to Astro's performance. However, I expect HTML rendering on the server is going to be faster in the JVM world.
      - Ktor can leverage coroutines and other great features to handle requests at scale. Astro is built on top of Node, which still has good backend performance, and its non blocking io performs well in high load environments.
      So, while they are coming from such"opposing" worlds, both Atro and Ktor kind of solve the same problem with clearly different tools and approaches. This is why I think that comparing them would make an interesting video. I might be mistaking though 😅

    • @TechBuddy_
      @TechBuddy_ Рік тому

      @@awesome-coding You are definitely mistaken. Astro is turning into an SPA framework soon. It is getting a client side router.

  • @rahulagarwal968
    @rahulagarwal968 23 дні тому

    Please make a video on Flutter vs Kotlin Multiplatform. When to use what. If I am new. What to learn.

    • @awesome-coding
      @awesome-coding  22 дні тому

      Hey! If you are new, for certain you should go with Kotlin - it has a higher adoption rate, and it is more versatile.

  • @vectoralphaSec
    @vectoralphaSec Рік тому +2

    Wait Kotlin can be used for web development.

  • @murtadha96
    @murtadha96 Рік тому +1

    What would be the best way (or language) to learn to start in backend development? Especially in terms of employability.

    • @awesome-coding
      @awesome-coding  Рік тому +6

      Based on all metrics out there Java is still the most popular backend language, especially in large companies / enterprise solutions.
      Java has a bad rep for quite a while now, since it went through a period of stagnation, and other languages were offering more features, and a betted dev experience.
      However, in recent years, they really got their sh*t together - they are following a biannual release schedule and they polished up the language quite a bit.
      Java is a powerhouse, and is not going anywhere any time soon.
      If you know Java well, you can also expand in other JVM languages like Kotlin, Scala or Clojure, which are emphasising other programming paradigms.

  • @SociedadAndroide
    @SociedadAndroide 7 місяців тому

    I was expecting the app to run on the port and do some CRUD operations with it 😢

    • @awesome-coding
      @awesome-coding  7 місяців тому

      Sorry to hear that - One of my next videos will be on Kotlin, and I'll present a more complete application then.

  • @rishiraj2548
    @rishiraj2548 4 місяці тому

    Thanks

  • @kerodfresenbetgebremedhin1881
    @kerodfresenbetgebremedhin1881 Рік тому +5

    grown up backend services, ziiiiiiiiiiiiiiing

    • @awesome-coding
      @awesome-coding  Рік тому +2

      You know things are getting serious when you are managing connection pools, factories, facades and other "goodies" in your code. 😅

  • @MonichGPT
    @MonichGPT 9 місяців тому +1

    Where is the tests? Proof of work?

  • @krige
    @krige 29 днів тому

    What made you choose Exposed instead of Komapper?

    • @awesome-coding
      @awesome-coding  25 днів тому +1

      Higher usage and the fact that it is basically developed by JetBrains.

  • @j3z741
    @j3z741 Рік тому

    Kotlin's great! I'm sorry i got to ask, what is the IntelliJ theme? Looks awesome!

    • @awesome-coding
      @awesome-coding  Рік тому

      It's the default dark team in IntelliJ's new UI - www.jetbrains.com/help/idea/new-ui.html 👍

    • @j3z741
      @j3z741 Рік тому

      @@awesome-coding Thanks!

  • @baghdadbaghdad2942
    @baghdadbaghdad2942 Рік тому

    Please guys, it's been 3 days now and m still trying to build an app that get titles and descriptions of videos from a specific ytb channel and show them in a recyclerview and make each item clicable when the user click on it it leads him to thay video any ressources please ? 🙏🏼 i am desperate

  • @hafizmohd013
    @hafizmohd013 8 місяців тому

    where to get this sample code?

  • @xpynim
    @xpynim 4 місяці тому

    50 years experience? 😮 how old are you?

    • @awesome-coding
      @awesome-coding  4 місяці тому

      Fifteen! Fifteen years of experience 😅

  • @JoshuaWendrich
    @JoshuaWendrich Рік тому +1

    Informative video but I would greatly appreciate if you tried to sound less bored during the explanations.

    • @awesome-coding
      @awesome-coding  Рік тому +2

      Thanks for the feedback!
      I'll try to act more excited about Kotlin in the future 😅

    • @oliveryt7168
      @oliveryt7168 Рік тому

      To me he sounds like a normal human being..

  • @terrormapu
    @terrormapu Рік тому

    Seems Spring Boot is better..Since Kotlin I Ktor thought it will be better\friendly..

    • @awesome-coding
      @awesome-coding  Рік тому

      Ktor is still very young compared to Spring Boot. We need to give it time.

    • @terrormapu
      @terrormapu Рік тому

      @@awesome-coding yep waiting for jetbrains to do it's magic like it did for java->kotlin

    • @KimblyKinney
      @KimblyKinney Рік тому

      OK

  • @nanonkay5669
    @nanonkay5669 5 місяців тому

    Time to remake this app again

    • @awesome-coding
      @awesome-coding  5 місяців тому

      Yep - you are right! Should I stick with the JVM? 😅

    • @nanonkay5669
      @nanonkay5669 5 місяців тому

      @@awesome-coding lol yes sir, 2 year anniversary. Maybe do scalar this time since it's JVM 😂

    • @awesome-coding
      @awesome-coding  5 місяців тому

      @@nanonkay5669 I was actually considering going back to Java (since v 22 has some pretty nice improvements), and pair it with Quarkus (I'm hearing only great stuff about it)

    • @nanonkay5669
      @nanonkay5669 5 місяців тому

      @@awesome-coding that's alright with me. I'm sure Java users will greatly benefit from this

  • @mzerone-g6m
    @mzerone-g6m Рік тому

    Try elixir

    • @awesome-coding
      @awesome-coding  Рік тому

      It's on my list. However, I feel like it is a huge endeavour because I'm not familiar at all with that space, so I'm gonna need months to get a good understanding of things.

  • @savire.ergheiz
    @savire.ergheiz Рік тому +1

    Too verbose even with KT 😁

    • @awesome-coding
      @awesome-coding  Рік тому +1

      Welcome to Java my friend! The only place where you'll need to write 11 words to print "hello world" on the screen ✌️