171 likes
·
4.4K reads
33 comments
Awesome work! Keep it uppppp!
Thank You So Much !
Great Job Sayuri. Keep writing !
Thank You! Means a lot
Hi! I love functional programming and your article is incredible!
Just a little feedback: I think that, on the 2nd code example ("Functional Way"), last line should be:console.log(message("Sayuri"));
, right?
Just to be super clear to the reader about what pure functions look like :) the other examples are perfect
Thank You Gabriel RomayMachado (he/him) for those kind words. It made my day.
Thanks for pointing it out. Made the required changes.
OP man really helped a lot
Glad It Helped !
Amazing and very helpful for understanding the basics🔥🔥🔥
Thank You for that !
You rocked this article. Keep it up! 👍
Means a lot. Thanks!
Cooool Article.
Thank You !
Hi great article! Whats "lang" in your immutation example?
We are iterating over our "code" array using map function. We have passed "lang" in the map function. Which in simplest words means that "lang" is items in the array.
So basically "lang" = "Javascript" , "Python" & "React" respectively as respective times.
let me know, if you need more clarification
Sayuri Kamble okay..actually it was "item" instead of lang..ok thanks for the reply!
sudhanshu marimganti Yes your observation was correct
Well done!
Thanks !
Hope you Found Value. If you did, then It would mean a world to me if could give this article a upvote : app.daily.dev/posts/lsRVzQJmr
In Mutation Bad section assignment operation must be done with index 1. Nice work by the way. const code= [ "Javascript", "Python", "React" ] code[ 1 ] = "Node"
Fixed it ! Nice Observation.
Thank You.
Good article! It makes me want to know more about functional programming. Thanks!
Glad you found value !
Liked the way of explaining mutability :)
Hey first of all good explanation. But I don't understand why we should not iterate using for or while loops. Why you prefer map, reduce, filter etc,.
That's one aspect of Functional Programming. Map, reduce, filter are all functions. Which are short and clean to read.
For / while loops are long and difficult to read and also a bit hectic.
Let me know if you need more clarification !
Got it thanks..!! Sayuri Kamble
Great work, Informative and helpful, keep it up
Mindblowing Article ! 🔥
Thank you!