Congratz Mr Venkat, your talks are always a sea a knowledge :)
@bawaparampreet244 жыл бұрын
he goofs up the example performance of imperative vs declarative.
@crabsynth34804 жыл бұрын
What do u mean? Could u mention the time and what was goofed up?
@reallylordofnothing11 ай бұрын
@@crabsynth3480 he wanted to show that stream calls a collection of functions on each piece of data as opposed to imperative which calls functions on collection of data but both yellow stickers are the same, so not sure what he was trying to say there.
@chordfunc30725 жыл бұрын
39:50 Awesome had to try it in dart and with Rx observables :p
@reallylordofnothing11 ай бұрын
Could you explain what is the difference between the two yellow sticky notes? they both are the same, so how did he explain the distinction between functions on all your data and collection of functions on each piece of data?
@madhukiranattivilli23212 жыл бұрын
@46:00 -- "Impure code" line #13 "factor[0] = 0;" would be executed only after the stream methods pipeline on lines 10-11 ends. If so, how is the value of 0 going into the body of Function.apply() for factor[0] but not 2? I understand why this is called impure code, but in this particular context -- this is confusing! Anyone understood the inner meaning?
@pritishnayak2 жыл бұрын
Streams do not start running the pipeline until there's something collecting from them. In the example, venkat gave, the stream started collection on line 15 because forEach is a terminal operation.
@madhukiranattivilli23212 жыл бұрын
@@pritishnayak Yes. Thanks for writing I realized this that day itself. Forgot to remove my msg :) Initially I didn't notice that stream object was assigned on line 10.
@eldiosdelcielo Жыл бұрын
needless to say u rock
@ssougnez4 жыл бұрын
Man, that was awesome....
@ILyaCyclone6 жыл бұрын
Great talk, thanks a lot for the speaker.
@swatibhatt95095 жыл бұрын
As mentioned in 20:52 , Can you please explain how are you achieving thread safety using stream?
@armansingh34054 жыл бұрын
concurrentCollections would be used internally when relying on collectors with parallel streams.
@tarunpahuja34432 жыл бұрын
I think point is stream uses lamba and lamba mandate variable to be effectively final.
@Rajs4u5 жыл бұрын
Why to unfriend from FB if any body using goto 😂😂
@bg80486 жыл бұрын
In the immutable example of factor shown here. Is it good practise to assign the factor to another local variable so that function remains pure as long as code doesn't have any other dependencies on that local variable ?
@orel19965 жыл бұрын
Great lecture thank you
@trinhduyhung82113 жыл бұрын
There seems to be something wrong with the increment method at 12:50. Anybody with me?
@duhudu3 жыл бұрын
what do you mean? It's simply incrementing the passed value by 1 and passing the incremented value to next call stack.
@surendrabisht25233 жыл бұрын
great.
@leonk69505 жыл бұрын
What is that editor with the live-evaluation of java?
@saloalvStuff5 жыл бұрын
This gets posted on every one of his talks. According to other commenters, it's TextMate, a Mac OS X exclusive editor.
@USONOFAV4 жыл бұрын
How can you make your Object immutable when you pass it along in your java 8 stream pipeline? Would it be ok to mutate object within the stream pipeline functions since only one thread will execute the whole pipeline?
@dislikepineapples3 жыл бұрын
I think usually you will create a new refence with the mutation applied to it, but I am a beginner to functional programming, so I am not sure.
@richardlyons74084 жыл бұрын
For summing even numbers, why is he multiplying each even number by 2?
@赵云-z7z5 жыл бұрын
Why did he take off his shoes?
@ebuzertahakanat5 жыл бұрын
why not?
@sushabh1233 жыл бұрын
25:11 totally relatable. Hahhaa
@vjmonik47923 жыл бұрын
Great insights. Two suggestions 1. Take a little complex examples. Everything he talks is about arrays and for loops. 2 he needs to be more crisp in his talks and videos can be half length. He repeats things too many times.
@willingtushar3 жыл бұрын
all good but the way he's pronouncing immutability, is something I can't handle