https://kotlinlang.org logo
Channels
100daysofcode
100daysofkotlin
100daysofkotlin-2021
advent-of-code
aem
ai
alexa
algeria
algolialibraries
amsterdam
android
android-architecture
android-databinding
android-studio
androidgithubprojects
androidthings
androidx
androidx-xprocessing
anime
anko
announcements
apollo-kotlin
appintro
arabic
argentina
arkenv
arksemdevteam
armenia
arrow
arrow-contributors
arrow-meta
ass
atlanta
atm17
atrium
austin
australia
austria
awesome-kotlin
ballast
bangladesh
barcelona
bayarea
bazel
beepiz-libraries
belgium
benchmarks
berlin
big-data
books
boston
brazil
brikk
budapest
build
build-tools
bulgaria
bydgoszcz
cambodia
canada
carrat
carrat-dev
carrat-feed
chicago
chile
china
chucker
cincinnati-user-group
cli
clikt
cloudfoundry
cn
cobalt
code-coverage
codeforces
codemash-precompiler
codereview
codingame
codingconventions
coimbatore
collaborations
colombia
colorado
communities
competitive-programming
competitivecoding
compiler
compose
compose-android
compose-desktop
compose-hiring
compose-ios
compose-mp
compose-ui-showcase
compose-wear
compose-web
confetti
connect-audit-events
corda
cork
coroutines
couchbase
coursera
croatia
cryptography
cscenter-course-2016
cucumber-bdd
cyprus
czech
dagger
data2viz
databinding
datascience
dckotlin
debugging
decompose
decouple
denmark
deprecated
detekt
detekt-hint
dev-core
dfw
docs-revamped
dokka
domain-driven-design
doodle
dsl
dublin
dutch
eap
eclipse
ecuador
edinburgh
education
effective-kotlin
effectivekotlin
emacs
embedded-kotlin
estatik
event21-community-content
events
exposed
failgood
fb-internal-demo
feed
firebase
flow
fluid-libraries
forkhandles
forum
fosdem
fp-in-kotlin
framework-elide
freenode
french
fritz2
fuchsia
functional
funktionale
gamedev
ge-kotlin
general-advice
georgia
geospatial
german-lang
getting-started
github-workflows-kt
glance
godot-kotlin
google-io
gradle
graphic
graphkool
graphql
graphql-kotlin
graviton-browser
greece
grpc
gsoc
gui
hackathons
hacktoberfest
hamburg
hamkrest
helios
helsinki
hexagon
hibernate
hikari-cp
hire-me
hiring
hiring-french
hongkong
hoplite
http4k
hungary
hyderabad
image-processing
india
indonesia
inkremental
intellij
intellij-plugins
intellij-tricks
internships
introduce-yourself
io
ios
iran
israel
istanbulcoders
italian
jackson-kotlin
jadx
japanese
jasync-sql
java-to-kotlin-refactoring
javadevelopers
javafx
javalin
javascript
jdbi
jhipster-kotlin
jobsworldwide
jpa
jshdq
juul-libraries
jvm-ir-backend-feedback
jxadapter
k2-early-adopters
kaal
kafka
kakao
kalasim
kapt
karachi
karg
karlsruhe
kash_shell
kaskade
kbuild
kdbc
kgen-doc-tools
kgraphql
kinta
klaxon
klock
kloudformation
kmdc
kmm-español
kmongo
knbt
knote
koalaql
koans
kobalt
kobweb
kodein
kodex
kohesive
koin
koin-dev
komapper
kondor-json
kong
kontent
kontributors
korau
korean
korge
korim
korio
korlibs
korte
kotest
kotest-contributors
kotless
kotlick
kotlin-asia
kotlin-beam
kotlin-by-example
kotlin-csv
kotlin-data-storage
kotlin-foundation
kotlin-fuel
kotlin-in-action
kotlin-inject
kotlin-latam
kotlin-logging
kotlin-multiplatform-contest
kotlin-mumbai
kotlin-native
kotlin-pakistan
kotlin-plugin
kotlin-pune
kotlin-roadmap
kotlin-samples
kotlin-sap
kotlin-serbia
kotlin-spark
kotlin-szeged
kotlin-website
kotlinacademy
kotlinbot
kotlinconf
kotlindl
kotlinforbeginners
kotlingforbeginners
kotlinlondon
kotlinmad
kotlinprogrammers
kotlinsu
kotlintest
kotlintest-devs
kotlintlv
kotlinultimatechallenge
kotlinx-datetime
kotlinx-files
kotlinx-html
kotrix
kotson
kovenant
kprompt
kraph
krawler
kroto-plus
ksp
ktcc
ktfmt
ktlint
ktor
ktp
kubed
kug-leads
kug-torino
kvision
kweb
lambdaworld_cadiz
lanark
language-evolution
language-proposals
latvia
leakcanary
leedskotlinusergroup
lets-have-fun
libgdx
libkgd
library-development
lincheck
linkeddata
lithuania
london
losangeles
lottie
love
lychee
macedonia
machinelearningbawas
madrid
malaysia
mathematics
meetkotlin
memes
meta
metro-detroit
mexico
miami
micronaut
minnesota
minutest
mirror
mockk
moko
moldova
monsterpuzzle
montreal
moonbean
morocco
motionlayout
mpapt
mu
multiplatform
mumbai
munich
mvikotlin
mvrx
myndocs-oauth2-server
naming
navigation-architecture-component
nepal
new-mexico
new-zealand
newname
nigeria
nodejs
norway
npm-publish
nyc
oceania
ohio-kotlin-users
oldenburg
oolong
opensource
orbit-mvi
osgi
otpisani
package-search
pakistan
panamá
pattern-matching
pbandk
pdx
peru
philippines
phoenix
pinoy
pocketgitclient
polish
popkorn
portugal
practical-functional-programming
proguard
prozis-android-backup
pyhsikal
python
python-contributors
quasar
random
re
react
reaktive
realm
realworldkotlin
reductor
reduks
redux
redux-kotlin
refactoring-to-kotlin
reflect
refreshversions
reports
result
rethink
revolver
rhein-main
rocksdb
romania
room
rpi-pico
rsocket
russian
russian_feed
russian-kotlinasfirst
rx
rxjava
san-diego
science
scotland
scrcast
scrimage
script
scripting
seattle
serialization
server
sg-user-group
singapore
skia-wasm-interop-temp
skrape-it
slovak
snake
sofl-user-group
southafrica
spacemacs
spain
spanish
speaking
spek
spin
splitties
spotify-mobius
spring
spring-security
squarelibraries
stackoverflow
stacks
stayhungrystayfoolish
stdlib
stlouis
strife-discord-lib
strikt
students
stuttgart
sudan
swagger-gradle-codegen
swarm
sweden
swing
swiss-user-group
switzerland
talking-kotlin
tallinn
tampa
teamcity
tegal
tempe
tensorflow
terminal
test
testing
testtestest
texas
tgbotapi
thailand
tornadofx
touchlab-tools
training
tricity-kotlin-user-group
trójmiasto
truth
tunisia
turkey
turkiye
twitter-feed
uae
udacityindia
uk
ukrainian
uniflow
unkonf
uruguay
utah
uuid
vancouver
vankotlin
vertx
videos
vienna
vietnam
vim
vkug
vuejs
web-mpp
webassembly
webrtc
wimix_sentry
wwdc
zircon
Powered by
Title
h

horse_badorties

07/08/2020, 9:25 AM
Hi there, basically my question is this: should I pick Kotlin to learn "real" functional programming?  Some background: I am - yet another - old school OO/Java developer wanting to learn functional programming. Since Java8/Lambdas/Streams I actively use "functional" concepts whenever I feel it makes sense, but more on a method-level scale. I still have no idea how to build an entire real world app that way. My desire to really learn FP is to evolve as a programmer, to expose myself to new concepts. This is not a career decision or something. My plan is to start with some playing around, some katas, some coding games. And finally a "real world" web app. I have no mathematical background and I'm not interested in the academic aspects of FP. I would like to understand FP as a tool for "real world programming". So the obvious language choice would have to be something like Haskell, to force me into "proper" functional programming.  Since I know and enjoy VS Code I was happy to see Haskell plugin support there, so I tried to get into it. But I was really struggling with the (IMHO poor) tooling. I am prepared to struggle with the new concepts, the new language, the new thinking. But fighting with the tooling for days on end really puts me off.  I am now considering F#, which is "functional first" with professional tooling (VS Code) and I will probably end up picking this. But not before considering Kotlin again. 😄 I had already used Kotlin in private side projects two or three years ago and absolutely loved it, because it really is "the better Java". Unfortunately I can not use it in my day job, because there is no way around Eclipse in our projects for various reasons. This will not change. So here is my question again: Should I pick Kotlin to learn "real" functional programming?  I'm aware that you guys are probably a bit biased - I'm prepared for that.  And sorry for the wall of text.
s

simon.vergauwen

07/08/2020, 10:49 AM
Hey, We're working hard in Arrow to make FP much more idiomatic in Kotlin. To that end we recently reworked
IO
to work completely in
suspend
syntax. (https://github.com/arrow-kt/arrow-fx/pull/169) And in the description there you can also see how we're trying to simplify working with other functional constructs, especially when you want/need to combine different types/concerns.
I'm also a trainer at 47 Degrees Academy, besides training and courses. We also regularly give free online talks & webinars, both from Academy and in collaboration with different meetups, etc. The next one is next week Tuesday on Arrow Optics (https://arrow-kt.io/docs/0.10/optics/dsl/). You can find much more information on the Arrow website. (https://arrow-kt.io) And all Arrow specific questions are also welcome in #arrow 🙂
We're also always happy to give mentorship to anyone that is interested in becoming an Arrow OSS contributor 🙂
Side-note: Eclipse has Kotlin support, no?
However if it's just to learn FP, then Haskell might be the way to go. Unless you're planning to do some with your learned Kotlin skills in the near future. The principles will be the same everyone, but only Haskell or Purescript will actually force you to abide by the FP rules. Additionally, what Haskell offers is not perse what we with Arrow want to achieve in Kotlin. We want to have the same guarantees, principles & laws, but we don't want to inherit unnecessary complexity that's not needed in Kotlin. (I.e.
suspend
instead of
IO
).
s

stojan

07/08/2020, 12:40 PM
My path to learning FP was mostly reading Scala and F# resources (books and talks) and trying to apply the concepts in Kotlin Kotlin has less resources than Scala/F# which is why I used resources from those communities. And I do Android (which is Java or Kotlin) so I was applying the concepts in Kotlin The nice thing about FP is that the concepts are language agnostic and transferable between languages You can use Kotlin to do real world FP, but I don't have an answer if you should do it, it's up to you
h

horse_badorties

07/08/2020, 2:30 PM
thanks for your comments!  I will certainly look at Arrow should I end up picking Kotlin. 👍 @simon.vergauwen Unfortunately the Kotlin plugin for Eclipse is not ready for primetime, not even close. As it stands Intellij/Android Studio is the only viable option for Kotlin development, at least AFAIK.
🙌 1
@stojan care to share those resources that you found helpful? 😃
also the Red book in Scala, the Functional Programming in Scala course by Odersky on Coursera A bunch of videos from here: https://fsharpforfunandprofit.com/video/
and a lot more...
h

horse_badorties

07/09/2020, 9:40 AM
thanks!
👍 1
p

PhBastiani

07/09/2020, 12:50 PM
Also : The joy of Kotlin by @pysaumont... An intro to FP ! This book helps us understand what a data type is, why lazy evaluation is so important, how to use traverse... This Kotlin book is old (published before the first release of Kotlin Coroutines). The repository contaning addons, code, exercises and solutions from the book: https://github.com/pysaumont/fpinkotlin
👏 2
d

dharrigan

07/13/2020, 7:48 PM
Would you consider Clojure?
h

horse_badorties

07/14/2020, 7:21 AM
no, I don't. But only because the Lisp-like syntax somehow never appealed to me at all.
👍🏽 1