I think Functional programming biggest benefit is readability, and that if you pass the same arguments over and over again you are guaranteed to get the same results/return value/output
I've never felt older than when I saw that URL to a specific Facebook post, back from before everything on that site was lost in a sea of grey sludge and Minion memes
Sadly in C++ declaring a function const doesn't mean that it can't have any side effects. It only means that the direct member variables in the object won't be changed. If you have members that are pointers to other objects, you can change those other objects to your heart's content as long as you just don't change your pointers to point to other objects. Objects that are passed to the function by reference can be changed as well. You can of course make functions with no side effects, but the compiler will only give you a little bit of help checking that you don't mess up.
One of my secret wishes is to witness a public discussion between this guy and Mike Acton.
I think Functional programming biggest benefit is readability, and that if you pass the same arguments over and over again you are guaranteed to get the same results/return value/output
Great talk, as is expected from Kevlin.
I've never felt older than when I saw that URL to a specific Facebook post, back from before everything on that site was lost in a sea of grey sludge and Minion memes
When we go and find "Neo", we do actually... we find that he is the one! - brilliant
Sadly in C++ declaring a function const doesn't mean that it can't have any side effects. It only means that the direct member variables in the object won't be changed. If you have members that are pointers to other objects, you can change those other objects to your heart's content as long as you just don't change your pointers to point to other objects. Objects that are passed to the function by reference can be changed as well.
You can of course make functions with no side effects, but the compiler will only give you a little bit of help checking that you don't mess up.
Major props for the Matrix references near the end of the talk. Neo is the 1!
Rust is a whole lot more relevant today at the tail end of 2020 than it was nearly 4 years ago during this talk.
Join next Build Stuff event in Mallorca 29-30 April, 2017! www.buildstuff.es
are tickets still available?
"Hamlet is into garbage collection"...
There is an error with the audio in the first ten seconds. Would recommend the video to others if it weren't for that.
That's just the intro music
Ha ha ha ha ha - that first 10s is the clincher ;)
Think hard why not? How hard is it to think about an exponential memory explosion?
You konw functional programming is getting serious when c++ is talking about functional programming...
it's not pronounced "i d", it is pronounced "id" as "it", it's from the latin "self/i"
No, it's I.D. from Identifying Document
@@williamchamberlain2263 I'm talking about the game development company "id".
Haha, casting should look ugly and so don't use the the simple brackets.
Welcome kotlin, where an if automatically casts the type
I don't know Kotlin, how does your `if` example work? I don't understand the casting here. Does it implicitly cast to bool?