Idio~ma~tic Kotlin (droidcon Vienna 2019)

Idio~ma~tic Kotlin (droidcon Vienna 2019)

‘Idiomatic’ is a word often used by Kotlin experts to describe elegant patterns or solutions that make excellent use of Kotlin’s features. Let’s turn this attitude around for a change, and have some fun by taking a look at the worst ways you can twist and abuse language features to take shortcuts, create tricky solutions, achieve exciting syntax, or confuse others who dare enter your codebase.

Talk recording: https://www.youtube.com/watch?v=XzBhrNq0nvQ

4047c64e3a1e2f81addd4ba675ddc451?s=128

Marton Braun

September 20, 2019
Tweet

Transcript

  1. 4.
  2. 5.
  3. 6.
  4. 7.
  5. 8.
  6. 9.
  7. 10.
  8. 11.
  9. 12.
  10. 13.
  11. 33.
  12. 50.
  13. 51.
  14. 52.
  15. 53.
  16. 54.
  17. 55.
  18. 56.
  19. 57.
  20. 58.
  21. 85.
  22. 86.
  23. 87.
  24. 88.
  25. 89.
  26. 90.
  27. 91.
  28. 92.
  29. 93.
  30. 94.
  31. 95.
  32. 97.
  33. 98.
  34. 99.
  35. 100.
  36. 101.
  37. 102.
  38. 103.
  39. 104.
  40. 105.
  41. 106.
  42. 107.
  43. 108.
  44. 109.
  45. 110.
  46. 111.
  47. 112.
  48. 113.
  49. 114.
  50. 115.
  51. 116.
  52. 117.
  53. 118.
  54. 119.
  55. 120.
  56. 121.
  57. 122.
  58. 140.

    Sources • Effective Kotlin - Marcin Moskala  https://leanpub.com/effectivekotlin •

    Abusing Kotlin's Unicode Support for Fun - Todd Ginsberg  https://todd.ginsberg.com/post/kotlin-random-extension/ • Typical Kotlin - Márton Braun  https://zsmb.co/talks/#typical-kotlin • Dealing with the absence of value - Roman Elizarov  https://medium.com/@elizarov/dealing-with-absence-of-value- 307b80534903
  59. 141.

    Sources • Reddit post - /u/Tok-A-Mak  https://www.reddit.com/r/Kotlin/comments/cdotu0/intellectuals_will_understand/ • Tweet

    - Marcin Moskala  https://twitter.com/marcinmoskala/status/1007640373970329600 • Stack Overflow question – Hi Lo  https://stackoverflow.com/q/48037330/4465208 • Stack Overflow question - cuihtlauac  https://stackoverflow.com/q/48505963/4465208
  60. 142.

    Image credits • First cover  https://unsplash.com/photos/Co_hWX_XtEk • Second cover

     https://www.pexels.com/photo/brown-tabby-cat-lying-on-sofa-755834/ • Questions slide  https://unsplash.com/photos/9SWHIgu8A8k