https://kotlinlang.org logo
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
  • d

    Dalinar

    01/27/2019, 5:35 AM
    is there a technical (programming) or even mathematical term for something indicating that if it is present - it is - but if not present, - may or may not be - ? for example, if my class implements
    IAwesome
    it means that it contains an
    Awesome
    object val that can be retrieved but that if it doesn't implement
    IAwesome
    , it means nothing - the class may or may not contain an
    Awesome
    object
    🤔 1
    r
    d
    i
    • 4
    • 6
  • d

    Dalinar

    01/28/2019, 2:41 PM
    was intellij used for android development (officially) before Kotlin was sanctioned? if so, was it more pleasant than using eclipse for android?
    h
    g
    • 3
    • 2
  • d

    Dalinar

    01/28/2019, 2:44 PM
    I don't really understand the anti-Eclipse thing because apart from that 2012 android, the last time I used Eclipse was around 2005 for a couple of years - and to tell you the truth, I thought it was pretty awesome back then
    g
    • 2
    • 1
  • d

    Dalinar

    01/28/2019, 2:44 PM
    so my theory is somehow it got worse over the years?
    h
    v
    d
    • 4
    • 4
  • s

    Shawn

    01/28/2019, 2:47 PM
    which I hear was so-so, but I don’t have any experience with it myself
    j
    • 2
    • 1
  • d

    Dalinar

    01/28/2019, 2:47 PM
    how is the Kotlin plugin for Eclipse, do they keep it up to date?
    g
    • 2
    • 1
  • b

    bodiam

    01/30/2019, 9:19 AM
    I haven't used it myself, but I hear mostly bad things about it (unstable, close to unusable). Would be nice to give this plugin a bit more love, it would make it so much easier to adapt Kotlin in a more enterprise environment. I'm more than happy to promote Kotlin, but I'm not a big fan of pushing people away from their favorite IDE, whatever it may be.
    o
    a
    • 3
    • 6
  • m

    marstran

    01/30/2019, 1:35 PM
    I managed to mistakenly hit "Do not show this dialog in the future" on the dialog that appears when I hit the "Git: Update Project" button in IDEA (the blue arrow). Does anyone know how I can undo that? 😄
    • 1
    • 2
  • k

    karelpeeters

    01/30/2019, 4:42 PM
    Same for the taskbar shortcut.
    h
    o
    • 3
    • 14
  • t

    tjb

    01/30/2019, 8:08 PM
    does anyone have any good recommendations on API design / versioning books or reading materials?
    t
    • 2
    • 1
  • r

    ribesg

    02/01/2019, 10:43 AM
    Does anyone know how to reload dependencies of a project in AppCode without restarting AppCode? AppCode does not discover changes automatically after running
    carthage update
    o
    • 2
    • 8
  • d

    Davide Giuseppe Farella

    02/02/2019, 5:25 PM
    Regex performance Given a string like
    field1="x" field2="y" field3="z"
    , how can a single regex that matches the 3 field be almost 2x slower than a
    indexOf( paramName ) - substring( index ) - split( '"' ) [1]
    ? Do you use regex for this purpose? I'm just exploring them for the first time.
    m
    h
    • 3
    • 8
  • m

    Marc Knaup

    02/02/2019, 6:25 PM
    self-documenting enum values 😂
    enum class Case {
    
    		lowercase,
    		lowerCamelCase,
    		lower_snake_case,
    		UPPERCASE,
    		UpperCamelCase,
    		UPPER_SNAKE_CASE
    	}
    😍 1
    👍 3
    😂 7
    d
    d
    +2
    • 5
    • 14
  • r

    Ruckus

    02/04/2019, 4:19 PM
    4-tab indents with tab size set to one character.
    s
    • 2
    • 1
  • c

    cedric

    02/04/2019, 11:12 PM
    @dewildte When the line gets too long, it takes effort for the eyes to move back to the beginning of the margin and down one line. There is a point of diminishing return there, the sweet spot being probably 100-120 characters. Obviously, there are also implications in terms of being able to have two windows side by side, which is super useful in general too.
    💯 1
    👏 2
    ➕ 5
    o
    d
    • 3
    • 4
  • u

    uhe

    02/05/2019, 9:29 AM
    Do you guys really read every single line from start to end? Especially when skim reading source code? Especially if you know that the rest of the line is unimportant by reading the first bits?
    h
    c
    • 3
    • 2
  • u

    uhe

    02/05/2019, 9:30 AM
    Plus you can and should format lines for readability even when you have a large character limit. I just like to be able to choose.
    r
    • 2
    • 1
  • s

    Slackbot

    02/06/2019, 3:46 AM
    This message was deleted.
    p
    j
    +2
    • 5
    • 4
  • a

    alex

    02/06/2019, 2:19 PM
    Hi. I have a request for any non-english (your mother tongue is not english) speaker in this channel. My friend is gathering data for linguistic research, more precisely the verb "HIDE". The goal of the research is to find abnormalities across the language spectrum. Link to the poll: https://docs.google.com/forms/d/e/1FAIpQLSfNrJ00HibjJHT21rLYHj5F4cnN7WwiCJV-jgOrZyC8pO9u5A/viewform This will take 2-5 minutes of your time. Thanks in advance 🙂
    🙈 1
    o
    • 2
    • 4
  • m

    Marc Knaup

    02/06/2019, 11:13 PM
    Does it mean that I can read
    Any?
    from the array but write only
    X?
    and subtypes into it? That
    ..
    confuses me because it looks like a range 🤔 Oh and the
    out
    thingy can be
    null
    . The
    in
    one not.
    🤯 1
    d
    • 2
    • 2
  • k

    krotki

    02/08/2019, 1:24 PM
    Hi, by mistake I created a channel here. Can somebody delete #deleteme ?
    h
    o
    • 3
    • 3
  • r

    Ruckus

    02/08/2019, 2:35 PM
    Is there a way to down vote issues in YT?
    🇳🇴 1
    h
    v
    • 3
    • 2
  • i

    itnoles

    02/09/2019, 5:21 PM
    What you expect from the Oracle?
    l
    e
    • 3
    • 2
  • s

    smilecs

    02/12/2019, 9:12 AM
    Hey guys, I have a really random question that’s kinda bugging me, is it really necessary to wrap a
    SharedPreference
    operation with a
    Rx
    call? kinda something like
    fun save(key: String, value: String) {
            sharedPreferences.edit().putString(key, value).apply()
        }
    
        fun saveSingle(key: String, value: String): Single<String> = Single.create {
            try {
                save(key, value)
                it.onSuccess(value)
            } catch (e: Exception) {
                it.onError(Failure.Error(e.localizedMessage))
            }
        }
    g
    d
    • 3
    • 10
  • y

    Yossi Saiada

    02/12/2019, 6:08 PM
    Hi. Does anybody know a software for creating presentations with code highlighting and transitions between code snippets? (Example:

    https://youtu.be/r_19VZ0xRO8?t=29▾

    )
    a
    h
    +2
    • 5
    • 7
  • o

    orangy

    02/12/2019, 10:31 PM
    https://twitter.com/felipecsl/status/1095445050526330881
    m
    h
    +2
    • 5
    • 6
  • t

    thomasnield

    02/13/2019, 10:45 PM
    https://mobile.twitter.com/thomasnield9727/status/1095806137952333825
    r
    k
    o
    • 4
    • 4
  • k

    kartikpatodi

    02/14/2019, 4:07 PM
    Can anyone please suggest me a JUnit test generator?
    t
    • 2
    • 2
  • l

    louiscad

    02/14/2019, 7:53 PM
    🐍 →:kotlin: I just realized there's a Python to Kotlin migration tutorial on Kotlin's website 🤯 https://kotlinlang.org/docs/tutorials/kotlin-for-py/introduction.html
    🤯 1
    😂 2
    👏 2
    n
    • 2
    • 1
  • e

    elect

    02/15/2019, 11:09 AM
    I wonder if it's possible to play right now with Kotlin and the Panama jdk
    ➕ 1
    d
    • 2
    • 11
Powered by Linen
Title
e

elect

02/15/2019, 11:09 AM
I wonder if it's possible to play right now with Kotlin and the Panama jdk
➕ 1
d

Dominaezzz

02/15/2019, 11:40 AM
Have you tried it with java?
e

elect

02/15/2019, 11:40 AM
no, I'm gonna play with it hopefully this we
which language level shall it be though?
12?
or
X
experimental?
d

Dominaezzz

02/15/2019, 11:42 AM
No idea, only found out last night that it's usable.
Couldn't find any more info on how to use it. 😔
e

elect

02/15/2019, 12:06 PM
did you try to run it?
d

Dominaezzz

02/15/2019, 12:13 PM
Nope
Ah, looks like JDK 13. https://jdk.java.net/panama/
e

elect

02/15/2019, 6:16 PM
indeed
View count: 1