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
feed
  • d

    dariuszbacinski

    11/09/2017, 7:11 AM
    "Is String a type or a class?". The common answer is "Both because every class is a type". It is not really true.
    this is also very confusing, it implies that String is not a type… but it is
    :thread-please: 1
    m
    • 2
    • 2
  • r

    raulraja

    11/09/2017, 8:39 AM
    @cedric yes we have Free, FreeApplicative, Cofree and many others in Kategory already and usable. Our type checked docs in Kategory are built with
    ank
    which is a markdown snippet evaluator based on
    Free
    : https://github.com/kategory/kategory/blob/master/ank-core/src/main/kotlin/io/kategory/ank/algebra.kt https://github.com/kategory/kategory/blob/master/ank-core/src/main/kotlin/io/kategory/ank/interpreter.kt
    :thread-please: 4
    • 1
    • 12
  • d

    diego-gomez-olvera

    11/09/2017, 1:08 PM

    https://youtu.be/7EVXypZDOos▾

    😅 2
    👍 4
    :kotlin: 1
    m
    g
    • 3
    • 2
  • d

    dh44t

    11/10/2017, 3:14 PM
    http://hadihariri.com/2017/11/10/multiplatform-projects-with-kotlin/
    👍 4
    :kotlin: 1
    n
    s
    • 3
    • 3
  • n

    nfrankel

    11/11/2017, 11:12 AM
    https://vimeo.com/242159070
    👍 8
    v
    d
    • 3
    • 4
  • d

    dh44t

    11/13/2017, 11:36 AM
    https://twitter.com/dh44t/status/928210588362264576
    e
    t
    a
    • 4
    • 6
  • o

    Oleksii

    11/13/2017, 3:52 PM
    Hey, fellow Kotliners, I have published a new article to hackernoon: https://hackernoon.com/how-kotlin-calamity-devours-your-java-apps-like-cancer-f3ce9500a028 (sorry for too powerful title in advance ;) ) If you like what you see, please give me some medium claps (you can do up to 50) and share it on social media! Feedback is welcome, as well.
    👍 2
    b
    v
    • 3
    • 12
  • h

    hho

    11/14/2017, 9:32 AM
    https://twitter.com/junitteam/status/930155017658667010
    🎉 21
    c
    • 2
    • 2
  • d

    Dave Leeds

    11/15/2017, 6:47 PM
    Here’s an article I wrote about covariance in Kotlin. If you’ve got any technical feedback after reading it, just let me know! https://typealias.com/concepts/covariance/
    d
    • 2
    • 2
  • k

    kirillrakhman

    11/18/2017, 7:57 PM
    https://medium.com/@Cypressious/your-first-firefox-web-extension-in-kotlin-348fc907915
    😍 4
    👍 6
    s
    • 2
    • 1
  • c

    cedric

    11/18/2017, 8:07 PM
    I wrote my own Chrome extension to highlight new comments in reddit and HN for Chrome and the one reason why I haven't switched to Firefox is because I need to port that extension. Now writing it in Kotlin makes it much more appealing
    k
    b
    c
    • 4
    • 7
  • m

    marcinmoskala

    11/20/2017, 9:45 AM
    My presentation from DevFest Siberia about Superpowers of Kotlin delegation. Enjoy 😉 https://blog.kotlin-academy.com/superpowers-of-kotlin-delegation-e6bd9ff8026c
    m
    z
    +2
    • 5
    • 5
  • r

    roberto.guerra

    11/20/2017, 2:41 PM
    🙂
    t
    m
    • 3
    • 2
  • a

    apatrida

    11/21/2017, 12:52 AM
    cross-post from #scripting I just put out BETA of a bunch of libs around, I'll start to do docs and samples now but worked out all the kinks. * Elasticsearch-lang-kotlin: Kotlin text scripting in Elasticsearch, and also the ability to send Kotlin Lambdas as scripts as well. Why give up syntax highlighting and help from our IDE's! -- https://github.com/kohesive/elasticsearch-lang-kotlin * Cuarentena: secure scripting (validate script or binary lambda against a whitelist of allowed accesses down to method level, matching Painless scripting rules from Elasticsearch but can apply elsewhere) -- https://github.com/kohesive/cuarentena * Chillambda: convert a lambda into a script (base64 encoded version that you can send somewhere to run using Cuarentena to validate the security rules are not violated, also handles safe ser/deser of the lambda to prevent attacks there as well) -- https://github.com/kohesive/chillambda * Keplin: shrunk down just to be less things, some slightly easier way of using Kotlin REPLs and scripting, but I would like to deprecate more here and just end up flat on the core from Kotlin. So expect this to shrink, and only be secure scripting hooks into Kotlin scripting with Cuarentena -- https://github.com/kohesive/keplin These are finally working and distributable, but need time to bake, samples written, docs, ... so be gentle to them. From here, I would like to get Kotlin scripting into other engines that make sense. But I'll let the details work out with this set first to find the kinks, close any holes, etc. I also have to update to other versions of Elasticsearch, including big changes in 6.x series.
    👍 13
    d
    m
    • 3
    • 9
  • o

    orangy

    11/24/2017, 6:18 PM
    https://jetbrains.github.io/xodus-dnq/
    👍 1
    y
    • 2
    • 1
  • e

    elye

    11/28/2017, 5:11 AM
    https://medium.com/@elye.project/using-kotlin-takeif-or-takeunless-c9eeb7099c22
    ➕ 4
    v
    d
    • 3
    • 2
  • t

    thomasnield

    11/28/2017, 12:17 PM
    http://talkingkotlin.com/Data-Science-with-Thomas-Nield/
    👍 9
    a
    • 2
    • 1
  • e

    elye

    11/28/2017, 10:04 PM
    https://medium.com/@elye.project/the-missing-trap-in-kotlin-36a0db9546ef
    r
    t
    +2
    • 5
    • 31
  • t

    todd.ginsberg

    11/30/2017, 10:28 PM
    I wrote a blog post about using Kotlin and Spring Boot 2.0 to write a reactive service https://todd.ginsberg.com/post/springboot2-reactive-kotlin/
    👍 5
    s
    j
    • 3
    • 2
  • t

    todd.ginsberg

    12/02/2017, 3:05 AM
    https://todd.ginsberg.com/post/advent-of-code/2017/day1/
    a
    • 2
    • 1
  • s

    s1m0nw1

    12/02/2017, 7:37 AM
    https://blog.simon-wirtz.de/the-power-of-gradle-kotlin-dsl/
    :kotlin-flag: 1
    👍 3
    :kotlin: 1
    v
    i
    g
    • 4
    • 11
  • p

    pivovarit

    12/05/2017, 6:49 AM
    http://4comprehension.com/kotlin-type-inference-puzzler/ - took me way more than necessary to figure out this one in a real project 🙂
    👍 2
    a
    s
    • 3
    • 4
  • j

    janvladimirmostert

    12/09/2017, 6:35 AM
    https://www.tiobe.com/tiobe-index/
    :kotlin: 9
    e
    • 2
    • 1
  • a

    alex.hart

    12/09/2017, 10:11 PM
    I wrote an article concerning Kotlin’s
    Nothing
    type https://proandroiddev.com/kotlins-nothing-type-946de7d464fb
    a
    • 2
    • 1
  • m

    marcinmoskala

    12/11/2017, 7:56 AM
    Finally, the article is ready 😄 Architecture for Multiplatform development in Kotlin with the fully featured example. Enjoy 🙂 https://blog.kotlin-academy.com/architecture-for-multiplatform-development-in-kotlin-cc770f4abdfd
    👍 1
    👏 9
    🤘 3
    :kotlin-flag: 6
    c
    • 2
    • 1
  • s

    Slackbot

    12/13/2017, 5:42 PM
    This message was deleted.
    o
    t
    • 3
    • 3
  • v

    vicky7230

    12/17/2017, 5:16 PM
    https://medium.com/@vicky7230/android-architecture-patterns-mv-c-p-vm-4594574eeaa1
  • m

    marcinmoskala

    12/18/2017, 7:07 AM
    Helpful in multiplatorm projects, but also for Android and iOS: Images sharing in Gradle multiprojects https://blog.kotlin-academy.com/images-sharing-in-gradle-multiprojects-aba5e6bc8b1a
    👍 2
    d
    • 2
    • 1
  • n

    nfrankel

    12/18/2017, 8:33 PM
    https://www.techyourchance.com/jetbrains-invented-promotes-kotlin/
    🙃 5
    👍 3
    u
    d
    +5
    • 8
    • 21
  • z

    ze

    12/19/2017, 1:43 PM
    https://blog.pusher.com/lessons-learned-implementing-redux-on-android/
    👏 4
    d
    z
    +3
    • 6
    • 11
Powered by Linen
Title
z

ze

12/19/2017, 1:43 PM
https://blog.pusher.com/lessons-learned-implementing-redux-on-android/
👏 4
d

dariuszbacinski

12/19/2017, 2:24 PM
great article, did you use one of libraries like evant/redux ReKotlin or redux-java ?
z

zmarkan

12/19/2017, 3:31 PM
@nish is the author ^^
n

nish

12/19/2017, 3:34 PM
@dariuszbacinski I recommended evant/redux and ReKotlin at the bottom. They are great starting points
y

yasyd

12/19/2017, 9:01 PM
Nice article but if you really want to understand how to use redux, you should really go back to the original implementation and its extensions.
In particular one often forgotten extension for redux is redux-saga middleware: it has ~11k stars on github (reduxjs repository has ~35k)
If you are interested, I have almost completed an initial port of redux-saga for kotlin+android, as part branch 3.x of https://github.com/beyondeye/Reduks. I will probably release it next week
👍 1
r

radityagumay

12/20/2017, 1:48 AM
Hi, I also play with redux some moment ago. Redux has good architecture to play with UI Complex changes. https://github.com/radityagumay/aredux
d

dariuszbacinski

12/20/2017, 7:08 AM
and if you are more like Rx kind of guy, then there is RxJS Middleware available for React and ReactNative https://github.com/redux-observable/redux-observable
👍 1
Nice article but if you really want to understand how to use redux, you should really go back to the original implementation and its extensions.
definitely it is worth to try Redux with React or React Native, for me it was mind-blowing how different this architecture is from MVP/MVVM counterparts, but at the same time very powerful and pleasant to use
https://camo.githubusercontent.com/9de527b9432cc9244dc600875b46b43311918b59/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6d656469612d702e736c69642e65732f75706c6f6164732f3336343831322f696d616765732f323438343739302f415243482d5265647578322d657874656e6465642d7265616c2d6465636c657261746976652e676966 here is nice diagram which helps to understand how all the components are glued together, without understanding this it is hard do do anything in Redux
👍 1
n

nish

12/20/2017, 3:37 PM
Rolling out my own implementation definitely helped me understand how things were supposed to work together. If your goal is learning, I recommend doing this for any architecture you are working with, not just Redux.
👍 2
View count: 4