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/...
Hi Martin,
(z /: xs)(op) is really brilliant.You have my full vote. I use it all the time and very easy to understand.
This is an excellent talk
Excellent talk. Can't believe this only has 12,000 views.
yes gangand style was 1 Billions+ we've not choosen the right disciple
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
I think every person who writes Scala needs to watch this video.
Very nice talk
Great talk.
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.
the canonical solution for summing is foldleft? no sum method on functors?
great talk
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.
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)))
}
}
I think because you need to use function literal notation for convertIt, doubleIt and sqrtIt.
val dloubleIt => convert the result to Double
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.
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.
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!
Is Scala dead or alive?
It depends. LOL
Very much alive.
(z /: xs)(op)
fst...