Did your number of constructor parameters grow to a size where you’re no longer comfortable having them on the same line? Use the “put arguments on separate lines” intention, and have your code be formatted in a more vertical layout. #KotlinTips
Working remotely is not buying Zoom and filling your time with video conferences. Proper remote working requires a shift in mindset, a dissolution of fear of the unknown, and putting trust in your people. Learn how to do it right: https://t.co/oTfSg2IiET
I was thinking about how it'd be nice to have a UI for step-by-step synthesis of programs based on types, then remembered I built a microKanren evaluator ages ago which could help me to prototype this. Here it is, helping to find the identity function in BCKW:
We’ve just released Kotlin 1.3.70! Learn all about the new experimental functionality in the standard library and other improvements in our latest blog post https://t.co/jlyThHFgmb
Use the 'list.indices' property instead of building an explicit range using '0..list.length-1' or '0 until list.length'. Iterating over all such ranges is optimized, so no additional IntRange objects for storing indexes are created under the hood. #KotlinTips
You can use the 'takeIf' or 'takeUnless' function, followed by '?.let', in the middle of a call chain to continue execution only under a given condition. #KotlinTips
I made a very basic prototype of an idea we had kicking around on the PureScript Slack a while ago, for a statically-typed language with "dynamically-kinded types". https://t.co/WfGOOkSG3b
Read this blog post to find out how we’ve enhanced the IDE support for Gradle Kotlin Scripts and what other improvements we’re planning in this area.
https://t.co/ypnQWGOlTD
If you use the official kotlinx.serialization library, we have good news for you. Since v0.14.0, sealed-classes hierarchies are serialized automatically without using the @Polymorphic annotation! #KotlinTips
https://t.co/ViZC5cEaDP
Did you know?
Properties declared as 'val' can be overridden as 'var', and property setters can be made less visible than their getters #KotlinTips
https://t.co/Ba1LxBF4dI
https://t.co/U4Dpqo1Mlz
Have you wondered how we write documentation for Kotlin coroutines with code samples and make sure that those samples actually compile and continue to work as advertised with each release? The tool to help with it is standalone now in our incubator: https://t.co/9aBbJVHNog
Here's a secret: Kotlin multiline strings (also known as "raw" strings) can be used in a single line...
Why would you do this? When escaped characters are confusing, like in this example:
#KotlinTips
https://t.co/kEt6gofkbB
The Kotlin/JS Gradle plugin ships with webpack-dev-server. Together with Gradle continuous builds (using the "-t" run configuration argument in IntelliJ IDEA or by invoking ./gradlew -t run), you can have your page reload automatically whenever you change your code. #KotlinTips