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

    Shawn

    07/15/2018, 5:02 PM
    When you use
    with
    , do you add a space after it so it looks like control flow? 1️⃣
    with (context) {
      foo()
      bar = 42
    }
    2️⃣
    with(context) {
      foo()
      bar = 42
    }
    1️⃣ 3
    2️⃣ 19
    e
    n
    h
    • 4
    • 5
  • a

    ahegazy

    07/16/2018, 8:22 AM
    1️⃣
    open class BaseResponse {
        val isSuccess: Boolean
            get() = errorCode == 0
    }
    2️⃣
    open class BaseResponse {    
        fun isSuccess() = errorCode == 0
    }
    1️⃣ 5
    n
    a
    t
    • 4
    • 5
  • s

    Sola

    07/18/2018, 10:41 AM
    https://github.com/JetBrains/intellij-community/commit/1d05d33b73c37280f20ff2dddb613ee3efd6c36d#diff-b6a4ebe0a0347cb4e4501c33a5edadc2
    ❔ 5
    w
    h
    p
    • 4
    • 4
  • a

    amanda.hinchman-dominguez

    07/19/2018, 1:18 AM
    Ran across this https://www.reddit.com/r/programming/comments/6isguk/kotlin_heavyweight_language_or_hopeless_hype/
    p
    • 2
    • 4
  • s

    Shawn

    07/19/2018, 4:16 AM
    Am I missing something? Does
    gojf
    work with Kotlin too or what?
    h
    • 2
    • 1
  • e

    elect

    07/19/2018, 8:39 AM
    half a day on a shitty bug because of deg instead rad.. can wait to have inline classes
    k
    r
    t
    • 4
    • 19
  • c

    codeslubber

    07/19/2018, 7:04 PM
    guess I should have made this a thread.. yeah I had a 2017 for 4 or 5 months this year, maybe adjusted brightness with it once or twice..
    k
    s
    +2
    • 5
    • 58
  • p

    pavel

    07/19/2018, 9:30 PM
    you mean you don’t run Slack?
    😂 3
    t
    k
    • 3
    • 2
  • d

    dh44t

    07/20/2018, 1:21 AM
    @orangy I have the same rMBP top of the line, but I’m still a Scala guy at work… so my current project takes 26 minutes to compile and the fans on this baby sound like they’re about to take off
    😱 1
    😂 5
    e
    d
    c
    • 4
    • 4
  • k

    kenkyee

    07/20/2018, 12:54 PM
    If you run Android studio with an emulator, the fans are always on 😂
    d
    k
    • 3
    • 3
  • g

    gabrielfv

    07/20/2018, 10:26 PM

    https://youtu.be/jtHhvcdjNWw▾

    on that MBP topic
    c
    • 2
    • 3
  • n

    napperley

    07/20/2018, 10:51 PM
    It was mentioned (https://kotlinlang.slack.com/archives/C3SGXARS6/p1532054420000064) that Swift and Rust are supported (but not Kotlin) on Fuchsia, where does this information come from?
    s
    • 2
    • 1
  • k

    karelpeeters

    07/20/2018, 10:54 PM
    I see Rust here: https://github.com/fuchsia-mirror/docs/blob/master/development/README.md#languages
    👍 1
    n
    • 2
    • 1
  • a

    avolkmann

    07/21/2018, 7:31 AM
    How to fix dependencies in python: reinstall the whole thing
    g
    s
    • 3
    • 2
  • s

    sksk

    07/24/2018, 10:15 AM
    What's the point of inner class when value type are going to be implemented soon ?
    e
    • 2
    • 1
  • g

    gildor

    07/24/2018, 10:21 AM
    @sksk Why do you think that value types are close? Looks like even general architecture of value types on Java is still under consideration. And value types that are not compatible with Java-ones is bad idea in terms of future interop “inner class”? Do you mean “Inline classes”? They allow to solve some use cases right now and even for old JVMs and Android, because it’s just a compiler feature
    just have structs instead
    So actually value types, or I miss some key difference? It’s also bad idea to introduce potentially incompatible implementation of value types only for Native, because when value types will be available on JVM you want to have the same API as native
    s
    • 2
    • 2
  • y

    ygrama

    07/24/2018, 6:51 PM
    An Idea for a T-Shirt: ⌘⌥⇧K WDYT? 😄
    🙋‍♂️ 2
    👍 8
    g
    y
    • 3
    • 2
  • a

    aksh1618

    07/26/2018, 2:46 PM
    Not sure where to post this, but the reference page on properties and fields has incorrect indentation in second and third codeblocks under Getters and Setters (https://kotlinlang.org/docs/reference/properties.html#getters-and-setters), which might be confusing for a beginner.
    o
    • 2
    • 1
  • r

    rakeeb

    07/26/2018, 6:23 PM
    was kinda curious on how unit tests were written for
    apply
    ,
    with
    , etc. couldn't find it on the public repo. does anyone know about it?
    k
    • 2
    • 2
  • p

    Prateek

    07/27/2018, 8:53 AM
    hey guys, I have a mock server https://mocklets.com which helps in simulating HTTP-based APIs for front end development. Currently we are providing only cloud-based service, but from the feedback we received from our users, there is also a need of hosted services which can be deployed on in-house infrastructure for the clients who don't want to expose their API schema to the cloud. So we are looking to develop a variant of our service to be hosted on client's infrastructure. Since the service will be using a database to store information, we are struggling on how to setup a database along with the setup process, and also don't want to expose our database schema to our client. Can anyone guide me towards any solution? Thanks
    k
    • 2
    • 2
  • e

    elect

    07/27/2018, 10:36 AM
    so, playing around with inline class, I'm exploring their usage for enums (regarding c/c++ binding/port libs). Inline enums are not yet available, however I'm somehow not complaining about this inside ^^. From some early experience, I can tell you I seem to like more inline classes than inline enums because you can simply
    inline class DrawMode(val i: Int)
    val Triangles = DrawMode(GL_TRIANGLES)
    ...
    fun glDrawArray(mode: DrawMode, count: Int) = ..
    whenever I type `glDrawArray(`and I call for type completition all
    DrawMode
    top level members will be available and suggested as first ones. I like this because I don't have to type
    glDrawArray(DrawMode.Triangles, ..)
    . I know I can work on the import, but this is overhead for me. Disadvantage, final user can of course implement it's own/additional
    DrawMode
    (not really a vs, since this gives the possibility for the user to add some newer enums from the latest API, where I still didnt catch on) and they are not guaranteed to be unique. Do you see other differences? What's your feeling about this? I'm looking especially at you @gildor @karelpeeters @louiscad @diesieben07 🙂
    k
    • 2
    • 5
  • y

    yaakov

    07/27/2018, 4:49 PM
    When did Jetbrains have an event in Tel Aviv?

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

    a
    • 2
    • 5
  • b

    bjonnh

    07/29/2018, 6:42 PM
    https://twitter.com/jiriknesl/status/1021814817592496128 — isn't that what arrow is for?
    k
    • 2
    • 1
  • u

    ursus

    07/29/2018, 10:43 PM
    Hey guys, when developing chats, do people roll their own websocket and stuff or is there go-to library? Im new to the domain
    d
    t
    • 3
    • 11
  • p

    poohbar

    07/30/2018, 3:05 PM
    3.1.7
    s
    • 2
    • 2
  • s

    Shawn

    07/30/2018, 3:07 PM
    Set Tab Title
    p
    o
    • 3
    • 6
  • o

    oshai

    07/30/2018, 5:51 PM
    Does
    kotlinlang.slack
    team now has full history?
    :yes: 4
    k
    • 2
    • 2
  • a

    apatrida

    07/30/2018, 8:12 PM
    Hey, need a few people that know Java at least a little (bad is fine, good is ok too!) to do a quick 5-6 minute experiment. It is a tiny coding problem that just needs to see some alternative variations. message me if you have <= 10 minutes to burn.
    a
    • 2
    • 1
  • e

    elect

    07/31/2018, 1:12 PM
    finally, I cant wait! https://github.com/Kotlin/KEEP/issues/142
    👍 2
    g
    k
    +2
    • 5
    • 11
  • s

    Shawn

    08/01/2018, 2:12 PM
    @karelpeeters you sure about that? in my repl I’m getting
    [Foo, Bar, , ]
    if I leave out the drop
    k
    • 2
    • 2
Powered by Linen
Title
s

Shawn

08/01/2018, 2:12 PM
@karelpeeters you sure about that? in my repl I’m getting
[Foo, Bar, , ]
if I leave out the drop
k

karelpeeters

08/01/2018, 2:20 PM
I was running my Java run configuration 🤦‍♂️ . Damm shortcuts!
s

Shawn

08/01/2018, 2:21 PM
¯\_(ツ)_/¯ happens
View count: 1