Це відео не доступне.
Перепрошуємо.

Kotlin for Java Programmers by Venkat Subramaniam

Поділитися
Вставка
  • Опубліковано 16 сер 2024
  • Subscribe to Devoxx on UA-cam @ bit.ly/devoxx-...
    Like Devoxx on Facebook @ / devoxxcom
    Follow Devoxx on Twitter @ / devoxx
    Kotlin is that dark horse of JVM languages. It has gained prominence in the recent times for various good reasons. But, what does Kotlin really mean to Java programmers? In this presentation we will explore the language, learn about its key strengths and capabilities, take a peek under the hood to what it’s capabilities mean on the Java eco system, and how and where we can benefit from it.
    Dr. Venkat Subramaniam is an award-winning author, founder of Agile Developer, Inc., creator of agilelearner.com, and an instructional professor at the University of Houston. He has trained and mentored thousands of software developers in the US, Canada, Europe, and Asia, and is a regularly-invited speaker at several international conferences. Venkat helps his clients effectively apply and succeed with sustainable agile practices on their software projects.
    Venkat is a (co)author of multiple technical books, including the 2007 Jolt Productivity award winning book Practices of an Agile Developer. You can find a list of his books at agiledeveloper.com. You can reach him by email at venkats@agiledeveloper.com or on twitter at @venkat_s

КОМЕНТАРІ • 50

  • @alex08585
    @alex08585 2 роки тому +13

    Of all the experts talks on Kotlin where they confuse you instead of clarifying things, Venkat's explanation by far is the best, its so good i had to leave a comment

    • @chewie481
      @chewie481 6 місяців тому

      Heh, the way you wrote this implies you think that this is still a talk where they confuse you instead of clarifying things and it's just the best of those.

  • @USONOFAV
    @USONOFAV 4 роки тому +23

    It's like Java and Typescript have a baby together and named it Kotlin

    • @IvanRandomDude
      @IvanRandomDude 2 роки тому +1

      Impossible,Kotlin is older than ts

    • @dmitriyobidin6049
      @dmitriyobidin6049 4 місяці тому

      @@IvanRandomDude have you watched "Don't Be a Menace to South Central While Drinking Your Juice in the Hood"

  • @Tjuger
    @Tjuger 5 років тому +5

    Nice video, ty.
    I guess that would have worked:
    operate {
    it turns it.right

    it turns it.left
    }

  • @DevLanding
    @DevLanding 6 років тому +18

    Nice introduction to kotlin Venkat!

  • @slazter274
    @slazter274 5 років тому +6

    No need to get names by going through the indices anymore, if you want some sort of enumeration, You can simply loop through withIndex() like such:
    val names = arrayOf("Blake" ,"Jason", "Spike")
    for ((index, value) in names.withIndex()) println("$index $value")
    which vill give you the exakt same output, just a bit more readable.

  • @marochow
    @marochow 6 років тому +3

    very happy hearing some clear english

  • @zjunothing4759
    @zjunothing4759 6 років тому +4

    Quite a clear lesson! Thanks Venkat

  • @igorg.8624
    @igorg.8624 6 років тому

    I love the REPL via kotlinc. Never thought of using it before.

  • @arunm619
    @arunm619 5 років тому +3

    Thank you sir.

  • @MrMikomi
    @MrMikomi 3 роки тому +1

    I'm not far into the presentation but it looks like a lot of stuff here has since been added to Java.

  • @dnavas7719
    @dnavas7719 5 років тому +6

    The lazy syntax is so uggly.
    val temp by lazy { compute(4) }
    Why not make it like this:
    val temp = lazy compute(4)

    • @francoisloriot2674
      @francoisloriot2674 2 роки тому

      your suggestion could not work, how would it know to delegate? "by" indicates delegation and "lazy" is a delegation function but you can delegate by something else like Observable or create your own. And the curly braces is to indicate the lambda expression to pass to the delegate.

  • @alainkr
    @alainkr 3 роки тому

    Love your work venkat

  • @mangeshpawar2255
    @mangeshpawar2255 3 роки тому

    Absolutely awesome 👍

  • @bush8501
    @bush8501 2 роки тому

    this dudes public speaking skills are on point

  • @ledwinson
    @ledwinson 6 років тому

    Thank you Venkat

  • @mytubekt
    @mytubekt 4 роки тому

    wow, great talk!

  • @user-qy7ly9cz5y
    @user-qy7ly9cz5y 10 місяців тому

    wow!

  • @asingb
    @asingb 6 років тому

    Nicely explained.

  • @tanko.reactions176
    @tanko.reactions176 7 місяців тому

    kotlin is the Way

  • @Zebsy
    @Zebsy 4 роки тому +2

    FIrst half OK - second half, lost it

  • @silver10188
    @silver10188 6 років тому +7

    "var is the keyword of shame" and because ... ??? no reason provided. It can be helpful in many cases when data changes, so why mention not looking to other developers in the eye and that condescending tone when you can't even explain why. This might be not related but I really don't like it when more experienced programmers look down at less experienced, like why? you were there one day, just say why a thing isn't good or keep your ego to yourself.

    • @MsJavaWolf
      @MsJavaWolf 5 років тому +6

      He seems to just be joking, don't take it personally. My guess would be that var is mutable state and therefore not good from a functional programming perspective. When you have mutable variables it can be harderto reason about and debug a program, because the variable might change at any place in the program. If you only have vals, you know they will never change. If you need to reassign a var, you could just as well create a new val instead.
      Now I don't think the pure functional style is always better, but that is absicaly ther easoning from that perspective.

    • @natepepin09
      @natepepin09 5 років тому +2

      That is just the programming community in general. They make snarky and passive agressive jokes. They are all kind of egotistical and self righteous. This was more light hearted joke, and it of course had that edge.
      To be clear, I don't think there is anything wrong with that as I'm part of that group.
      If he had time to explain why he would have, but he didn't. I can guarantee this because programmers love explaining anything and everything.

    • @slazter274
      @slazter274 5 років тому +7

      Anyone watching more of Venkats talk knows that hes a big proponent of immutability as we all should be, val is immutable, and var is mutable. Mutability is one of the biggest cause of bugs in code, therefore by overusing var your're more likley to induce bugs in code than if you we're to use val... Venkat is known to make jokes all the time, that what makes him such a captive talker. Don't take it to seriously, the point hes trying to make is that we should keep things as immutable as possible, and also hes known to joke about how he himself write bad code.. Don't get your panties in a twist lol.

  • @PetrSvobodnik
    @PetrSvobodnik 6 років тому +2

    Any idea what editor is he using?

  • @bhaskartaneja6293
    @bhaskartaneja6293 2 роки тому

    Kotlin : till lambda 35:00

  • @mojajema6460
    @mojajema6460 6 років тому

    Pls can you give the documentation for
    operate {
    it turns "right"
    it turns "left"
    }
    last topic thanks

    • @natepepin09
      @natepepin09 5 років тому

      Probably a little late, but I'll see if I can't help.
      "operate" is calling the function operate. You could call it like within parenthesis
      operate ({ it turns "right"; it turns "left" })
      but you don't need to because the compiler will put them in for you if you use a lambda as the last argument. It is just syntactic sugar.
      "it" refers to the robot being used in "operate" and you are essentially calling "robot.turn("left")". With the infix notation, it allows you to call it differently, as in "robot turn "left".
      The presenter got a little confused because it for some reason was giving him issues with using the property of left, so he instead just passed a string there. He could also have done
      it turns "I am making up this turn".
      For what he was trying to demonstrate, he should have been able to access anything within the Robot class since "it" refers to the robot. The code I downloaded for this part works.

  • @MartinSarosi
    @MartinSarosi 6 років тому +1

    what's his ide?

    • @rodelias9378
      @rodelias9378 6 років тому +4

      He's using TextMate. It's an text editor rather than an IDE. Take a look at this post: blog.agiledeveloper.com/2014/10/running-in-textmate.html

  • @_dinesh
    @_dinesh 2 роки тому +1

    Devoxx please give this man some extra time. So he can speak a little slower next time.

  • @nodarek
    @nodarek 6 років тому +5

    Hi 5 Jerry
    :D

  • @_thehunter_
    @_thehunter_ 6 років тому

    what is he using using for presentation?

  • @briansupra7
    @briansupra7 6 років тому

    TOP

  • @mr.RAND5584
    @mr.RAND5584 4 роки тому

    😄👍👍👍👍👍👍

  • @Zebsy
    @Zebsy 4 роки тому +2

    34:45 is not a good explanation of ?. and ?: - suggest people Google that !

  • @TheInimicus
    @TheInimicus 5 років тому +1

    31 minute and only small portion of kotlin syntax?

  • @JiYinPT
    @JiYinPT 3 роки тому

    why his voice is so sexy ?

  • @andrewdizenzojhu
    @andrewdizenzojhu 3 роки тому

    Wow this guy codes in 12 different languages! I wouldn't have known if he hadn't mentioned it 12 different times!!

  • @TheInimicus
    @TheInimicus 5 років тому +2

    This is for programmers? 7 minutes and all I saw was string interpolation and `kotlinc` command

  • @redpheonix999
    @redpheonix999 6 років тому +3

    ha ha stupid semicolon(;)