I wish someone cleaned the audio a little bit more to remove Scott breathing sounds. He always gives the best lectures about fundaments of functional programming, and it is a waste to see people not watching it because his audio was not tuned properly.
@45:30 I've learnt a lot from Scott's web page but I think this railway analogy is misleading in this case. A function only ever has one output otherwise it wouldn't be a function. In this case the output is of type CarbonatedResult. A function maps a value from the domain to a single value in the range, and this function is doing that. It's not mapping a single value to multiple values in the range.
I thought about this as well, very confusing. There is only one input and one output! A better visualization of this would be to have the tracks branching inside the bind function (where the actual branching occurs).
I love how I've watched three of his lectures, and he's used the same jokes in each of those! Brilliant lectures each!
Last half hour of this is fantastic even if you are already familiar with FP
Scott is an amazing engineer
Excellent illustrations and analogies!
I wish someone cleaned the audio a little bit more to remove Scott breathing sounds. He always gives the best lectures about fundaments of functional programming, and it is a waste to see people not watching it because his audio was not tuned properly.
Awesome, learned a lot!
This is brilliant.
@45:30 I've learnt a lot from Scott's web page but I think this railway analogy is misleading in this case. A function only ever has one output otherwise it wouldn't be a function. In this case the output is of type CarbonatedResult. A function maps a value from the domain to a single value in the range, and this function is doing that. It's not mapping a single value to multiple values in the range.
@sashang0 ruclips.net/video/srQt1NAHYC0/видео.htmlm30s
I thought about this as well, very confusing. There is only one input and one output! A better visualization of this would be to have the tracks branching inside the bind function (where the actual branching occurs).
Not misleading. It is clear. It is either type.
I tested your game on zero and then all the negative numbers and it didn't result in 2. :( I've tried an infinite number of numbers without success.
Couldn't watch it all. Wanted to gag from listening to this guy sneaking and swallowing his spit
Hopefully his book will make you feel better . pragprog.com/book/swdddf/domain-modeling-made-functional