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

    elect

    06/12/2019, 1:03 PM
    anyone else here is having trouble with the suggestion/completion window? Mine is 1px height 9 out of 10 times.. (2019.2 eap)
    k
    • 2
    • 1
  • s

    sksk

    06/12/2019, 7:14 PM
    ah thanks, i hate slack..
    k
    • 2
    • 1
  • s

    sksk

    06/12/2019, 7:14 PM
    so the reason is just complexity ?
    b
    k
    +2
    • 5
    • 35
  • t

    thomasnield

    06/14/2019, 11:34 PM
    I recommend reading this article in Ron Burgundy's voice. On a serious note, it's sad to see Medium publication articles keep going down in quality... particularly on Hacker Noon https://hackernoon.com/why-python-is-an-excellent-choice-for-machine-learning-71acfa03f567
    😱 1
    🤦‍♂️🏻 2
    r
    f
    +2
    • 5
    • 8
  • e

    elect

    06/15/2019, 3:09 PM
    I'm in the process of sponsoring Idea in our office, I read some time ago a nice article from jetbrain itself showing how Idea can increase productivity and so on.. I can seem to find it anymore, is there anyone that know what I mean and can point it to me?
    ➕ 1
    n
    v
    v
    • 4
    • 10
  • d

    Davide Giuseppe Farella

    06/18/2019, 11:02 AM
    Hello guys, is it 100% safe to upgrade stdlib 1.3.0 -> 1.3.35 in production without break anything? Should we be careful of something in particular?
    g
    • 2
    • 12
  • m

    Marc Knaup

    06/19/2019, 3:08 PM
    Am I the only one whose Bintray Maven repo is broken? I release new versions. They're listed on Bintray including all files, but actually trying to download any file results in 404. According to their status page all is good 🙄 https://bintray.com/fluidsonic/maven/fluid-json/0.9.22#files vs https://dl.bintray.com/fluidsonic/maven/com/github/fluidsonic/fluid-json-coding/0.9.22/fluid-json-coding-0.9.22.jar That's the first time I'm faster at releasing updates on Maven Central than on Bintray 😅
    • 1
    • 1
  • j

    josephivie

    06/19/2019, 6:24 PM
    https://medium.com/@josephivie/idea-kotlin-as-a-build-system-306842b4bede
    l
    k
    +5
    • 8
    • 32
  • i

    itnoles

    06/20/2019, 2:28 AM
    https://developer.android.com/guide/topics/connectivity/cronet is this supposed to be replacement of HttpUrlConnection?
    g
    • 2
    • 2
  • d

    Davide Giuseppe Farella

    06/21/2019, 9:42 AM
    Hello, is it possible to create custom
    Suppress
    annotation? I.e.
    @PublicAPI
    instead of use
    Suppress("MemberVisibilityCanBePrivate") // Public API
    g
    • 2
    • 9
  • e

    elect

    06/24/2019, 11:06 AM
    would it be possible (and logic?) trying to use gradle to analyze the list of modules used by the app (jdeps) and build the consequent command list and the corresponding output?
    t
    • 2
    • 5
  • j

    Joan Colmenero

    06/24/2019, 3:52 PM
    Anyone knows Git? I think I deleted my project using terminal but I did not push nor pull, I think I can recover it but don't know how to, someone can help me out?
    s
    • 2
    • 31
  • j

    Joan Colmenero

    06/24/2019, 4:41 PM
    Not solved yet guys ^ If there's someone can help me I'll be really appreciate... since doing stash and things I just lost my project I couldn't pull / push anything, so it should be all local, but don't know how to restore it....
    d
    d
    • 3
    • 10
  • p

    pavel

    06/25/2019, 2:51 PM
    alt-enter
    s
    d
    • 3
    • 4
  • g

    GauthierPLM

    06/28/2019, 6:02 AM
    hello 🙂 I am building a new project and as it’s my first JVM web project for a while, I am quite confused on which template engine to use on top of Spring Boot. I used Thymeleaf in the past but found it quite heavy to use (lot of writing for not a lot of things). I also used Twig and Jinja2 and loved both for their simplicity and the possibility to define a layout which is extended by individual templates in which I can define only the blocks I wish to change (example : https://twig.symfony.com/doc/2.x/tags/extends.html) Does the community have frameworks to recommend? For now I found Pebble and Jtwig as good candidate but I am curious about other frameworks I could not be aware of and your opinion on these two ones. Edit: I also wish to have a good IDE support so writing templates is not a pain.
    g
    k
    • 3
    • 3
  • f

    Fudge

    07/02/2019, 8:03 AM
    https://github.com/JetBrains/kotlin-playground How can you import Kotlin libraries in this?
    g
    • 2
    • 13
  • h

    hallvard

    07/02/2019, 8:17 AM
    I'm trying to run the kotlin repl by typing just 'kotlinc' in my cli, but I get
    NoClassDefFoundError: org/jline/reader/LineReaderBuilder
    . This is on kotlin 1.3.40 / Java 12. Any clues, anyone?
    a
    • 2
    • 2
  • t

    tmg

    07/02/2019, 4:49 PM
    What linters do you guys use for kotlin?
    m
    g
    • 3
    • 3
  • a

    Adam Hurwitz

    07/02/2019, 5:42 PM
    I'd love feedback on what people think a fair hourly rate is for a mobile developer with 3 yrs experience training a team of developers in Kotlin? It would be for 40 hrs of work a week in a month long gig. Training may include tech talks, writing sample code, and providing code reviews. Most travel expenses will be covered as well. Thus far, I've heard everything from $150 - $250 / hr. Much appreciated! Adam
    m
    c
    o
    • 4
    • 4
  • o

    oshai

    07/08/2019, 12:16 PM
    Tried to write my first :kotlin: contract today - so far without great success 😔
    k
    • 2
    • 3
  • t

    thomasnield

    07/08/2019, 9:12 PM
    I present to you a state of the art user experience. userinyerface.com
    😂 9
    f
    • 2
    • 1
  • m

    Marc Knaup

    07/10/2019, 8:00 PM
    How are Kotlin's Maven artifacts published to Maven Central? Through Sonatype Nexus? Or is there a simpler/more reliable way? 🙂
    f
    h
    g
    • 4
    • 6
  • t

    thomasnield

    07/11/2019, 12:48 AM
    For you AI reading buffs out there... https://link.medium.com/9lkbnBOKdY
    b
    • 2
    • 1
  • v

    vpriscan

    07/12/2019, 4:59 PM
    Hi everyone, Check out my Kotlin JSON-like DSL library: https://github.com/vpriscan/Kost
    n
    • 2
    • 1
  • r

    robstoll

    07/18/2019, 4:27 AM
    Is there already a kotlin dependency update bot out there which works for github?
    t
    g
    • 3
    • 8
  • r

    rellenberger

    07/19/2019, 1:54 AM
    Who develops with a mono repo vs having their code split between multiple projects?
    a
    j
    • 3
    • 3
  • e

    elect

    07/19/2019, 1:00 PM
    just found out disabling kaspersky halfed our building time in Gradle..
    l
    • 2
    • 1
  • r

    Ruckus

    07/19/2019, 8:47 PM
    This slack sure gets quiet on Fridays. Are that a lot of people here that work 4/10s or something?
    k
    g
    • 3
    • 2
  • f

    Fudge

    07/20/2019, 8:56 PM
    What is the status of game development in kotlin?
    k
    • 2
    • 1
  • f

    Fudge

    07/22/2019, 9:11 AM
    Error in contract description: only references to parameters are allowed in contract description
    Will this restriction be lifted sometime in the future?
    l
    • 2
    • 7
Powered by Linen
Title
f

Fudge

07/22/2019, 9:11 AM
Error in contract description: only references to parameters are allowed in contract description
Will this restriction be lifted sometime in the future?
l

louiscad

07/22/2019, 9:13 AM
What's your use case?
f

Fudge

07/22/2019, 9:13 AM
Just when I closed my IDE xD
@louiscad Simplified example:
class PuzzlePiece {
    val puzzleIn: Puzzle? = null
}

class Puzzle

fun PuzzlePiece.isInPuzzle(): Boolean {
    contract {
        returns(true) implies (this@isInPuzzle.puzzleIn != null)
    }
    return this.puzzleIn != null
}
this@isInPuzzle.puzzleIn
is not allowed
The benefit being that
if(isInPuzzle())
is more readable than
if(puzzleIn != null)
l

louiscad

07/22/2019, 5:29 PM
You can submit a feature request on kotl.in/issue
With that good example
View count: 1