Rezultati pretraživanja
  1. 18. lis 2019.

    You can check whether the 'lateinit' property was initialized using 'isInitialized' on the corresponding property reference.

  2. 28. sij

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

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

  4. 1. stu 2019.

    Use the @⁠JvmName annotation to change the generated class name containing all the package-level functions and properties. Use @⁠JvmMultifileClass to combine the contents of several files under one "facade class".

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

  6. 28. sij

    I am finally resuming this after 1month of no coding.

  7. 24. sij
  8. 24. sij
  9. 22. sij
  10. 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.

  11. 21. sij
  12. Have you ever explored Returns, Jumps & Labels in Kotlin? Learn about it from here: Keep supporting, keep learning, keep sharing.

  13. 15. sij

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

  14. 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!

  15. 27. pro 2019.

    Backing fields in - It is generated for any property if it uses the default implementation of any of its accessor or custom accessor references it through the field - It can be accessed inside accessors only with name 'field'

    Prikaži ovu nit
  16. 25. pro 2019.

    raw strings in - raw strings are wrapped by """ instead of " - See example in the following image the difference between trimIndent & trimMargin

  17. 10. pro 2019.

    this why I like so much!

    Prikaži ovu nit
  18. Odgovor korisniku/ci
  19. 6. pro 2019.

    The method of .drop(k) removes k first symbols from the string. Also, it returns the resulting string.

  20. 30. stu 2019.

    Still battling with overriding unnecessary custom view constructors and java operability. is made for you.

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