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

    napperley

    06/16/2020, 2:17 AM
    I have written an article on frontend web development with Fritz2 ( https://medium.com/@napperley/frontend-development-with-fritz2-5b8dc68df7c7 ), which is a framework for developing frontend web applications that most Kotliners don't know about.
    g
    h
    +2
    • 5
    • 12
  • n

    Nick

    06/16/2020, 6:52 AM
    I just released Doodle. A pure Kotlin UI framework for the Web. The difference compared to other frameworks is that it is not a nicer way to write HTML/CSS. Doodle apps actually don't use browser concepts at all. Single-language Doodle is written entirely in Kotlin and so are its apps. Doodle Applications do not use HTML, CSS styles or Javascript libraries. In fact, apps are not aware of the Browser (or Browser concepts) at all, and can be written entirely as common (cross-platform) code in multi-platform setups. Expressive Creating expressive, intuitive apps is natural with Doodle. It makes complex rendering easy with powerful, vector-oriented rendering, provides fully customizable layouts and simplifies pointer and keyboard handling. Simply define your View hierarchy, business logic and go. Vector Oriented It is easy to build beautifully detailed UIs with Doodle. All rendering in Doodle is vector-oriented; so ellipses, paths, lines, gradients, affine transforms etc. are as simple to use as images and rectangles. Precise Doodle gives you control over all aspects of the UI presentation, including pixel-level positioning, making it easier to precisely control rendering. Modular Doodle has several libraries and a collection of modules. This allows selective adoption of various features and helps with bundle size. Apps written with Doodle are also dependency-injected; and there are no global objects or state to make mocking challenging.
    class HelloWorld(display: Display): Application {
        init {
            display.children += object: View() {
                init { size = display.size }
    
                override fun render(canvas: Canvas) {
                    canvas.text("Hello, world!",
                        at = Origin, 
                        brush = ColorBrush(Black))
                }
            }
        }
    
        override fun shutdown() {}
    }
    
    fun main() {
        application {
            HelloWorld(display = instance())
        }
    }
    👍 2
    🎉 3
    h
    a
    • 3
    • 14
  • g

    GarouDan

    06/16/2020, 5:09 PM
    Hi, I’d like to share a project that I was working on:
    Universal Kotlin
    is a project that aims to run on the most popular platforms using just Kotlin. Also, one of its goals is to use shared code from the common modules and libraries in all other ones. The current supported implementations are
    - buildSrc
    - common (multiplatform)
    	- multiple source folders
    	- single_source folder
    - library (multiplatform)
    	- multiple source folders
    	- single_source folder
    - application
    	- backend
    		- jvm
    			- spring boot
    	- browser
    		- js
    			- spa
    				- react
    			- vanilla javascript (kotlin only)
    		- native
    			- wasm32 (kotlin only)
    	- desktop
    		- jvm
    			- tornado fx
    	- mobile
    		- jvm
    			- android
    		- native
    			- apple
    				- ios
    					- iosX64 application copying a kotlin framework
    					- iosX64 kotlin framework (for reuse)
    					- iosX64 application with a kotlin framework embedded
    					- iosX64 application withtout a kotlin framework
    	- script
      		- jvm
      			- kscript
    	- terminal
    		- jvm
    			- terminal (jvm terminal application)
    https://github.com/funttastic/universal_kotlin
    👍 4
    j
    • 2
    • 2
  • g

    gammax

    06/16/2020, 5:28 PM
    Hey all 👋 Sharing this small article about my Android/Kotlin template setup, and the 5 steps I do just before starting a new project: https://medium.com/@cortinico/my-android-project-template-1c0a7069ae31
    👏 2
    n
    j
    • 3
    • 7
  • s

    Slackbot

    06/19/2020, 9:29 AM
    This message was deleted.
    h
    • 2
    • 1
  • n

    nfrankel

    06/21/2020, 7:37 PM
    https://blog.frankel.ch/project-loom-reactive-coroutines/
    a
    r
    +5
    • 8
    • 28
  • r

    romainbsl

    06/22/2020, 2:43 PM
    Hello Kotlin lovers 👋 Some news from our Kodein Koders Tech’blog 🙂 https://medium.com/kodein-koders/native-dependency-in-kotlin-multiplatform-part-1-architecture-7fb9ded56bf1 https://medium.com/kodein-koders/dependency-injection-on-kotlin-multiplatform-part-1-factorize-your-code-f299dd2a5d04 Let us know what do you think about it!
    z
    • 2
    • 2
  • d

    diego-gomez-olvera

    06/22/2020, 4:13 PM
    the new Dokka looks great

    https://www.youtube.com/watch?v=OvFoTRhqaKg&list=PLnYRVL0Cw1FQRDYpKQ8kbcg2-K8I9k1RH▾

    ❤️ 5
    👍 9
    👀 4
    a
    • 2
    • 1
  • m

    mattmoore

    06/24/2020, 10:26 PM
    For those curious about pattern matching for Kotlin, I've been working with Raul Raja, Nico D'Cotta and a few others to bring pattern matching to Kotlin via Arrow Meta. Nico and I will be giving a talk on it next Wednesday: https://www.meetup.com/kotlin-london/events/271391822/ Anyone who is interested is more than welcome to attend. 🙂 If you'd like to help, follow along with our journey or have any questions, we are in the #pattern-matching channel.
    👏 1
    k
    • 2
    • 2
  • r

    Robert Jaros

    06/30/2020, 9:15 PM
    I've released KVision 3.11.0 - https://github.com/rjaros/kvision. Highlights of this release: - full support for Onsen UI mobile web components with type-safe Kotlin API and DSL builders (see demo: https://github.com/rjaros/kvision-examples#onsen-ui-kitchen-sink) - extended functionality of the Maps module (contributed by Jörg Rade) - a lot of small improvements and bug fixes - upgraded dependencies (Javalin 3.9.0, Jooby 2.8.8, Spring Boot 2.3.1, ReduxKotlin 0.5.1, Tabulator 4.7.1, Chart.js 2.9.3 and others) For more details about this release see the changelog. As always any feedback is welcomed 🙂
    👍 1
    d
    • 2
    • 17
  • e

    elizarov

    07/01/2020, 2:34 PM
    Kotlin lambdas can have a receiver in their scope. They are great to make your code concise, but keeping code readable takes some practice. https://medium.com/@elizarov/with-the-receiver-in-scope-7b52bdcca6e9
    👍 24
    d
    j
    +4
    • 7
    • 35
  • s

    suresh

    07/07/2020, 8:21 PM
    https://discuss.kotlinlang.org/t/state-of-webassembly-in-kotlin/18348
    :kotlin-flag: 2
    🤘 1
    ❤️ 8
    j
    • 2
    • 1
  • d

    Dennis Schröder

    07/10/2020, 11:44 AM
    Interested in Kotlin and home automation? Then have a look at Khome, a home automation library build for Home Assistant (the fastest growing smart home application out there). Khome enables you to write your own Home Assistant automation applications, that can observe state changes, listen to events, and much more. Here is a simple example to give you ua quick feeling what it is:
    val KHOME = khomeApplication()
    
    val LivingRoomLuminance = KHOME.LuminanceSensor("livingRoom_luminance")
    val LivingRoomMainLight = KHOME.SwitchableLight("livingRoom_main_light")
    
    fun main() {
        LivingRoomLuminance.attachObserver { //this: Actuator<LuminanceState,LuminanceAttributes>
            if (actualState.value < 3.0) {
                LivingRoomMainLight.desiredState = SwitchableState(ON)
            }
        }
    
        KHOME.runBlocking()
    }
    👍 3
    👀 7
    a
    o
    • 3
    • 5
  • a

    Anwar

    07/10/2020, 12:22 PM
    Pakistani community yar kaha ho.... Yar ak group bna len or phir osmn K dosre ki help hogi
    🤔 3
    t
    a
    • 3
    • 2
  • e

    Erik Christensen

    07/13/2020, 1:58 AM
    Just released version 0.2.3 of Island Time -- a multiplatform date and time library. There are some fancy new rounding operators, API tweaks, and a separate Kotlin 1.4-M3 build, but probably the biggest star of the release is a new project page with vastly expanded documentation, so check it out! https://islandtime.io
    👍 9
    j
    s
    • 3
    • 7
  • e

    elizarov

    07/22/2020, 9:22 AM
    Immutability used to be a prohibitively costly luxury in the old days of slow and expensive computers. Not anymore https://medium.com/@elizarov/immutability-we-can-afford-10c0dcb8351d
    👏 21
    :kotlin: 3
    t
    c
    • 3
    • 7
  • s

    Slackbot

    07/24/2020, 7:53 AM
    This message was deleted.
    b
    s
    • 3
    • 6
  • g

    gammax

    07/24/2020, 12:17 PM
    Hi all 👋 Sharing a short article I wrote about 
    noinline
     and 
    crossinline
     together with some examples: https://medium.com/@cortinico/kotlins-noinline-crossline-once-for-all-c942fd07b7a3
    👍 20
    ❤️ 3
    s
    v
    • 3
    • 3
  • n

    napperley

    07/26/2020, 1:17 AM
    Posted an article on the current situation with Linux development support on Kotlin Native: https://medium.com/@napperley/linux-development-support-on-kotlin-native-ae78885e2d19
    ➕ 4
    🤔 1
    s
    r
    +5
    • 8
    • 89
  • b

    Big Chungus

    07/28/2020, 9:11 AM
    message has been deleted
    💪 1
    j
    • 2
    • 8
  • b

    brandonmcansh

    07/28/2020, 1:53 PM
    Put out my first OSS library for Android 🙂 https://bmcreations.dev/blog/introducing-scrcast
    👍 10
    👏 6
    p
    • 2
    • 9
  • a

    altavir

    07/29/2020, 10:05 AM
    @Iaroslav Postovalov just published an article about AST-based optimization of mathematic expressions in Kmath: https://medium.com/@postovalovya/expression-optimization-with-jvm-bytecode-generation-b50304b96619. It is a little bit technical, bur I think it worth reading for people who are interested in performance on JVM.
    ❤️ 2
    m
    i
    • 3
    • 4
  • a

    Alex Vanyo

    07/29/2020, 5:36 PM
    Just posted an article diving into why this might not do what you’d expect, depending on ordering and the platform:
    sealed class Choices {
        object A : Choices()
        object B : Choices()
        object C : Choices()
        object D : Choices()
        
        companion object {
            val defaultChoice = C
        }
    }
    https://medium.com/livefront/kotlin-a-tale-of-static-cyclical-initialization-3aea530d2053
    👍 1
    👏🏾 4
    t
    • 2
    • 1
  • e

    evanchooly

    08/05/2020, 7:43 PM
    hey i know both those guys! awesome.
    :thread-please: 2
    🤘 1
    a
    n
    • 3
    • 2
  • c

    Chris

    08/07/2020, 12:39 AM
    Hi kotlin this.argument.putAll Type Error Preblem Solution? Hmm..
    🙈 1
    😵 4
    🤔 4
    ❓ 3
    s
    • 2
    • 1
  • m

    Madalin Valceleanu

    08/10/2020, 6:22 AM
    📚 Sample Android Components Architecture on a Modular Word focused on the scalability, testability and maintainability written in Kotlin, following best practices using Jetpack. Application is based, apply and strictly complies with each of the following 5 points: • A 
    single-activity architecture
    , using the Navigation component to manage fragment operations. • Android 
    architecture components
    , part of Android Jetpack give to project a robust design, testable and maintainable. • Pattern 
    Model-View-ViewModel
     (MVVM) facilitating separation of development of the graphical user interface. •
    S.O.L.I.D
     design principles intended to make software designs more understandable, flexible and maintainable. •
    Modular app architecture
     allows being developed features in isolation, independently from other features. Project link: https://github.com/VMadalin/android-modular-architecture
    👍 2
    🎉 1
    c
    • 2
    • 1
  • j

    Jarosław Michalik

    08/11/2020, 7:16 AM
    https://kotlintesting.com/kotest-parameterized/
    👍 2
    s
    c
    • 3
    • 3
  • e

    elye

    08/12/2020, 11:03 AM
    https://tinyurl.com/yyw2d72n
    👍 4
    m
    a
    • 3
    • 2
  • p

    pawegio

    08/14/2020, 12:00 PM
    frogs say… that :kotlin: 1.4.0 is coming
    🎉 3
    a
    • 2
    • 2
  • m

    Manish Jain

    08/17/2020, 4:49 PM
    I have written this piece to describe the benefits I felt using Kotlin over Java. I have created Android Apps and Backend Services using Kotlin. Let me know if you have had similar experience switching to Kotlin. Also this link is free to open and read! https://levelup.gitconnected.com/benefits-of-kotlin-over-java-backend-and-android-1aa61eaad337?source=friends_link&amp;sk=e8769bfaf2bb7b009fe6607d084e9238
    s
    • 2
    • 3
Powered by Linen
Title
m

Manish Jain

08/17/2020, 4:49 PM
I have written this piece to describe the benefits I felt using Kotlin over Java. I have created Android Apps and Backend Services using Kotlin. Let me know if you have had similar experience switching to Kotlin. Also this link is free to open and read! https://levelup.gitconnected.com/benefits-of-kotlin-over-java-backend-and-android-1aa61eaad337?source=friends_link&amp;sk=e8769bfaf2bb7b009fe6607d084e9238
s

Stephan Schroeder

08/17/2020, 9:11 PM
I totally agree with your top three: • nullability, • sealed classes, • and immutability (well, at least it feels like it, technically you could have a getter returning changing values, but close enough for unnecessary mutable variables to feel dirty) Lateinit is really only solving a problem that Java with it's mutable variables and always nullable types doesn't even have 😂 only two big things that come to my mind: • extension methods and • inline functions with reified type parameter! (I'm Kotlin/JVM-only for now.)
honourable mention: the new (Kotlin1.4) trailing comma in parameter lists 😆
m

Manish Jain

08/17/2020, 9:20 PM
That’s a nice summary!
View count: 5