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

    dirk.dittert

    03/23/2017, 1:08 PM
    Is it just my system or is youtrack.jetbrains.com running on subglacial speed today?
    s
    d
    s
    • 4
    • 3
  • o

    orangy

    03/24/2017, 6:22 PM
    Why not use Jupyter and Kotlin kernel to make some data science?
    v
    • 2
    • 4
  • v

    voddan

    03/24/2017, 7:48 PM
    I briliant piece on resolving conflicts: http://www.yegor256.com/2017/01/03/how-much-you-love-conflicts.html
    f
    • 2
    • 1
  • k

    kevinmost

    03/24/2017, 8:32 PM
    yeah, seems like a messy workaround though. At that point I'd rather just: 1) make my own well-named extension that just points to the actual method and use that instead, or 2) deal with the weird capitalization
    b
    • 2
    • 7
  • c

    codeslubber

    03/24/2017, 8:34 PM
    @dalexander the idea that making something less convenient to suppress its use is madness..
    d
    • 2
    • 2
  • c

    cedric

    03/24/2017, 9:54 PM
    @orangy On the other hand, these literals help DSL’s by replacing
    listOf(1,2,3)
    with
    [1,2,3]
    , which reads a bit better IMO
    👍 4
    v
    g
    • 3
    • 2
  • d

    darkmoon_uk

    03/25/2017, 6:57 AM
    @voddan Yes, I want to use collection literals in Kotlin. It’s something that I miss greatly coming from Swift, and something that I repeatedly search for month after month hoping to hear news of developments. Lack of literals does not prevent us solving problems; but to be honest, the current way feels unneccessarily verbose and ‘Java like’. It does not feel in the spirit of Kotlin. It’s not a great problem, but it feels like something that shouldn’t be too complex to implement while enhancing the readability, writeability and ‘modern feel’ of the language.
    ➕ 1
    v
    • 2
    • 28
  • a

    avolkmann

    03/25/2017, 7:26 AM
    @thomasnield Very nice! I agree that Python has the upper hand at the moment because of some brilliant libraries. Scala didn't do the trick for me either, but with Kotlin I think there is hope. I am interested in contributing to your Kotlin Statistics project!
    t
    • 2
    • 1
  • d

    darkmoon_uk

    03/25/2017, 11:37 AM
    vs Kotlins
    val stringsLookup = emptyMap<Int,Array<String>>()
    v
    • 2
    • 1
  • s

    Sola

    03/25/2017, 11:58 AM
    why not
    val list = ["a", "b", "c"]
    k
    d
    +2
    • 5
    • 8
  • o

    orangy

    03/25/2017, 9:31 PM
    ❓ if you are having strong Java background, do you feel it uncomfortable, or may be refreshing that Kotlin files are not bound strictly to class names as in Java?
    e
    j
    +2
    • 5
    • 4
  • m

    mg6maciej

    03/28/2017, 11:28 AM
    Primary constructor vararg parameters are forbidden for data classes.
    😭
    😿 2
    l
    • 2
    • 1
  • o

    orangy

    03/28/2017, 12:48 PM
    Seeing Kotlin without actually writing it 🙂 https://twitter.com/andrey_cheptsov/status/846685993679945728
    👍 4
    e
    • 2
    • 1
  • o

    orangy

    03/28/2017, 4:50 PM
    I usually just type
    psvm
    in a random place in kotlin project, and test it there. You need a project that builds, though 🙂
    m
    d
    s
    • 4
    • 5
  • o

    orangy

    03/30/2017, 12:01 PM
    Just out of stupid idea worth a startup, is it possible to train AI to name a function from its content? 😄
    m
    • 2
    • 2
  • d

    dh44t

    03/30/2017, 1:09 PM
    @orangy this line https://github.com/MarioAriasC/lagomkotlin/blob/master/hello-impl/src/main/kotlin/org/cakesolutions/hello/impl/KHelloEntity.kt#L19 is marked as an error in IntelliJ but it compiles fine
    o
    • 2
    • 15
  • g

    groostav

    03/30/2017, 8:08 PM
    Does anybody have a favorite personal tasking system? I've used remember the milk and some task plugin for outlook, fell off both of them fairly quickly, but now im once again in a position where im doing everything from investigating benifits packages to writing mountains of code and things are starting to fall off the wagon.
    r
    d
    • 3
    • 4
  • r

    Ruckus

    03/30/2017, 8:37 PM
    Last paragraph: http://kotlinlang.org/docs/reference/generics.html#upper-bounds
    m
    • 2
    • 2
  • d

    Dalinar

    03/31/2017, 1:16 AM
    does anyone have any links explaining the design decision for kotlin arrays? I'm curious what the benefit is for this very verbose syntax over java's concise one
    s
    • 2
    • 3
  • m

    michaelzinn

    03/31/2017, 10:04 AM
    A bit offtopic, but does anyone know how I can configure IntelliJ to treat certain warnings as errors?
    v
    • 2
    • 1
  • d

    Dmitry Kandalov

    04/01/2017, 7:30 PM
    This is not about Kotlin but I thought I’d ask anyway. Has anyone who uses mac with trackpad noticed that since recent IJ releases vertical scrolling is really sensitive and almost always scrolls horizontally a little bit? (It’s not a massive problem but makes me sad everytime I scroll 😢)
    ↙️ 1
    ↖️ 1
    m
    • 2
    • 3
  • m

    mg6maciej

    04/02/2017, 7:55 AM
    I have a concern regarding TDD, so I would love to hear your approach with this quick poll (also please comment in a thread if you want to add something valuable): What's your approach to making test pass? 1️⃣ Write the simplest possible solution. When writing first test this usually means hardcoding values from test into production. 2️⃣ Write solution in the easiest possible way. Easiest != simplest, i.e. if you already have a function that does part of the functionality required by test, you will call this function after first test, even when you could hardcode the value with the same amount of effort. 3️⃣ Try not to be too clever and implement functionality in a way that is more or less what you expect in final version of production code, e.g. when writing second test for immutable list of your own and adding
    newElement
    to
    emptyList
    , you return wrapper for
    this.elements + newElement
    instead of
    listOf(newElement)
    , even tho you know
    this.elements
    is empty. 4️⃣ TDD is dead 5️⃣ I don't test 6️⃣ I don't care about this poll 7️⃣ other
    3️⃣ 11
    7️⃣ 2
    5️⃣ 5
    4️⃣ 12
    2️⃣ 2
    1️⃣ 3
    v
    c
    +2
    • 5
    • 14
  • e

    evanchooly

    04/03/2017, 10:04 PM
    constructor injection++
    r
    • 2
    • 1
  • o

    orangy

    04/04/2017, 4:10 PM
    Thinking about XKCD program… eXpert Kotlin Certified Developer
    🎉 3
    😀 1
    :neckbeard: 1
    😂 5
    r
    • 2
    • 1
  • o

    orangy

    04/04/2017, 10:00 PM
    If you are using reddit regularly, what are subreddits you are subscribed to? Asking for a friend.
    s
    • 2
    • 1
  • j

    jkbbwr

    04/05/2017, 2:51 PM
    I know its not kotlin related but many of the jetbrains people roll around in here. Anyone know how I can get a clion issue looked at, its been a few weeks since reporting it now
    o
    • 2
    • 4
  • c

    cedric

    04/05/2017, 6:36 PM
    @hoang Erasure is a much better alternative than reification: http://beust.com/erasure
    ➕ 1
    b
    g
    • 3
    • 13
  • s

    Slackbot

    04/06/2017, 5:13 PM
    This message was deleted.
    j
    • 2
    • 1
  • d

    Dalinar

    04/07/2017, 2:45 AM
    anyone code on a curved ultrawide? is the curve annoying?
    r
    f
    • 3
    • 5
  • k

    khud

    04/07/2017, 10:33 AM
    @orangy I am all ears 👂
    t
    • 2
    • 2
Powered by Linen
Title
k

khud

04/07/2017, 10:33 AM
@orangy I am all ears 👂
t

thomasnield

04/07/2017, 1:33 PM
khud: lets take inventory of what is out there in #datascience
k

khud

04/07/2017, 1:41 PM
Hi
View count: 2