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!
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.
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.
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.
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."
*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)
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
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
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!
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.
@@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.
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.
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 ?
34:30 I just tried this in Intellij with Scala 2.13 and I annotated that function with @tailrec and it failed to compile.
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!
The 1 to 10 List example is NOT tail recursive as claimed
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.
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.
Tiny mistake at 28:48
It should be private static Bar bar
Why should it have to be static?
If you try to create a singleton, it should be static, otherwise how would you instantiate the object?
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.
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."
Superb video. I think I'll rewatch!
Love Scala, it's just great.
doesn't C# have all this and more? (just a noob question).
*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)
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
Chris Beers How did the search workout for ya?
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
That "tail recursion" is not a tail recursion, since the result of the recursion is a parameter to cons.
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!
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.
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?
Nice block!
Remember when clojure were in java 7? cross your fingers is all I'm saying
Foo, Bar, Baz should be banned from the exemple world !! =)
even in the simplest ones
Absolutely stellar lecture. Thanks a million!
Don't forget qux!
expletives work as well
that was great, really helpful !
“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…
Scala is more power full than java in core side.... My question is why java became more popular than Scala?
ASHUTOSH KUMAR, because Scala translates to Java bytecode, which is Java in the first place, and Java was invented first.
It still compiles to java. Groovy, scala, clojure all compile to java's JVM, so Java is still king.
Scala is translated to JVM bytecode (although there is a project in beta to change that) and Java is much older than Java.
@@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.
Finally we're at the point where we've started. I always hated the clumsy java language. 80% unnecessary code.
i feel sorry for the guy doing the presentation. the audience is so crap!
Virgin java vs chad scala
Sorry prophet, I didn't recognize you.
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.
Scala dies with Java 8 so why bother using it?
Well, Scala is still here.
functional features in java 8 actually improved scala performance. Scala is always superior to Java, believe me !
I use Lol, Lmao and Rofl
totally agree. All they do is distract...
foo bar baz forever! :)
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 ?
This is loooong.
I disagree.
scala sucks. too complicated for its own good, not to mention, there is no end of statement token...very very very bad.
Can we just stop with this crap and just all use Nim?