Martin Odersky: Scala with Style

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 ก.พ. 2025
  • What does it mean to have good style in Scala? Well, who better to help answer that question than its creator! Martin Odersky visited SF Scala to share his perspective on getting the most out of this incredibly complex, and powerful, programming language.
    This talk is a repeat of the keynote Martin gave at Scala Days 2013. He says, that in today's programming paradigm, we are in a transition period between imperative/object-oriented and functional programming. In the end, he predicts a fusion between both styles. Find out why!
    **Check this out for more of the latest in Scala: marakana.com/s/...

ความคิดเห็น • 23

  • @svsujeet
    @svsujeet 8 ปีที่แล้ว +10

    Hi Martin,
    (z /: xs)(op) is really brilliant.You have my full vote. I use it all the time and very easy to understand.

  • @cdrasmussen2372
    @cdrasmussen2372 10 ปีที่แล้ว +3

    This is an excellent talk

  • @cygil1
    @cygil1 11 ปีที่แล้ว +3

    Excellent talk. Can't believe this only has 12,000 views.

    • @RichardGrossmanBSG75
      @RichardGrossmanBSG75 11 ปีที่แล้ว +3

      yes gangand style was 1 Billions+ we've not choosen the right disciple

  • @Neolkx
    @Neolkx 11 ปีที่แล้ว

    Great talk.

  • @DisfigurmentOfUs
    @DisfigurmentOfUs 9 ปีที่แล้ว

    Very nice talk

  • @cdrasmussen2372
    @cdrasmussen2372 10 ปีที่แล้ว +1

    PROBLEM: Ringing
    I hope that who ever recorded this understands that a constant echo or ringing makes it very hard to distinguish some words. The tiny gain in volume is not worth the added distortion.

  • @professorneila2941
    @professorneila2941 6 ปีที่แล้ว

    I think every person who writes Scala needs to watch this video.

  • @bocckoka
    @bocckoka 6 ปีที่แล้ว

    the canonical solution for summing is foldleft? no sum method on functors?

  • @leoregnier
    @leoregnier 7 ปีที่แล้ว +1

    Wonderful talk as usual! Martin really manages to put together and give his valuable insights into a series of points you could only figure out yourself after a while of working with the language. For any anyone interested in, I've created a summary of the guidelines/choices presented during the talk: gist.github.com/lregnier/57179e016fad0028964bcfd9951e33cc

  • @saidsenhadji
    @saidsenhadji 7 ปีที่แล้ว

    great talk

  • @Elite7555
    @Elite7555 5 ปีที่แล้ว

    40:46 Am I really in a minority here when I say the simple loop is the clearest solution of them all? Should be the best performing as well.

    • @metterklume
      @metterklume 5 ปีที่แล้ว +1

      My initial reaction was the same as yours... but then I ran the code. And realized I had totally overlooked what happens if the List has an odd number of elements eg. the loop would give an IndexOutofBounds. So the choice of 'clearer' is not so obvious here.

  • @hellaren
    @hellaren 4 ปีที่แล้ว

    Great speaker and wonderful talk!
    At the same time really poor editing skills from the man/woman who was in charge of final version of the video.
    I was really pissed off when Martin was describing some code from a slide and instead of following his speech in attempt to understand what he is talking about I was forced to watch him only on the full screen instead of slides.

  • @steveburrus5526
    @steveburrus5526 9 ปีที่แล้ว

    marti n just why doesn't this bit of Scala code work successfully for me? What is wrong with it?
    object mySecondScala {
    def main (args : Array[String]){
    val convertToInt = {x:String => x.toInt }
    val doubleIt = {x:Int => x * 2}
    val sqrtIt = {x:Double => Math.sqrt(x)}
    val pipeline = convertToInt andThen doubleIt andThen sqrtIt
    args.foreach (x => println(pipeline(x)))
    }
    }

    • @AdamHickstadamhicks
      @AdamHickstadamhicks 8 ปีที่แล้ว

      I think because you need to use function literal notation for convertIt, doubleIt and sqrtIt.

    • @kantimaya
      @kantimaya 8 ปีที่แล้ว +1

      val dloubleIt => convert the result to Double

  • @codekomali1760
    @codekomali1760 3 ปีที่แล้ว

    he keeps mentioning " Scala has both " , "Scala has all three ways of...", "Scala supports all four types of"....."Scala supports N varieties of..."....
    excellent! but no Scala is not a kitchen sink language.....who said that!

  • @Ujjal.0011
    @Ujjal.0011 4 ปีที่แล้ว

    Is Scala dead or alive?

    • @RogerPack
      @RogerPack 3 ปีที่แล้ว

      It depends. LOL

    • @kubukoz_
      @kubukoz_ 3 ปีที่แล้ว +2

      Very much alive.

  • @inanme
    @inanme 11 ปีที่แล้ว

    fst...

  • @uris77
    @uris77 11 ปีที่แล้ว

    (z /: xs)(op)