Martin Odersky: Scala with Style

Поділитися
Вставка
  • Опубліковано 29 лис 2024
  • 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

  • @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

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

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

  • @DisfigurmentOfUs
    @DisfigurmentOfUs 9 років тому

    Very nice talk

  • @Neolkx
    @Neolkx 11 років тому

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

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

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

  • @saidsenhadji
    @saidsenhadji 7 років тому

    great talk

  • @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 7 років тому +1

      val dloubleIt => convert the result to Double

  • @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 4 роки тому +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.

  • @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.

  • @uris77
    @uris77 11 років тому

    (z /: xs)(op)

  • @inanme
    @inanme 11 років тому

    fst...