KotlinVerified account

@kotlin

Statically typed programming language targeting JVM, Android, JavaScript & Native / Sponsored and Developed by

Joined July 2011

Tweets

You blocked @kotlin

Are you sure you want to view these Tweets? Viewing Tweets won't unblock @kotlin

  1. Pinned Tweet
    Jan 23

    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

    Undo
  2. Jan 30

    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.

    Undo
  3. Jan 29

    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!

    Undo
  4. Jan 28

    Use the combination of safe cast and ‘let’ to only perform an action if the expression has a specific type

    Undo
  5. Jan 23

    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

    Undo
  6. Jan 21

    📣Call for use cases! Have you tried Kotlin Multiplatform for your mobile app? Please tell us about it. We are looking for people who are up for a short, use-case interview. If you’re interested, please reply to this tweet with the name of your application.

    Undo
  7. Jan 21

    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.

    Undo
  8. Jan 15

    Curious about what font we’ve been using for all this time? It’s the new font from JetBrains: JetBrains Mono!

    Undo
  9. Jan 14

    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

    Undo
  10. Jan 10

    You can read more about scratches and worksheets in the documentation:

    Show this thread
    Undo
  11. Jan 10

    If you would like to share these scratch files and store them in version control, use worksheets instead

    Show this thread
    Undo
  12. Jan 10

    Use scratch files to perform small experiments with your codebase

    Show this thread
    Undo
  13. Jan 8

    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!

    Undo
  14. Retweeted
    31 Dec 2019

    All talks from KotlinConf 2019 are now available online Happy New Year to everyone and we'll see you in 2020!

    Undo
  15. Retweeted
    24 Dec 2019
    Undo
  16. 24 Dec 2019

    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.

    Undo
  17. 20 Dec 2019

    Are you wondering if Kotlin can be used for data science? In a word, yes! Here’s a status update on the Kotlin tools, libraries, roadmap, and other useful resources for data science that you can already use today.

    Undo
  18. Retweeted
    16 Dec 2019

    So here's idiomatic range iteration in and in . One may say that the Java way is just a little more verbose while Kotlin provides syntactic sugar to express the same thing. But even integer ranges as first-class citizens is more than just sugar.

    Show this thread
    Undo
  19. 17 Dec 2019

    Use 'as' to rename the declaration when you import it:

    Undo
  20. 9 Dec 2019

    When debugging, you can modify the variable value directly:

    Undo

Loading seems to be taking a while.

Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.

    You may also like

    ·