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

    mg6maciej

    04/26/2017, 10:06 PM
    Just remember to copy font to your own repo in case that Github user finds it funny it replace font with something else 🙂
    i
    • 2
    • 1
  • c

    cedric

    04/27/2017, 4:28 PM
    so it’s actually harder to read. Anyone else seeing this?
    👍 2
    e
    • 2
    • 1
  • e

    evanchooly

    04/27/2017, 7:06 PM
    kotlin uses both syntaxes
    u
    • 2
    • 5
  • s

    snrostov

    04/27/2017, 10:42 PM
    operator fun <T, U> T.invoke(x: U) = ":)"
    😱 1
    :trollface: 4
    r
    u
    • 3
    • 19
  • t

    trevjones

    04/28/2017, 3:03 PM
    intellij with a java file open that has python code in it
    😆 3
    😕 1
    t
    s
    +2
    • 5
    • 7
  • n

    noctarius

    04/30/2017, 11:47 AM
    still playing with it but they will start with kotlin support tonight 😄
    m
    • 2
    • 3
  • o

    orangy

    05/01/2017, 10:37 AM
    Re learning programming with Kotlin, I was teaching my son the basics with Kotlin, it was really smooth. You can start with simple procedural stuff with
    println
    , no complex graphics, no objects, no functions. First teach decomposition with functions, then introduce a little bit of data classes without any methods, etc. The most complex thing to teach was actually not something specific to Kotlin, it was “memory model”, i.e. how data is represented inside a computer memory, the concept of a “reference”, the concept of a type of a memory data (even if as simple as String or data class), etc. YMMV, but I believe Kotlin is really good for teaching.
    👍 5
    e
    • 2
    • 3
  • l

    louiscad

    05/01/2017, 10:56 AM
    Having more programmers shouldn't hurt, and it's not because you tried that it'll become your day job
    m
    • 2
    • 3
  • o

    orangy

    05/01/2017, 10:56 AM
    I wonder if someone can approach http://www.android-ide.com/ and suggest adding Kotlin
    l
    • 2
    • 4
  • l

    louiscad

    05/01/2017, 11:08 AM
    @johnl Don't you think lowering the entering barrier to programming is a good idea?
    j
    • 2
    • 2
  • p

    poohbar

    05/01/2017, 11:37 AM
    @johnl ~Exactly, it is the wrong Spark. Why use the same name as such a widely popular computational framework. ~ I am not sure what logging dependencies you have had a problem with. Spring Boot on its own really is very tiny and simple but that is kind of the point. The real power comes when you start adding `starter`s from the Spring Framework. For example for making oAuth work or SSO or Redis. It is really a matter of seconds.
    j
    • 2
    • 2
  • k

    koufa

    05/01/2017, 7:20 PM
    @trevjones Yes I know they are using mockito. I did not knew that it was possible without Roboelectric though
    m
    • 2
    • 2
  • g

    groostav

    05/01/2017, 9:34 PM
    out of curiosity, has anyone seen a discussion about why the JVM needs to keep all `Thread`'s stack memory size the same? I feel like an awful lot of performance problems could be solved if the JVM was allowed to operate with differently-sized thread stacks. For threads that simply call blocking API's and dump the result into a
    Channel
    (or other coroutine/threading device), I would really appreciate the ability to tell the JVM that this thing just needs maybe 8Kb of stack.
    m
    e
    • 3
    • 3
  • c

    chris-hatton

    05/02/2017, 11:25 AM
    An Rx question: I"ve just migrated to Rx 2 and only just realised I can no longer have
    null
    elements in streams. In cases where
    null
    is notionally valid; such as a stream to fetch some cached user data, where there may be none... is it advisable to model these as exceptions
    NoUserDataException
    ?
    w
    • 2
    • 19
  • s

    sreich

    05/02/2017, 5:20 PM
    Sigh Java 9 is becoming Duke nukem forever
    d
    • 2
    • 1
  • d

    damian

    05/02/2017, 6:44 PM
    wow such canine 🐕
    ❤️ 2
    s
    • 2
    • 1
  • m

    mg6maciej

    05/03/2017, 3:07 PM
    Immutablility is a property of an object. Writablility is a property of property.
    r
    • 2
    • 3
  • m

    miha-x64

    05/03/2017, 3:14 PM
    okay_face.jpg
    you’re right
    m
    p
    • 3
    • 2
  • r

    Ruckus

    05/03/2017, 3:16 PM
    Long story short,
    val
    implies referential immutability, meaning it can't be reassigned. It has nothing to do with the mutability of object itself. That's up to the object (more specifically it's class definition) to provide. (This definition is only true for properties with backing fields)
    m
    • 2
    • 2
  • o

    orangy

    05/03/2017, 8:25 PM
    yep, if Scala API is “scala-only”, you will get something like this: https://github.com/orangy/http-benchmarks/blob/master/src/org/kotlin/community/http/benchmarks/colossus/ColossusBenchmark.kt
    r
    • 2
    • 2
  • s

    sigurdsa

    05/04/2017, 8:22 AM
    Kotlin just deployed to production for the first time 🎊
    🍻 8
    👏 17
    :kotlin: 14
    m
    d
    +2
    • 5
    • 5
  • s

    sigurdsa

    05/04/2017, 10:42 AM
    We have 99.44% java and 0.56% kotlin 😂
    :java: 2
    o
    • 2
    • 1
  • j

    jmfayard

    05/04/2017, 2:59 PM
    I implemented something that follows quite closely the spirit of dagger2, but that could well be even better for simple use cases. Often the Testcomponent needs to provide more types than Component, that's when the dagger2 pattern is more powerful
    k
    • 2
    • 2
  • p

    poohbar

    05/05/2017, 5:46 PM
    I would love www.codingame.com to support Kotlin. Codingame let's you program AI bots and practice machine learning. Way more fun than keep practicing graph theory and dynamic programming.
    k
    • 2
    • 3
  • c

    cedric

    05/05/2017, 10:12 PM
    Disappointed by the type system of your favorite language? Things could be worse:

    http://i.imgur.com/LwdWaAl.jpg▾

    💩 6
    m
    d
    +2
    • 5
    • 11
  • t

    thomasnield

    05/06/2017, 4:59 AM
    What's the simplest way to turn a consecutive
    Sequence<T>
    into a
    Sequence<List<T>>
    , where each
    List<T>
    is a consecutive batch of 10
    T
    items?
    v
    • 2
    • 2
  • d

    diesieben07

    05/06/2017, 2:48 PM
    At the fear of turning this into stackoverflow... Anyone know why the call mapType.keyType() does not compile here? https://git.io/v9VFY
    :stackoverflow: 4
    o
    • 2
    • 4
  • c

    codeslubber

    05/07/2017, 9:24 PM
    you put milk in your coffee?
    m
    r
    b
    • 4
    • 6
  • c

    cedric

    05/08/2017, 5:58 AM
    And you're about to have two.
    😒cala: 2
    😆 5
    g
    c
    • 3
    • 17
  • b

    bamdmux

    05/08/2017, 11:38 AM
    @elect The archive? kotlinlang.slackarchive.io/random
    e
    • 2
    • 1
Powered by Linen
Title
b

bamdmux

05/08/2017, 11:38 AM
@elect The archive? kotlinlang.slackarchive.io/random
e

elect

05/08/2017, 11:38 AM
bamdmux: thanks
👍 1
View count: 2