10 Kotlin Tricks in 10 ish minutes by Jake Wharton

Sdílet
Vložit
  • čas přidán 29. 06. 2024
  • Subscribe to Devoxx on CZcams @ bit.ly/devoxx-youtube
    Like Devoxx on Facebook @ / devoxxcom
    Follow Devoxx on Twitter @ / devoxx
    Kotlin is new language growing in popularity as a complement to Java. Its major advantages and features compared to Java are immediately appealing. While it's quick to learn, it also has a lot of small and thoughtful parts which can be harder to discover. This short talk will cover 10 of my favorites with real-world examples. Attendees should come in having seen some Kotlin but looking to learn even more.
    Jake Wharton is an Android developer at Square working on Square Cash. He has been living with a severe allergy to boilerplate code and bad APIs for years and speaks at conferences all around the world in an effort to educate more about this terrible disease.
  • Věda a technologie

Komentáře • 37

  • @ErsinErtan
    @ErsinErtan Před 6 lety +91

    03:36 #01 Explosive Placeholders
    04:33 #02 Semantic Validation
    05:59 #03 Anything and Nothing
    08:54 #04 Let
    10:50 #05 Multiline String Literals
    11:50 #06 Lazy but Speedy
    13:12 #07 Code Block Measurement
    13:49 #08 Deprecation Levels
    15:03 #09 Deprecation Replacements
    15:58 #10 Erasing Erasure

    • @bcut
      @bcut Před 5 lety

      thanks +Ersin Ertan

    • @theapache64
      @theapache64 Před 5 lety

      @Devoxx You should add this timeline to the description (y)

    • @ayudakov
      @ayudakov Před 4 lety

      Thank you!

    • @holdenwilder4506
      @holdenwilder4506 Před 2 lety

      I dont mean to be off topic but does someone know a trick to get back into an Instagram account?
      I was stupid forgot the account password. I would appreciate any assistance you can give me

    • @ramkrishnasarma1171
      @ramkrishnasarma1171 Před 2 lety

      @@holdenwilder4506 k

  • @gregoryphiri5724
    @gregoryphiri5724 Před 2 lety +6

    Years later and still informative, thanks a lot.

  • @karolmierzejewski1392
    @karolmierzejewski1392 Před 7 lety +34

    #10 is really cool. Well, all of them are, but I didn't know about this one :)

  • @ladimerelyeh7082
    @ladimerelyeh7082 Před 6 lety +3

    Excellent video. Well done.

  • @SulaimanRafiq
    @SulaimanRafiq Před 2 lety +1

    Great video. Concise and to the point yet a wealth of information shared. Thank you

  • @danny117hd
    @danny117hd Před 3 lety

    Finally my KOTLIN search is over. Great Video. Great Format. Easy to see on chromecast.

  •  Před 6 lety +2

    Great tricks! thanks Jake.

  • @hasnainabbasdilawar8832
    @hasnainabbasdilawar8832 Před 5 lety +14

    All hail lord Jake Wharton!

  • @Ben-wx1ln
    @Ben-wx1ln Před 3 lety

    This is very good, I watch it three times to learn every point

  • @turastory
    @turastory Před 6 lety +12

    In my case, annotation for deprecation sounds fairly useful!!

    • @azizbekrasulmetov9293
      @azizbekrasulmetov9293 Před rokem

      when can we use it? Why one would need it? I coulnt get it.

    • @turastory
      @turastory Před rokem

      Well, it's fairly old one so I couldn't remember what I thought back then but here are some use cases I think..
      1. Library authors - definitely the changes in the library that might not compatible with the older ones should be noted before the changes were made. Many parts of Android framework uses deprecation annotations, for instance.
      2. Large codebase where the author of the code is different from the user of the code. It is similar to the first one.

  • @alekseykonovalik5965
    @alekseykonovalik5965 Před 7 lety +5

    Awesome video! I was thinking about the ?.let thingy, now i understand why it is preferred way to work with Kotlin's volatile var variables, instead of if (var != null), i would put several likes if i could.

  • @park2348190
    @park2348190 Před 2 lety

    didn't know #10. thanks!

  • @punerealestatebuilder
    @punerealestatebuilder Před 2 lety +1

    Even after 4 years of this video, I can bet that 99% of the Android developer do not know about all 10 things. Even I am working in Kotlin since 2018 and I did not know 4 things from this video.

  • @druvak
    @druvak Před 3 lety +1

    This talk was a thing of beauty. Well done.

  • @rakshitsoni851
    @rakshitsoni851 Před 3 lety

    Amazing tutorial

  • @IUfidi
    @IUfidi Před 2 lety

    butterknife: I'm following u.

  • @user-mt2mc7dj8z
    @user-mt2mc7dj8z Před rokem

    I am also interested in how he design the slide. It is very concise and intuitivr.

  • @rajushingadiya2860
    @rajushingadiya2860 Před 2 lety

    today you made me fan of yours ..... it's really really useful thing's man
    i am going subscribe now with bell icon and also like your all videos
    keep making content like this ...
    anyway i am Android developer and i want to learn advanced Android like .....Cred app ... guide me how can i archive performance like Cred

  • @lycheejuicelichigaming2263

    13:40 its actually measureNanoTime{}

  • @samha1513
    @samha1513 Před 5 lety

    So nervous 😳

  • @lennysmileyface
    @lennysmileyface Před 5 lety

    Wait, if you wanted to access name like user.name instead of getters why not just make name public?

    • @tom01b
      @tom01b Před 5 lety +5

      ( ͡° ͜ʖ ͡°) property access still uses the mutators and accessors (whether they be manually defined or auto generated)

    • @illusion9423
      @illusion9423 Před 2 lety

      If anyone else sees this.
      It's because attributes have a thing called properties that you can use to remake a getter or a setter. You can also use it to make the setter private.
      Those things are not in Java, hence with Java it's unsafe because later you might make your getters do something else besides returning the variable, but in Kotlin, because you can always change them with properties, it is safe

  • @hamuelagulto796
    @hamuelagulto796 Před 3 lety

    THAT'S 20 ISH MINUTES!!#!#+#(#(#(#

  • @ZelenoJabko
    @ZelenoJabko Před 2 lety

    7 out of these 10 things are literally stolen from Scala.
    Kotlin is cheap Scala clone.

  • @teenriot666
    @teenriot666 Před 4 lety +1

    I dont watched the whole vid since you don't show "T R I C K S" you just repeat kotlin idioms, so you do clickbaiting. Shame on you.