DEV Community

Daniel Zotti
Daniel Zotti

Posted on • Updated on

#LearnedToday: Reduce spread anti-pattern

Yesterday I arrived in Berlin with some colleagues to attend the WeAreDevelopers conference. We arrived a few days early to have some time to visit the city and spend time together, since we live in different parts of Italy.
In the coming days I will ask my colleagues for some tips for my #LearnedToday column because, IMHO, you can learn alone, but together is better!

Sharing is an important part of our job as developers and we need to take advantage of every possible moment to do it!

Here is the first pill by Marco Petreri 😎

"When it comes to writing pretty and understandable code we might forget that it could come with a (hidden) cost.
Here's a common snippet that hides a subtle catch: the reduce ({...spread}) anti-pattern"

🔗 https://www.richsnapp.com/article/2019/06-09-reduce-spread-anti-pattern

Top comments (0)