https://kotlinlang.org logo
Docs
Join the conversationJoin Slack
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
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
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
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
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 Linen
random
  • t

    therealbluepandabear

    04/03/2021, 2:34 AM
    Fun fact: there are many top apps using Kotlin, including TikTok and Instagram: Also Microsoft itself is using Kotlin for their OneDrive app. Yes, Microsoft. I think they should be using something else (don't want to name names here)... Guess Kotlin is just too good to resist 😅
    n
    s
    i
    • 4
    • 6
  • e

    elect

    04/03/2021, 9:46 PM
    I just noticed how renaming a variable in a thousand line file is since some days blazing fast... almost instantaneous.. is this thanks to the new kotlin IR?
    o
    a
    • 3
    • 4
  • t

    therealbluepandabear

    04/04/2021, 12:21 AM
    Random notification: I made a server for students at #students, if you are a student and you are learning/developing in Kotlin/Android then come and join! Ask questions, or just chat about stuff related to Kotlin! I appreciate every single person who joins! Thank you 🙂
    o
    m
    • 3
    • 4
  • t

    therealbluepandabear

    04/06/2021, 8:54 PM
    Fun fact: If you are making an app on the Play Store, Google used to get 30% of profits, now they announced a cut to 15% if you are earning under one million dollars. This was after Apple announced that they are also cutting profits. https://www.theverge.com/2021/3/16/22333777/google-play-store-fee-reduction-developers-1-million-dollars
    n
    • 2
    • 9
  • t

    therealbluepandabear

    04/12/2021, 12:13 AM
    Random idea: Maybe we should make a report server for people who are going against the rules? For example you can report the time in which the incident happened, what happened exactly, etc. in specified formats. I think this is a good idea? Moderators can also check this server once in a while and take appropriate action. For evidence they can include images/recording... et cetera. Tell me your thoughts regarding this. For example: User name: Tom Joney Incident Type: Spamming Date: 12 April 2021 Extra information: Tom Joney was spamming on 'feed', he posted around 3 spam messages. The message was 'I LOVE KOTLIN'. Screenshot: (Insert screenshots.) Edit: I created channel at #reports
    👎 1
    👍 2
    n
    l
    +2
    • 5
    • 14
  • s

    Sam

    04/17/2021, 5:51 PM
    Good morning everyone. I am curious about this topic on Quora. https://www.quora.com/Is-it-illegal-to-automatically-upload-a-users-contact-when-ch[…]s%20it%20legal%20automatically%20upload%20user%20contact%20%3F
    Is it illegal to automatically upload a user's contact when changed (add/remove contact) for finding friends? (mentioned the purpose of use in privacy/term to improve application, responsibility for user's data, have previously granted for access to contacts)?
    How’s about your opinion on this topic/situation in your country or globally?
    n
    • 2
    • 4
  • j

    Joost Klitsie

    04/19/2021, 8:26 AM
    hi all! Even if the #android channel seems more and more suitable for this question 😄 : Do you guys know of any good keyboards for programming? I never really cared, but after a beer incident I do need a new one now and I thought: why not a decent one? 🙂 My prerequisites: • Should be with Windows layout • Preferably under or around 100 euros ◦ but if there is a crazy good keyboard out there worth a premium price I am also interested • Need to be able to order it in Europe (Hungary to be more precise) • I do not care for gaming or RGB, but also I do not mind having a gaming keyboard with fancy lights if it is good for programming 🙂 Any thoughts are highly appreciated! Googling shows me either 300 dollar keyboards or are more gaming focused topics, hopefully someone has more insights from a programming perspective
    ⌨️ 1
    😄 1
    😂 1
    r
    k
    +2
    • 5
    • 9
  • r

    Rob Elliot

    04/21/2021, 4:01 PM
    Anyone know any nice naming patterns for a parallel class graph, where in one graph the types represent data that is partial or incomplete (or not yet validated?) but the other graph represents complete, validated data? In the former all or many “required” properties on classes may be nullable, and may have less precise types, and post validation these would be copied into instances of classes representing the complete, validated data.
    PartialFoo
    , 
    UnvalidatedFoo
    , `IncompleteFoo`… none of those feels quite right, somehow. Is there a standard I’m forgetting / never learnt?
    e
    r
    d
    • 4
    • 8
  • d

    dewildte

    04/21/2021, 5:30 PM
    @hhariri Is Code With Me coming to Android Studio?
    ➕ 2
    :kotlin-intensifies: 1
    h
    n
    • 3
    • 5
  • s

    shouvik

    04/21/2021, 8:33 PM
    I am looking to learn domain modelling using object oriented design. Do you have any resource recommendations for that? To add more context, I am not looking for a “design patterns” book. For example, “Domain modelling made functional” is a great book that describes the process in functional approach. The nearest thing I know of is the “Practical object oriented design” book by Sandy Metz. Are there any other good resources that you used and would recommend?
    m
    • 2
    • 3
  • r

    rajesh

    04/22/2021, 4:31 PM
    I'm building social media platform where users can like and comment on post. I want to implement rising posts features. For example, when more and more users like and comment a post, it should be visible to users as in top posts section. What should be pseudo code or architecture for it? Here's what I thought: • Maintain a redis list (or set) for top 10 posts • On every like and comment, calculate score counted by total likes and comments Compare score in redis list elements. • If it's more than any element, push current post to that index. Any other approach is also appreciated.
    n
    • 2
    • 2
  • r

    rajesh

    04/25/2021, 9:29 AM
    Some questions on containerising any application Suppose I've spring boot application that uses multiple technology like postgres, Neo4j, RabbitMQ etc. I want to understand following things 1. Do we have to turn every thing (spring boot app itself, postgres etc) into container image for better performance? Or only containerising app itself is fine? 2. If we containerise everything, can we deploy all containerised apps on single node? Or we should use different node? 3. Using kubernetes for monolith spring boot app (one person project) is good ? Or I should avoid it?
    t
    c
    • 3
    • 4
  • a

    Ananiya

    04/26/2021, 6:41 PM
    Is kotlin going to change its logo ? Or am I wrong
    :kotlinnew: 4
    :kotlin-intensifies: 3
    r
    e
    t
    • 4
    • 9
  • c

    Colton Idle

    04/26/2021, 7:19 PM
    What does everyone use for code formatting? 1️⃣ Spotless 2️⃣ Ktlint 3️⃣ ktfmt 4️⃣ other (comment) We've been using ktlint but overall the small little bugs and differences between editorconfig, intellij auto format, and ktlintFormat is just more annoying than anything. Curious if there's another tool that people have been really happy with?
    2️⃣ 13
    3️⃣ 2
    4️⃣ 4
    1️⃣ 1
    n
    • 2
    • 3
  • j

    Jason5lee

    05/01/2021, 11:01 AM
    Why Serialization Anomaly is possible if all other three are not? Source: https://www.postgresql.org/docs/9.5/transaction-iso.html
    n
    • 2
    • 1
  • h

    Hovhannes

    05/03/2021, 6:28 AM
    Hello everybody, I've a question related to a CV. Can we write in a CV like the following?                                                                                                                                        Methodologies: OOP, Design Patterns, MVVM pattern
    n
    • 2
    • 2
  • n

    napperley

    05/07/2021, 12:43 AM
    Looks like the IntelliJ Flatpak is official ( https://flathub.org/apps/details/com.jetbrains.IntelliJ-IDEA-Community )! 🎉 What testing have JetBrains done to ensure the IntelliJ Flatpak works (eg which Linux distros were used for testing)?
    d
    t
    t
    • 4
    • 6
  • m

    Muhammad Zaryab Rafique

    05/07/2021, 12:28 PM
    Hi Everyone, I need suggestion in declarative programming. how I can make my if else code into declarative code
    c
    i
    • 3
    • 8
  • e

    elect

    05/09/2021, 5:17 AM
    I need to interact with
    curl
    and json, does anyone know a library which may be the perfect fit for me? Atm I'm getting inspired by this
    r
    • 2
    • 9
  • v

    Vitaliy Zarubin

    05/13/2021, 10:37 AM
    I can't decide which is the best option for adding 3 numbers?
    :kotlin-intensifies: 4
    :javascript: 2
    3️⃣ 1
    😂 1
    i
    r
    +4
    • 7
    • 13
  • l

    LeoColman

    05/14/2021, 8:17 PM
    https://stackoverflow.com/questions/59560903/what-is-the-difference-between-step-into-and-force-step-into-in-the-intellij Do anybody know why this is the default for IntelliJ?
    • 1
    • 4
  • l

    LeoColman

    05/14/2021, 8:17 PM
    Step-Into usually just steps into any function, but IntelliJ seems to skip it if it's not your code (unless you force)
    e
    • 2
    • 1
  • v

    Vitaliy Zarubin

    05/15/2021, 9:29 AM
    inline class Class1(val s: String)
    data class Class2(val s: String)
    sealed class Class3(val s: String)
    enum class Class4(val s: String)
    abstract class Class5(val s: String)
    annotation class Class6(val s: String)
    open class Class7(val s: String)
    final class Class8(val s: String)
    Are there any other options? 🤔
    :nice: 1
    l
    r
    • 3
    • 7
  • p

    PHondogo

    05/17/2021, 6:54 AM
    Anyone knows good books to learn programming basics using Kotlin for children 10 years old?
    v
    • 2
    • 2
  • h

    hho

    05/17/2021, 11:39 PM
    Since yesterday, I can't log into my Jetbrains account with my username and password anymore. I reset the password, but after logout, the new password again isn't accepted. I now found out, that the username is the problem: With my email address, login works normally. Why the change, when every login dialog still says "Username or email address"? (in fact, e.g. the settings sync login dialog only says "username")
    o
    • 2
    • 4
  • m

    Matteo Mirk

    05/18/2021, 8:18 AM
    Best wishes to @nfrankel for his talk at Codemotion these days! 🎉
    ❤️ 2
    n
    • 2
    • 1
  • r

    Rob Elliot

    05/19/2021, 4:10 PM
    Anyone else start an example method with
    fun foo
    and desperately want to add
    fighters
    ? No? Just me…
    ➕ 3
    😀 1
    😂 1
    r
    e
    +2
    • 5
    • 4
  • m

    Muhammad Zaryab Rafique

    05/21/2021, 1:23 PM
    Hi Everyone. how we can achieve this functionality, When use click on any link on phone then link website will show in our android app. Kindly guide me.
    :google: 2
    v
    • 2
    • 2
  • a

    Amir J

    05/24/2021, 7:35 AM
    Hi everyone, I don't mean to spam here. But I thought this might help someone. This is our complete Android App Developer course using Kotlin. It is 30 hours of content that covers everything from UI, Networking, Concurrency, Storage, Firebase and more. We are offering it at a 100% discount. If you want a free coupon, reach out to me here or email info@oddinstitute.com and we’ll send you a free coupon. Complete Android Course: https://www.udemy.com/course/android-developer-course
    👍 1
    ❤️ 2
    👍🏻 1
    t
    • 2
    • 4
  • j

    jmfayard

    05/25/2021, 7:23 AM
    Hello world What are your favorite plugins for IntelliJ?
    h
    v
    +5
    • 8
    • 14
Powered by Linen
Title
j

jmfayard

05/25/2021, 7:23 AM
Hello world What are your favorite plugins for IntelliJ?
h

hho

05/25/2021, 7:25 AM
https://plugins.jetbrains.com/plugin/8575-nyan-progress-bar of course 😄
👍 3
🙈 1
v

Vitaliy Zarubin

05/25/2021, 7:27 AM
https://plugins.jetbrains.com/plugin/6954-kotlin
:kotlin: 4
k

kqr

05/25/2021, 7:45 AM
https://plugins.jetbrains.com/plugin/2162-string-manipulation
👍 3
https://plugins.jetbrains.com/plugin/11631-presentation-assistant
👍 2
w

wcaokaze

05/25/2021, 7:58 AM
https://plugins.jetbrains.com/plugin/164-ideavim
➕ 6
j

Jiddles

05/25/2021, 1:53 PM
https://plugins.jetbrains.com/plugin/10080-rainbow-brackets
👍 6
a

Arkadii Ivanov

05/30/2021, 11:25 PM
https://plugins.jetbrains.com/plugin/14241-mvikotlin-time-travel 🙃
👍 1
n

Nimish Nandwana

06/01/2021, 2:58 AM
I wonder why no one mentioned this one https://plugins.jetbrains.com/plugin/9792-key-promoter-x
k

kqr

06/01/2021, 6:33 AM
isn't it basically same as presentation assistant? (with uglier UI/UX)
j

Jiddles

06/01/2021, 6:36 AM
Key Promoter X is one of the highest rated IntellJ plugins though
n

Nimish Nandwana

06/01/2021, 7:05 AM
@kqr the answer is no. • Presentation Assistant Only Highlights the shortcuts used • Key Promoter X Analyzes the action you performed via ui and checks if a shortcuts exists for it. It displays that shortcut and if you do anything repeatedly, it asks to you make a shortcut for it. Try it out, there would be no going out
I was about to try VS code but saw this issue and didn't go for it. Basically I was expecting a Key Promoter for VS code https://github.com/Microsoft/vscode/issues/26729
k

kqr

06/01/2021, 7:08 AM
Only Highlights the shortcuts used
this is not true, but apparently it does not show shortcuts for as much interactions as KPX
but that history with missed shortcuts is nice
View count: 4