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

    orangy

    03/07/2018, 10:38 PM
    If you are interested in 😒tackoverflow: stats, check http://sotagtrends.com/?tags=%5Bkotlin%5D
  • o

    oshai

    03/08/2018, 7:20 AM
    is
    remove redundant backticks
    false warning in intellij a known issue of kotlin 1.2.30?
    :yes: 4
    l
    • 2
    • 2
  • o

    orangy

    03/08/2018, 5:04 PM
    Forget that you’re developer, go to school and learn how to understand your team, empathy, leading, managing. Also find a good psychotherapist 🙂
    ☝️ 1
    👍 3
    a
    • 2
    • 2
  • d

    diego-gomez-olvera

    03/08/2018, 5:17 PM
    StackOverflow presence is not necessarily good. When everything works and does not break, you don't need to go to StackOverflow
    ☝️ 1
    d
    • 2
    • 1
  • s

    Steph Carter

    03/09/2018, 7:41 PM
    Once you get your answer here, go post a question & answer on Stack Overflow.
    👍 2
    ➕ 1
    • 1
    • 1
  • l

    lukas.mega

    03/14/2018, 6:58 AM
    Hello, have someone any experience with React Native & Kotlin ? #javascript
    g
    e
    +2
    • 5
    • 8
  • m

    mbickel

    03/15/2018, 12:48 PM
    Um, when I refactor to change signature in IntelliJ and switch a parameter to a property, there's no space between the
    val
    and my name. Is this just me?
    a
    • 2
    • 1
  • d

    dalexander

    03/15/2018, 5:18 PM
    Haskell generally has a more complete type system in that I believe that it’s possible to express some concepts that can’t be expressed with Kotlin’s type system (ie. the specific return type of the y-combinator). It also has support for type intersections and unions, which are missing from Kotlin, but which can be handled with some verbose options. Ceylon is also a JVM language which has a slightly better type system than Kotlin (unions and intersections, and Ceylon’s nullable types are derived from unions I believe).
    r
    n
    +2
    • 5
    • 19
  • o

    orangy

    03/16/2018, 8:39 PM
    ❓ Is this valid Kotlin code?
    {->}.fun 
    Function<*>.(){}()
    😭 3
    🇳🇴 3
    💩 1
    🙆‍♂️ 5
    :yes: 5
    r
    • 2
    • 1
  • o

    orangy

    03/20/2018, 3:44 PM
    Do you know of any validation framework with Kotlin-friendly APIs? Or maybe someone wants to make one?
    val name = expression.validate {
       … some validation clauses…
    }
    So that there could be range checks, nullity, etc. I didn’t put any thought into it yet, but I feel the need in many places.
    r
    • 2
    • 1
  • s

    Shawn

    03/20/2018, 4:42 PM
    maybe this isn’t really the right approach within Kotlin, but is there any provision for validating data class constructor arguments?
    g
    • 2
    • 9
  • o

    oday

    03/21/2018, 5:23 AM
    where?
    y
    • 2
    • 1
  • c

    chi

    03/21/2018, 11:09 AM
    Are there any solid possible reason why one would want to start a new project with Java (aside from working on Android and worrying about people not very familiar with Kotlin)
    d
    p
    s
    • 4
    • 3
  • r

    Ruckus

    03/21/2018, 2:32 PM
    @karelpeeters This is the random channel, and people here tend to have experience with such things, so this is a great place to ask.
    k
    o
    • 3
    • 4
  • c

    czyzby

    03/22/2018, 4:41 PM
    https://projectfailures.wordpress.com/2008/06/24/project-from-hell/
    😂 1
    😰 4
    j
    • 2
    • 1
  • y

    yoavst

    03/23/2018, 10:43 AM
    Yesterday me and some friends from the university did the Google HashCode 2018 challenge. We wrote the code in python. Today I converted the code to Kotlin, keeping the same algorithm. The python code took 130 seconds to run. The kotlin code took ~880ms.
    👍🏻 4
    :kotlin: 12
    👍 5
    n
    r
    • 3
    • 3
  • k

    karelpeeters

    03/23/2018, 11:11 PM
    I'll bite: How would you use this? What the use case?
    ☝️ 2
    r
    • 2
    • 3
  • e

    elect

    03/27/2018, 11:04 AM
    anyone here is using sealed-class as some sort of advanced enums?
    g
    • 2
    • 9
  • l

    lukas.mega

    03/27/2018, 11:05 AM
    I'm using enum due to ability list all enum items. Or it's also possible in sealed class?
    g
    • 2
    • 1
  • e

    elect

    03/27/2018, 11:08 AM
    I'm interested into constraining function extensions only to some specific typealias
    g
    • 2
    • 1
  • s

    smilecs

    03/28/2018, 9:44 AM
    just wondering if there’s anyway to arrange layout files in android studio
    d
    • 2
    • 1
  • r

    Ruckus

    03/29/2018, 7:56 PM
    At least, I've always seen the same behavior with Gnome in Fedora and Ubuntu
    n
    • 2
    • 2
  • p

    poohbar

    03/29/2018, 8:00 PM
    on windows, when you right click, no matter how long you hold it or where you release the button it will NEVER trigger anything
    r
    • 2
    • 2
  • p

    pniederw

    03/31/2018, 10:30 PM
    I wonder where to get all these dependencies from (in their correct version): https://github.com/JetBrains/Grammar-Kit/blob/master/resources/META-INF/MANIFEST.MF#L3-L7
    o
    • 2
    • 2
  • d

    dalexander

    04/03/2018, 1:07 PM
    From the twitter thread:
    100 people - yay we're all friends
    1,000 people - this is a shitshow
    10,000 people - nobody is posting anymore because what is the point even
    This sort of reflects what I’ve noticed over the last couple of years in this Slack-- in that the slack seems somewhat less active now than when there were fewer people. As for how to fix the problems that are talked about in the tweets, I think a sociologist is required, but I suspect it involves breaking up channels into sub-channels in some way, because having a meaningful conversation in a channel with thousands of people in it doesn’t even make any sense.
    v
    • 2
    • 1
  • k

    karelpeeters

    04/03/2018, 2:48 PM
    I might be missing something, but why would a slack group or a channel become less active when there are more people in it?
    d
    • 2
    • 16
  • a

    avolkmann

    04/04/2018, 4:06 PM
    Regarding slack, I noticed that I cannot keep up with most channels anymore. Even though there are some interesting discussions in
    general
    , I don't have the time to read through it anymore.
    ➕ 5
    c
    • 2
    • 2
  • z

    ziggy42

    04/06/2018, 1:21 PM
    Is there something like
    com.google.common.annotations.VisibleForTesting
    without the need of importing guava?
    g
    • 2
    • 5
  • l

    louiscad

    04/06/2018, 2:41 PM
    When you don't agree with the naming of your backend guy(s) 😅 :
    @JsonSerializable
    data class UserInfo(
            @Json(name = "title")
            val civility: String,
            @Json(name = "forename")
            val firstName: String,
            @Json(name = "name")
            val lastName: String,
            val email: String,
            @Json(name = "gsm")
            val mobilePhoneNumber: String,
            @Json(name = "street1")
            val addressFirstLine: String,
            @Json(name = "street2")
            val addressSecondLine: String,
            @Json(name = "zip")
            val postalCode: String,
            val city: String,
            @Json(name = "licence")
            val licenseNumber: String
    )
    @Json @Json @Json @Json
    🤣 5
    :trollface: 3
    l
    p
    +4
    • 7
    • 10
  • k

    Kamal Joshi

    04/10/2018, 3:03 PM
    https://medium.com/@kamal2311/thinking-about-code-what-is-a-level-of-abstraction-anyway-3be90fd6edce
Powered by Linen
Title
k

Kamal Joshi

04/10/2018, 3:03 PM
https://medium.com/@kamal2311/thinking-about-code-what-is-a-level-of-abstraction-anyway-3be90fd6edce
View count: 3