Medijski sadržaj
- Tweetovi
- Tweetovi i odgovori
- Medijski sadržaj, trenutna stranica.
-
If you get lost inside nested scopes, remember that 'this.' always refers to the innermost one, which is useful for making sure something comes from the current scope instead of being inherited from an outer one.
#KotlinTipspic.twitter.com/XLUtKPUmQO
-
Do you use, or are you considering, Ktor? Find more details about the Ktor 1.3 release in this blog post. And please take part in the survey about Ktor! https://blog.jetbrains.com/kotlin/2020/01/ktor-1-3-release/ …pic.twitter.com/zED2JNkAjz
-
Use the combination of safe cast and ‘let’ to only perform an action if the expression has a specific type
#KotlinTipspic.twitter.com/yQmy6CyhE6 -
Use ‘it’ only in the simplest scenarios, when its type is clear from the context. Otherwise, introduce an explicit lambda parameter or use member references. It’s especially important for call chains where the lambda parameter type changes from one call to the next
#KotlinTipspic.twitter.com/Z8ZFvfbAv7 -
The Kotlin Census is out. Please take the survey and help the team understand how you used Kotlin in 2019. What did you love? What challenged you? Answer here https://kotl.in/census pic.twitter.com/53X8tJnXl0
-
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.
#KotlinTipspic.twitter.com/Xzx5744G9Q -
Curious about what font we’ve been using for
#KotlinTips all this time? It’s the new font from JetBrains: JetBrains Mono! https://www.jetbrains.com/lp/mono/ pic.twitter.com/8nkoXv7jLL -
Run the "Show Kotlin Bytecode" action and then click on "Decompile" to check how something is implemented under the hood and see the Java code that corresponds to the Kotlin code
#KotlinTipspic.twitter.com/JK8vRiORn3 -
If you would like to share these scratch files and store them in version control, use worksheets instead
#KotlinTipspic.twitter.com/ZQoDJSdu60Prikaži ovu nit -
Use scratch files to perform small experiments with your codebase
#KotlinTipspic.twitter.com/nPdfjxoUCuPrikaži ovu nit -
To write typesafe HTML directly inside your Kotlin code, use the kotlinx.html library. This is especially useful when building apps for the browser using Kotlin/JS!
#KotlinTipspic.twitter.com/1WRMJBsnIG
-
Escape callback hell when consuming APIs by using coroutines when building your applications. When you're using Kotlin/JS, coroutines play nicely with promise-based browser functionality, such as window.fetch or Body.json.
#KotlinTipspic.twitter.com/A8krEUGgb0
-
Use 'as' to rename the declaration when you import it:
#KotlinTipspic.twitter.com/9eqnNtNCDS -
When debugging, you can modify the variable value directly:
#KotlinTipspic.twitter.com/48itDVZ6zg -
Use 'xxxIndexed' counterparts for common operations to perform them with an index. Please share in the comments if there are operations which you are still missing 'Indexed' versions for.
#KotlinTipspic.twitter.com/ewNS24ysoN
-
Use the @JvmName annotation to workaround "the same JVM signature" error for declarations that differ only in generics and have the same signature with erased generics:
#KotlinTipspic.twitter.com/wfNPrRrrV5 -
Kotlin supports nested comments. You don't need to use workarounds like *//* ... *//*
#KotlinTipspic.twitter.com/cbhFOr1LXb
-
We’re happy to announce the release of Kotlin 1.3.60! It introduces Kotlin Worksheets, many quality and tooling improvements, support for the new Kotlin/Native targets, a sneak preview into Kotlin 1.4, and more. https://blog.jetbrains.com/kotlin/2019/11/kotlin-1-3-60-released/ …pic.twitter.com/6aLZjE3MVO
-
If you need an array of primitives, like an array of ints, use a specific type like 'IntArray' rather then 'Array<Int>'
#KotlinTipspic.twitter.com/vc2VsOHy9X
Čini se da učitavanje traje već neko vrijeme.
Twitter je možda preopterećen ili ima kratkotrajnih poteškoća u radu. Pokušajte ponovno ili potražite dodatne informacije u odjeljku Status Twittera.