https://kotlinlang.org logo
Title
t

Trishal Mandrik

04/15/2023, 4:44 AM
@dave @s4nchez would it possible for you guys to make more videos on http4k for beginners. The company which I'm working for is soon going to shift from Nodejs to http4k and few teams already shifted. Beginner friendly tutorials will be much helpful. That's why.
j

James Richardson

04/15/2023, 2:23 PM
Would it be possible to talk a little.about the particular content that would be useful. Beginner content could mean many different things, so if there are specific learnings that would.make a difference, it would be great to know... thanks!
a

Andrew O'Hara

04/15/2023, 4:58 PM
This is something I've been starting to work on recently. My first attempt was in the style of Fireship's "Code in 100 Seconds" series, but I think it might be too derivitave.
d

dave

04/15/2023, 8:20 PM
Who cares about derivative? Established teaching mechanisms are established for a reason... They don't have to be original, they just need to be effective! 🙃
@Trishal Mandrik we'd love to hear about the experiences of the teams that have already shifted - what did they find hard etc... 😉
t

Trishal Mandrik

04/16/2023, 8:56 AM
@James Richardson By beginner content I mean writing routes, nested routes, connecting to databases like Postgres, MongoDB, etc, querying a DB, CRUD operations, authentication and authorization, etc.
@dave Sure, I'll share their experiences after asking them.
a

Andrew O'Hara

04/16/2023, 3:37 PM
Http4k isn't an application framework, so you're free to use whatever database libraries you want! I'm not sure how in-depth I want to go into in my first video, but I'll see if I can fit those in.
d

dave

04/16/2023, 3:42 PM
We have always taken the view that we don't want to get involved in documenting all the database APIs etc. in order to avoid having to keep them updated and to avoid having to answer questions about them! That's why all of the examples also tend to stay away from specific technologies which we don't integrate with 😉
p

Philipp Mayer

04/17/2023, 4:50 PM
I'd say something along the lines of @dmcg and @Dmitry Kandalov's refactoring from spring to http4k catches most users. I showed it to some colleagues and they found that particularly helpful.
I guess the biggest "obstacle" is that http4k fits so well into that xp/TDD/name-it-however-you-want mindset that people coming from batteries-included frameworks will be surprised at first. E.g. it's astonishing how many Sr. engineers could never imagine to use no DI framework.🥲
Anyway, I'd love to help if you want to do something in this direction, as I still (have to) work with Spring Boot. Personally, I'm imagining something like this (with a little more text around): https://www.kotlinvsjava.com/
a

Andrew O'Hara

04/17/2023, 5:34 PM
Yes, it's difficult to help people with that mindset. I feel like most of the time, they don't actually understand what's going on underneath all of Spring's indirection, so it's a hard sell to get them out of that comfort zone. I feel like you're always going to have better luck converting someone who actually wants more control and testability over their application. I do have something that's less about Http4k, and more about building a testable application from the ground up: https://medium.com/better-programming/writing-testable-services-in-kotlin-e56d0de0b82b The video I'm working on right now still isn't what you're looking for, but is more of a primer on the basic components of Http4k: server, client, lens, filter, contract, auth.
Confession time: I've never actually finished one of Duncan's videos. I'm sure they're great, but when I'm in the mood for long-form videos, I usually want something where I can turn my brain off. Personal preference. My video is tentatively named "Http4k for the Impatient", and intends to be a rapid-fire ~5-minute intro.
d

dmcg

04/17/2023, 6:24 PM
I personally find my videos turn my brain off - they’re excellent for falling asleep to
d

dave

04/17/2023, 6:42 PM
I now demand a crossover youtube series where @Andrew O'Hara and @dmcg pair on a series of http4k tutorials. 😉