Loading...
「ツール」は右上に移動しました。
利用したサーバー: natural-voltaic-titanium
446いいね 14492回再生

Java dev tries Kotlin for the first time

Check out Ktor: kotl.in/try-ktor-3

I've never used Kotlin or Ktor until today, so I decided to build a reverse proxy for docker to learn all about it. I'll be able to utilize Ktor's coroutines for handling async requests, built-in HTTP client for forwarding traffic, routing to dynamically proxy requests to different backend services, and things like that. But first, I wanted to get acquainted with Kotlin, so I did Kotlin Koans, which is “one of the most popular and most effective ways to get into Kotlin for people who already know Java.” And that it was.

This was a fun project to build, so I hope you enjoy the video as much as I enjoyed making it!

Original Title: So I Tried Kotlin Instead of Java

0:00 I'm building a reverse proxy for docker
1:50 Kotlin Koans
2:52 About Ktor, sponsored by JetBrains
3:56 Finish Koans
8:00 Ktor project setup for reverse proxy
9:32 What's a reverse proxy?
11:20 HttpClient
13:41 Async handling
17:15 try-catch block
19:51 getDockerServices()
21:30 Block and unblock
24:26 Persistence... with a txt file lol
25:11 Let's see if it works
26:42 Thanks for watching!!

This video is sponsored by JetBrains, the creators of Kotlin and IntelliJ IDEA.

If you're a developer, sign up to my free newsletter Dev Notes 👉 www.devnotesdaily.com/

If you're a student, checkout my Notion template Studious: notionstudent.com/

Don't know why you'd want to follow me on other socials. I don't even post. But here you go.
🐱‍🚀 GitHub: github.com/forrestknight
🐦 Twitter: www.twitter.com/forrestpknight
💼 LinkedIn: www.linkedin.com/in/forrestpknight
📸 Instagram: www.instagram.com/forrestpknight

コメント