Scala Versus Java

Поделиться
HTML-код
  • Опубликовано: 20 янв 2025

Комментарии • 51

  • @Aabil11
    @Aabil11 4 года назад

    34:30 I just tried this in Intellij with Scala 2.13 and I annotated that function with @tailrec and it failed to compile.

  • @MINDoSOFT
    @MINDoSOFT 13 лет назад +2

    Excellent video, especially the code samples are exactly to the point.
    Magnificent work, Dan Rosen.
    I will surely watch your other video about Monads.
    Scala rules!

  • @AetherElemental
    @AetherElemental 12 лет назад

    The 1 to 10 List example is NOT tail recursive as claimed

  • @wjblazkowicz
    @wjblazkowicz 11 лет назад

    Regarding the optimization of synchronized in JVM (0:30:00). It does only optimize single threaded access to a synchronized method. So it still stays slow in a multithreaded environment.

  • @wessidestory
    @wessidestory 12 лет назад

    C# is object oriented, so while you can do most of this in it, it's organized differently. In OO programming, it's easy to make objects, hard to make functions (which aren't tied in some way to a specific object). In functional programming, it's hard to make objects but easy to make functions. Scala, being functional, makes it easy to keep your program modular; however, Scala also allows you to represent objects easily as well. It puts a lot of tools in your kit.

  • @NadavBenedek
    @NadavBenedek 8 лет назад

    Tiny mistake at 28:48
    It should be private static Bar bar

    • @GiletteRazorsharp
      @GiletteRazorsharp 8 лет назад

      Why should it have to be static?

    • @NadavBenedek
      @NadavBenedek 8 лет назад

      If you try to create a singleton, it should be static, otherwise how would you instantiate the object?

    • @GiletteRazorsharp
      @GiletteRazorsharp 8 лет назад

      I don't think I'm following. Let's say you have multiple instances of the Foo class and you want each class to have it's own specific instance of bar; making it static would prevent that. It's simply a case of how you want your program to function.

  • @chrimony
    @chrimony 12 лет назад

    The no-spin quote from Yammer:
    "Right now at Yammer we're moving our basic infrastructure stack over to Java, and keeping Scala support around in the form of façades and legacy libraries. [..] The essence of it is that the friction and complexity that comes with using Scala instead of Java isn't offset by enough productivity benefit or reduction of maintenance burden for it to make sense as our default language."

  • @jimtoxford
    @jimtoxford 12 лет назад +2

    Superb video. I think I'll rewatch!
    Love Scala, it's just great.

  • @De4sher
    @De4sher 12 лет назад

    doesn't C# have all this and more? (just a noob question).

  • @uploadvoice
    @uploadvoice 5 лет назад +1

    *Hello, Good video But at **34:40** the guy is wrong his fonction is not tail recursive*
    Correct way :
    def listToTen(i:Int): List[Int] = {
    def listToTenUtil(i:Int, acc:List[Int] = List.empty): List[Int] = {
    if(i == 10 ) acc
    else
    listToTenUtil(i+1,i :: acc)
    }
    listToTenUtil(1)

  • @cbeers21
    @cbeers21 9 лет назад +2

    I'm looking for experienced Scala Senior Developers in the Toronto area. Wouldn't usually advertise on RUclips but finding it very tricky to find this very specific skill set. It's a great opportunity so drop me a line
    Thanks,
    Chris

    • @metabolic_jam
      @metabolic_jam 6 лет назад

      Chris Beers How did the search workout for ya?

  • @jinilover
    @jinilover 11 лет назад

    my confession - since i learnt java, there is never any prog. lang. raise my interest or make me try to love it until i heard of scala last year, now i got to say, i don't want to program java any more. imho, although project lambda incorporates fp features, but java's foundation wasn't functional in day 1, while scala is rooted as both oo and functional

  • @dcsobral
    @dcsobral 11 лет назад

    That "tail recursion" is not a tail recursion, since the result of the recursion is a parameter to cons.

  • @OverG88
    @OverG88 11 лет назад +4

    If there is anything I hate when it comes to talks like these, those are presentations with code written on. Start your freaking notebook, open a freaking editor/IDE and start showing people freaking capabilites of Scala on freaking live example!

  • @thegrinch9059
    @thegrinch9059 7 лет назад

    Scala is like a janitor for the mess Java code makes, but sometimes you could have important papers and important things that get cleaned up by the "janitor." Therefore, Scala is an abstraction to Java.

  • @proyb2
    @proyb2 12 лет назад

    Oh, that too bad. So why do you even need to comment when you don't even use Scala just as you don't use C/C++, .Net, etc?

  • @stargatejcdm
    @stargatejcdm 11 лет назад

    Nice block!

  • @rain_deer
    @rain_deer 11 лет назад +1

    Remember when clojure were in java 7? cross your fingers is all I'm saying

  •  12 лет назад +6

    Foo, Bar, Baz should be banned from the exemple world !! =)
    even in the simplest ones

  • @yanivtalmusic
    @yanivtalmusic 12 лет назад

    Absolutely stellar lecture. Thanks a million!

  • @afdsadf147852369
    @afdsadf147852369 11 лет назад

    Don't forget qux!

  • @wladwlad
    @wladwlad 11 лет назад

    expletives work as well

  • @konstantino_7
    @konstantino_7 11 лет назад

    that was great, really helpful !

  • @ArneBab
    @ArneBab 11 лет назад

    “You don’t want to have to do all this boilerplate code and stuff” - yes, exactly. That’s why I do not use Java when I have the choice…

  • @softashutube
    @softashutube 8 лет назад +4

    Scala is more power full than java in core side.... My question is why java became more popular than Scala?

    • @thegrinch9059
      @thegrinch9059 7 лет назад

      ASHUTOSH KUMAR, because Scala translates to Java bytecode, which is Java in the first place, and Java was invented first.

    • @Kinos141
      @Kinos141 7 лет назад +1

      It still compiles to java. Groovy, scala, clojure all compile to java's JVM, so Java is still king.

    • @TobiasVetterTV
      @TobiasVetterTV 6 лет назад

      Scala is translated to JVM bytecode (although there is a project in beta to change that) and Java is much older than Java.

    • @TobiasVetterTV
      @TobiasVetterTV 6 лет назад +1

      @@Kinos141 That a lot of languages compile to JVM bytecode does not mean that the language Java is very good. In fact it means that a lot of people like or need the JVM and despite this they try not to use Java.

  • @AlMayer1100
    @AlMayer1100 11 лет назад

    Finally we're at the point where we've started. I always hated the clumsy java language. 80% unnecessary code.

  • @Diggerb98
    @Diggerb98 11 лет назад +3

    i feel sorry for the guy doing the presentation. the audience is so crap!

  • @TauP420
    @TauP420 4 года назад

    Virgin java vs chad scala

  • @OverG88
    @OverG88 11 лет назад +1

    Sorry prophet, I didn't recognize you.

  • @krishna444
    @krishna444 6 лет назад

    Why there is not de-facto IDE for scala development. Scala Plugin sucks in Eclipse. Autocomplete sucks in Visual Studio code. Intellij sucks in price and performance.

  • @DanHowardMtl
    @DanHowardMtl 11 лет назад

    Scala dies with Java 8 so why bother using it?

    • @TobiasVetterTV
      @TobiasVetterTV 6 лет назад +1

      Well, Scala is still here.

    • @krishna444
      @krishna444 6 лет назад

      functional features in java 8 actually improved scala performance. Scala is always superior to Java, believe me !

  • @JavnaGolina
    @JavnaGolina 11 лет назад

    I use Lol, Lmao and Rofl

  • @RogerPack
    @RogerPack 12 лет назад

    totally agree. All they do is distract...

  • @seethegalaxy
    @seethegalaxy 11 лет назад

    foo bar baz forever! :)

  • @fflecker
    @fflecker 7 лет назад

    Why is this always so boring ? Isn't it possible just to talk and go through the stuff in a presentation ? I did not watch of course. How has that much time ?

  • @inanme
    @inanme 12 лет назад

    This is loooong.

  • @F00dTube
    @F00dTube 11 лет назад

    I disagree.

  • @fthis1234567
    @fthis1234567 13 лет назад

    scala sucks. too complicated for its own good, not to mention, there is no end of statement token...very very very bad.

  • @lunacelestine8574
    @lunacelestine8574 5 лет назад

    Can we just stop with this crap and just all use Nim?