Skip to content
0:00 / 0:00

#kotlin#functionalprogramming#monads

Kotlin & Functional Programming: pick the best, skip the rest by Urs Peter

Kotlin by JetBrains

100K subscribers • 61 videos on Hallway

YouTube
  • Recommended by 2 people: 2 in engineering communities.
  • Presented by Urs Peter
  • An opinion. It argues one side of a question engineers disagree on.

Intermediate. Assumes working knowledge.

34K views3 years ago2 recommendations

Programming languagesSoftware designKotlinFunctional programmingDesign patterns

Urs Peter discusses how to practically apply functional programming concepts in Kotlin without overcomplicating your codebase.

Recording brought to you by American Express. americanexpress.io/kotlin-jobs Applying Functional Programming practices in your code can quickly lead to heated debates: Hard-core FP advocates strive for the hegemony of 'functions everywhere,' whereas more conservative developers want to stay far away from the abstractions and complexity they add. The question is, who is right? Drawing on my rich experience with FP, I will share my learnings with numerous teams I have led and coached over the years with the quest to unleash the potential FP offers while avoiding the pitfall of blindly proclaiming functions as the silver bullet to everything. With many live-coded examples, we will explore the benefits of various functional concepts, ranging from basic higher-order functions, function composition, and Monads rigidly focusing on practical problems they solve rather than getting lost in academic considerations. Along the way, you will get a line-up of all the functional features Kotlin offers as well as the goodies functional libraries such as Arrow have in store. Ultimately, we want to create code that our colleagues love to maintain and extend, for which FP should be a friend rather than a burden. At the end of this talk, you will have the recipe for accomplishing this quest. Talk by Urs Peter #kotlinconf23 #Kotlin #functionalprogramming #KotlinConf

Why it's here

2 people recommend this

What people say. Recommended as a balanced introduction to functional programming concepts in Kotlin.

u/daioin r/Kotlin • Recommends

On “How not to code Kotlin like a Java dev?”

Things that Java devs usually do not use or try to avoid in Kotlin: - smart casts https://kotlinlang.org/docs/typecasts.html#smart-casts - functional style stuff(scope functions, higher order functions, composable functions, etc), here's a good video on it [video - composition over inheritance(especially powered by interface delegates) Things that Java devs usually do in Kotlin, but shouldn't: - iterate over stuff using indices - manually implement try-with-resources pattern rather than something like \`use\` scope function - construct collections, streams and other similar classes when there's a factory function available(like \`listOf\` or \`File.outputStream()\`) - use mutabl…

u/jack-nocturnein r/Kotlin • Recommends

On “Need Help learning functional programming with arrow kt in Kotlin”

There are many Youtube videos that start explaining these concepts. Here's an excerpt from my personal history: Good intro, you should find a lot of related videos from here: [video On the practical side: [video - bit of a slow burn, as it looks somewhat complicated in the beginning and then there's a 🤯 moment at the end when everything comes together...