Shopee / shopee-react-knowledgeable

⚛︎ To share knowledge and have fun.
78 stars 19 forks source link

Frööt Lööps 🔁 #186

Closed Tzyinc closed 4 years ago

Tzyinc commented 4 years ago

speaker

Tenzy

intro

We use loops in programming all the time, but when should we use map, foreach, reduce and why are we so resistant to use simple for loops?

resources

All code using array.reduce should be rewritten without array.reduce https://twitter.com/jaffathecake/status/1213077702300852224 loops comparison https://www.blog.duomly.com/for-loop-while-loop-do-while-loop-and-other-javascript-loops-comparison-and-performance/ another loops comparison https://towardsdatascience.com/javascript-performance-test-for-vs-for-each-vs-map-reduce-filter-find-32c1113f19d7

Scheduling

wgao19 commented 4 years ago

thanks for disssss :)