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
  • s

    Stanislav Myachenkov

    11/10/2020, 8:51 PM
    Hello folks, I've been messing around and wrote Kotlin project name generator, it's kinda unpredictable, but sometimes fun, check it out 🙂 (My frontend skills are pretty basic, but I've tried my best 😁 ) https://smyachenkov.com/kotlinifier/
    😂 10
    e
    m
    t
    • 4
    • 3
  • e

    elect

    11/11/2020, 7:27 PM
    would you add under VCS in
    .idea
    :
    codeStyles/codeStyleConfig.xml
    ,
    encodings.xml
    ,
    misc.xml
    and
    vcs.xml
    ?
    🇳🇴 2
    :yes-black: 2
    m
    g
    • 3
    • 5
  • j

    jasper

    11/16/2020, 10:41 PM
    I was working on a typescript project. Naturally for collections I named parameters like
    collection.filter(it => it.age > 18)
    ^-- Was told that calling the parameter 'it' is 'weird' and that I must not do this! 😄
    😆 2
    m
    t
    m
    • 4
    • 6
  • l

    louiscad

    11/19/2020, 7:30 PM
    I've seen early feedback: https://twitter.com/pilgr/status/1329446533394259977?s=19
    😬 1
    😱 5
    😮 3
    🙁 2
    m
    • 2
    • 1
  • e

    elect

    11/19/2020, 10:00 PM
    that's disappointing.. but it's part of the game when you switch arch.. I guess we are going to see a lot of other cases like that. Hopefully they'll get smoothed asap
    j
    l
    • 3
    • 16
  • a

    Ananiya

    11/23/2020, 12:30 PM
    I made this extension function for operator "*"
    operator fun String.times(i: Int){
          var string: String? = null
           repeat(i){
                string = this
           }
           return string
    }
    fun main(){
           print("hello"*8)
    }
    It suppose to print 8x but it returns null from the fun or print only 1 hello
    c
    w
    +3
    • 6
    • 18
  • m

    manlan

    11/24/2020, 5:10 PM
    When was #ktor officially released?
    g
    • 2
    • 5
  • n

    nanodeath

    11/28/2020, 5:12 PM
    you know how webpack and other frontend minifiers have tools that let you visualize your bundle? like...hey, jQuery is 60% of your bundle size, maybe you can replace that with zepto... is there something like that for Java/Kotin for uberjars?
    a
    n
    • 3
    • 10
  • r

    Ruckus

    12/01/2020, 6:51 PM
    Can anyone explain the version numbers for the Kotlin plugin? It says I'm on 203-1.4.10-release-IJ5981.133, and that's it's the latest. Shouldn't it be 1.4.20-...? And what does the 203 mean? I was under the impression that had something to do with EAP, but my work computer is on the same version, and it's never been set to anything except stable.
    m
    • 2
    • 12
  • i

    itnoles

    12/01/2020, 11:14 PM
    https://www.neowin.net/news/salesforce-to-acquire-slack-for-277-billion Hmm
    😥 2
    n
    • 2
    • 1
  • h

    HankG

    12/02/2020, 7:23 PM
    On M1 my native JVM bechmarks have been quite good... Rosetta about 30% slower than the intel MBP though 😞 https://nequalsonelifestyle.com/2020/11/24/apple-silicon-benchmarks-pt7-renaissance/
    e
    b
    • 3
    • 11
  • s

    Slackbot

    12/03/2020, 1:20 PM
    This message was deleted.
    t
    a
    • 3
    • 3
  • e

    elect

    12/04/2020, 9:17 AM
    evaluating the upgrade of my pc, I stumbled upon the cpu choice, I've always thought that a new ryzen (5xxx or 3xxx gen) would suit perfectly, but I read this and now I'm puzzled.. has anyone have some personal experience in this?
    a
    k
    h
    • 4
    • 12
  • c

    Colton Idle

    12/07/2020, 12:50 AM
    Anyone doing android dev and you have a lot of ram on your machine? Consider starring this issue: https://issuetracker.google.com/issues/120953354
    k
    • 2
    • 3
  • j

    jmfayard

    12/07/2020, 2:24 PM
    :parrot-upside-down: 4
    ☝️ 3
    😱 2
    💯 1
    🎯 2
    😁 6
    e
    d
    • 3
    • 2
  • b

    bjonnh

    12/08/2020, 4:42 PM
    Raaaahh intellij is sooo bad with multi screen on linux… (sorry had to vent)
    t
    a
    • 3
    • 14
  • s

    Stacy

    12/11/2020, 10:09 PM
    Just a friendly reminder that it isn't too late to sponsor a family or individual for the holidays. 🕎🎄🎅 🕯️🙏📿 I know it can be overwhelming with the holidays and all that needs be done, but there are more families than ever in need this holiday season.
    ❤️ 2
    c
    • 2
    • 2
  • m

    Marc Knaup

    12/14/2020, 5:18 PM
    Just discovered ❤️
    :kotlin-intensifies: 13
    k
    d
    +3
    • 6
    • 8
  • t

    thanksforallthefish

    12/16/2020, 6:57 AM
    I have a
    data class Entity
    that I would like to refactor. in this class there are a lots of method like
    fun promote() : Entity {
      require(state == States.Initial) { "Cannot promote entity in state $state" }
      return copy(state = States.Promoted)
    }
    
    fun demote() : Entity = ... same pattern
    I would like to turn this into a type system of sort
    sealed class Entity
    
    data class Initial : Entity { fun promote() = Promoted(...) }
    
    data class Promoted : Entity { fun demote() = ... }
    however there are like a lot and a lot and a lot of usages of current
    Entity
    data class features, especially copy method and equals. how would intellij help me with this refactor? I feel like this is one of those more complex refactor some ide magicians can do in a matter of half a day but would take me forever. I am not worried of taking a long time, since even if there is some magic refactor technique I would not be expert with it and would need to learn it, but I would like to learn it so next time it will be faster.
    m
    • 2
    • 2
  • k

    kartikpatodi

    12/16/2020, 10:29 AM
    Does kotlin support jdk 15 target?
    :yes: 2
    y
    • 2
    • 1
  • m

    Marc Knaup

    12/17/2020, 5:24 PM
    JCenter & Bintray must be some of the worst services we have to work with. Publishing to Bintray works intermittently and is slow as hell. Sync with JCenter is partially broken. JCenter downloads are partially down. (https://status.bintray.com/) Gradle publishing with secure checksums is still broken for Kotlin MPP. And don’t even start with Bintray’s horrible and buggy website. Publishing plugins to Gradle Plugin Portal requires manual approval for updates. Maven Central has requirements that make every Gradle setup way more complicated. Today is one of those days where nothing works. At some point the IDE even refuses to close windows and after a restart all my file changes are gone. Maybe it’s just not my day 😅 I really wish Kotlin would get its own official build & publishing ecosystem 😐
    ➕ 7
    👍 2
    💯 5
    :blob-hug: 2
    n
    j
    +4
    • 7
    • 21
  • j

    jasper

    12/17/2020, 9:51 PM
    ^-- Made a DI lib for Swift. Maybe I'll port a Kotlin version.
    s
    • 2
    • 5
  • n

    nanodeath

    12/22/2020, 1:22 AM
    on the subject of rants, anyone else tired of
    IllegalArgumentException
    always auto-completing to
    java.lang.IllegalArgumentException
    instead of the Kotlin stdlib typealias? same goes for all the common exceptions, like
    RuntimeException
    m
    i
    • 3
    • 12
  • j

    Jitesh

    01/12/2021, 12:56 PM
    ✨ 📣 Some of the most prominent voices and the largest Kotlin communities in India bring you an event you won’t want to miss – ‘*Meet Kotlin*’. Learn Kotlin through a series of monthly webinars. Register on http://meetkt.org to interact with Kotlin experts on Jan. 16th. 🌟 🤩
    g
    • 2
    • 2
  • h

    Harrison Wong

    01/14/2021, 3:02 PM
    Just wondering - is google play developer console down? I having some errors submitting for review... https://gyazo.com/cda60d8b3fc753c9d44bae6cd2fc6ce6 DAE face this error too?
    s
    • 2
    • 1
  • s

    stephanmg

    01/14/2021, 3:16 PM
    is Visual Studio Code recommended to be used with Kotlin? I had better experience with IntelliJ IDEA so far using Kotlin
    m
    • 2
    • 12
  • e

    elect

    01/20/2021, 12:25 PM
    an appeal to the jetbrains guys, here https://www.jetbrains.com/idea/download/#section=linux you should list for the ubuntu snaps, the
    --edge
    options to get the EAP version
    n
    • 2
    • 4
  • s

    stephanmg

    01/21/2021, 3:12 PM
    Pretty random but still: Kotlin is really fun! It is really recreational for me. Does somebody else feel this?🙂
    :kotlin-intensifies: 16
    m
    n
    • 3
    • 2
  • s

    stephanmg

    01/22/2021, 8:55 AM
    i feel silly commenting enum classes. how should these be commented?
    r
    o
    m
    • 4
    • 20
  • p

    Purav Datta

    01/26/2021, 2:25 AM
    anyone know about using kotlin on an arduino?
    m
    n
    • 3
    • 2
Powered by Linen
Title
p

Purav Datta

01/26/2021, 2:25 AM
anyone know about using kotlin on an arduino?
m

Matteo Mirk

01/26/2021, 9:16 AM
Seems it’s not possible at the moment https://kotlinlang.slack.com/archives/C3SGXARS6/p1541048313123200
n

napperley

01/27/2021, 9:13 PM
@Purav Datta - You are better off using Kotlin on a Raspberry Pi Pico ( https://www.raspberrypi.org/products/raspberry-pi-pico/ ) after the work is done on adding the uC as a new Kotlin Native target ( https://youtrack.jetbrains.com/issue/KT-44498 ).
👍 1
View count: 2