KotlinOvjeren akaunt

@kotlin

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

Vrijeme pridruživanja: srpanj 2011.

Medijski sadržaj

  1. 30. sij

    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.

  2. 29. sij

    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!

  3. 28. sij

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

  4. 23. sij

    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

  5. 23. sij

    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

  6. 21. sij

    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.

  7. 15. sij

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

  8. 14. sij

    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

  9. 10. sij

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

    Prikaži ovu nit
  10. 10. sij

    Use scratch files to perform small experiments with your codebase

    Prikaži ovu nit
  11. 8. sij

    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!

  12. 24. pro 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.

  13. 17. pro 2019.

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

  14. 9. pro 2019.

    When debugging, you can modify the variable value directly:

  15. 29. stu 2019.

    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.

  16. 26. stu 2019.

    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:

  17. 22. stu 2019.

    Kotlin supports nested comments. You don't need to use workarounds like *//* ... *//*

  18. 18. stu 2019.

    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.

  19. 15. stu 2019.

    If you need an array of primitives, like an array of ints, use a specific type like 'IntArray' rather then 'Array<Int>'

  20. 13. stu 2019.

Č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.

    Možda bi vam se svidjelo i ovo:

    ·