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

    orangy

    03/22/2019, 6:53 PM
    I need a small open source project (JVM) with extensive use of File/Path API. Something doing with files in various ways. Could be a tool or a library. I need to validate some assumptions for multiplatform kotlin file system package. Any ideas what I could be looking for on GitHub?
    d
    r
    • 3
    • 6
  • h

    Hasan

    03/23/2019, 7:12 AM
    Hi ​May I ask you something about sumo robot?Does sumo robot contain in ai?I mean if I wanna create advanced sumo,do I have to know ai?I looked some github code but I couldnt be sure.
    o
    k
    • 3
    • 4
  • e

    elect

    03/27/2019, 3:56 PM
    is there a performance cost for using inline reified functions?
    g
    • 2
    • 3
  • e

    elect

    03/27/2019, 3:57 PM
    I'm using them in order to avoid signature clash (different return type) would it be possible to do the same as Swift, like here https://stackoverflow.com/a/28079432/1047713 ?
    g
    t
    • 3
    • 31
  • c

    cedric

    03/28/2019, 4:37 PM
    Playing with the new 2019.1 themes and I accidentally enabled the minimap, how do I turn it off? Can’t seem to find the right name for that window
    n
    o
    h
    • 4
    • 12
  • d

    dalexander

    03/29/2019, 2:04 PM
    Does anyone know of a name for this anti-pattern? I think of it as the “diamond call” anti-pattern but I don’t know if it has an official name. Basically the pattern is you have some kind of control statement that calls the same function with different parameters, then the called function does different behavior based on the parameters. Usually it appears in more complicated contexts than this example. The solution is to just call different functions rather than having to branch again in the called function.
    Does_anyone_know_if_there_s_a_name_for_this_anti-pattern_.txt
    m
    r
    • 3
    • 4
  • j

    janvladimirmostert

    03/29/2019, 4:57 PM
    There's an ISP in South Africa called WebStorm ... i wonder where they got that logo from ... mmm
    f
    s
    g
    • 4
    • 3
  • t

    tipsy

    03/30/2019, 6:59 PM
    nothing, ultimate offers everything webstorm offers through plugins ultimate can become all of their other IDEs through plugins
    k
    r
    +4
    • 7
    • 7
  • s

    Slackbot

    04/01/2019, 8:05 PM
    This message was deleted.
    f
    r
    • 3
    • 6
  • b

    bjonnh

    04/03/2019, 9:54 PM
    not that python doesn't allow to do stuff like that: sorted(filter(lambda x: 'foo' in x, list_), key=operator.attrgetter('intensity'))
    d
    k
    • 3
    • 7
  • n

    napperley

    04/03/2019, 10:21 PM
    After updating IntelliJ from 2018.3.6 to the latest 2019 version, and restarting the IDE there is is Start Failed dialog that appears about a reflection exception with the GTK theme. Below are the contents of the dialog:
    Internal error. Please report to <http://jb.gg/ide/critical-startup-errors>
    
    com.intellij.ide.plugins.PluginManager$StartupAbortedException: java.lang.reflect.InvocationTargetException
        at com.intellij.ide.plugins.PluginManager.lambda$start$0(PluginManager.java:78)
        at java.lang.Thread.run(Thread.java:748)
    Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at com.intellij.ide.plugins.PluginManager.lambda$start$0(PluginManager.java:75)
        ... 1 more
    Caused by: java.lang.UnsatisfiedLinkError: sun.awt.UNIXToolkit.get_gtk_version()I
        at sun.awt.UNIXToolkit.get_gtk_version(Native Method)
        at sun.awt.UNIXToolkit.getGtkVersion(UNIXToolkit.java:393)
        at com.sun.java.swing.plaf.gtk.GTKLookAndFeel.initialize(GTKLookAndFeel.java:1455)
        at javax.swing.UIManager.setLookAndFeel(UIManager.java:538)
        at javax.swing.UIManager.setLookAndFeel(UIManager.java:583)
        at com.intellij.util.ui.UIUtil.initDefaultLAF(UIUtil.java:3215)
        at com.intellij.idea.StartupUtil.prepareAndStart(StartupUtil.java:153)
        at com.intellij.idea.MainImpl.start(MainImpl.java:20)
        ... 6 more
    a
    • 2
    • 4
  • f

    Fredrik Pe

    04/04/2019, 1:14 PM
    When using darcula this color is almost exactly the same as the color for "missing import", although it isn't the same and doesn't seem to do anything?? No message on hover. Incredibly annoying! I can't find out what it means, or how to turn it off (can't find it in color settings). Any tips?
    m
    r
    • 3
    • 5
  • r

    raphw

    04/05/2019, 11:17 AM
    Hi there, I am a core contributor of Mockito and also the author of the Mockito inline-mock-maker that is often used with Kotlin. I also created Byte Buddy, the code generator that enables Mockito but also Mockk that I know many of you use. I have had my hands on all kinds of Open Source software and plan to continue to do so. My name is currently in the draw for a Groundbreaker award by Oracle. You can cast your vote by tweeting: I'm casting my vote for Rafael Winterhalter @rafaelcodes to win a #GroundbreakerAward, presented by @OracleDevs: https://developer.oracle.com/newfaceofgreatness I know this is a bit awkward thing to ask for but I can use all the possible attention for my work as growing interest makes it easier to find sponsors for supporting my time working on FOSS. Thanks to anybody who is voting on my behalf!
    🎉 1
    👍 7
    ❤️ 2
    i
    j
    • 3
    • 2
  • k

    kartikpatodi

    04/05/2019, 1:01 PM
    Can a lambda store info like which property of a object to use? For example I have a have a class
    Person
    with id and name Now I want to find the index of the person having id = 3 from a list of persons
    val pos = persons.imdexOf{ it.id == 3 }
    But i just want to create something like
    persons.findPos(Person::id, 3)
    How can i tell the compiler to use the id property?
    g
    l
    • 3
    • 14
  • p

    pyrkamarcin

    04/08/2019, 2:31 PM
    Hi. Typicaly, I have some trouble with regex. I have some path: /folder/test/test1.csv I need: /folder/data/test/test1.csv (generaly, I must add data after second /) Can you help me?
    t
    s
    +2
    • 5
    • 9
  • r

    Ruckus

    04/10/2019, 4:33 PM
    Not sure if anyone else here is a bit of a space nut like me, but this is crazy:

    https://www.youtube.com/watch?v=Dr20f19czeE▾

    (It's a press conference for the first image of a black hole)
    🤘 1
    d
    • 2
    • 4
  • h

    Hullaballoonatic

    04/11/2019, 8:05 PM
    i'm having such a hard time understanding why dependency injection is a thing that needs to exist...
    d
    t
    +2
    • 5
    • 12
  • s

    sjthn

    04/16/2019, 8:53 AM
    Hi all, is there any operator function to insert a list to another list at a particular index that returns the new list?
    r
    • 2
    • 7
  • r

    ribesg

    04/16/2019, 9:19 AM
    Anyone knows if the Android Studio change
    Faster R class generation for library projects
    has been backported to IntelliJ IDEA so that we can finally update Android Gradle Build Tools to 3.3? I can’t find any issue related to this on Youtrack
    g
    • 2
    • 11
  • g

    Greg

    04/18/2019, 7:02 AM
    Hello everyone! Greg from Zurich, Switzerland here. 🏔️ Working full-time as Fullstack Dev and in the free time doing this project: https://swissdevjobs.ch/about
    i
    t
    c
    • 4
    • 6
  • n

    napperley

    04/19/2019, 3:34 AM
    Mozilla has developed a version of Python for web browsers called Pyodide (built on WASM): https://www.reddit.com/r/firefox/comments/ben0vb/mozilla_details_pyodide_which_brings_python_to/
    k
    o
    • 3
    • 5
  • c

    Czar

    04/19/2019, 4:03 PM
    I think fun weekend project for me will be writing a user-script for my browser to remove all messages by a certain slack user, I'll call it Kryptonite 🙂
    😂 1
    🎁 1
    🔥 5
    💕 2
    l
    r
    +3
    • 6
    • 14
  • d

    david.bilik

    04/23/2019, 10:20 AM
    Hi, I am looking for a new macbook pro for Android development and I would like to know some experiences with 2018 model with 8GB RAM. I have 2015 model with 8GB and its definitely too little for Android development (Android Studio, Emulator, Chrome :D). But maybe newer macbooks have faster swaping, etc.?
    g
    n
    +3
    • 6
    • 11
  • s

    Slackbot

    04/25/2019, 2:39 PM
    This message was deleted.
    w
    • 2
    • 1
  • o

    orangy

    04/25/2019, 8:03 PM
    Also it looks like an advertisement, and they are explicitly forbidden here, see topic.
    💯 5
    w
    s
    r
    • 4
    • 11
  • s

    Shawn

    04/26/2019, 2:43 PM
    here’s a pretty random but relevant discussion question for your Friday - how do you guys treat personal information on work machines, especially laptops that you’re expected to take with you? Do you not ever log into anything personal, or maybe just select services? Do you log into your personal iCloud if you have a Mac and use iMessage? Do you have a plan for invalidating sessions or tokens in the event you leave the company?
    t
    r
    +2
    • 5
    • 14
  • d

    Dominaezzz

    04/26/2019, 7:43 PM
    Does anyone git ignore their
    .idea
    folder? Why?
    :yes: 2
    d
    s
    +4
    • 7
    • 21
  • e

    elect

    04/30/2019, 1:28 PM
    Swift-like enum selection: https://discuss.kotlinlang.org/t/swift-like-enum-selection/12484 (vote here if you like https://youtrack.jetbrains.com/issue/KT-31289)
    ➖ 6
    r
    • 2
    • 3
  • f

    fred.deschenes

    04/30/2019, 8:01 PM
    does anyone know if we'll get Rider's "integrated" title bar in IntelliJ eventually? My frontend colleagues are kinda making me jealous now...
    k
    • 2
    • 10
  • i

    itnoles

    05/03/2019, 8:01 PM
    How come Android Gradle Plugin disabled is much faster than enabled on Intellij IDEA?
    g
    • 2
    • 1
Powered by Linen
Title
i

itnoles

05/03/2019, 8:01 PM
How come Android Gradle Plugin disabled is much faster than enabled on Intellij IDEA?
g

gildor

05/05/2019, 1:12 AM
🤔
View count: 2